From 96615ae0da638cf9175a4cd9f60fd0bb8df6fa9c Mon Sep 17 00:00:00 2001 From: Shankar Date: Fri, 17 Apr 2026 16:55:44 +0000 Subject: [PATCH] feat(frontend): add Owner field to OnboardingWizard Certificate step The first-run onboarding wizard's Certificate step now surfaces an Owner dropdown (required) alongside Issuer and Profile, matching the ownership model introduced in M11b. Prevents newly-created certs from being unowned and bypassing notification routing. - web/src/pages/OnboardingWizard.tsx: getOwners query, ownerId state, Owner + +
+ + + {(owners?.data?.length ?? 0) === 0 && ( +

+ No owners yet — create one from the Owners page first, then return here. +

+ )} +
{/* Discovery hint */} @@ -547,7 +573,7 @@ function CertificateStep({ onNext, onSkip, createdIssuerId }: { onSkip={onSkip} onNext={() => createMutation.mutate()} nextLabel={createMutation.isPending ? 'Creating...' : 'Issue Certificate'} - nextDisabled={!commonName || !issuerId || createMutation.isPending} + nextDisabled={!commonName || !issuerId || !ownerId || createMutation.isPending} /> );