Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
fix(auth): hide initial signup progress (#7783)
Andrew Huangf1fcdaf257e1
diff --git a/frontend/src/components/auth/OnboardingPageLayout.tsx b/frontend/src/components/auth/OnboardingPageLayout.tsxindex 7264673a96..f29c897d56 100644--- a/frontend/src/components/auth/OnboardingPageLayout.tsx+++ b/frontend/src/components/auth/OnboardingPageLayout.tsx@@ -11,7 +11,7 @@ type Props = Omit<ComponentProps<typeof AuthPageLayout>, "children" | "headerActtotalSteps: number;};-const OnboardingProgress = ({+export const OnboardingProgress = ({currentStep,totalSteps}: Pick<Props, "currentStep" | "totalSteps">) => (diff --git a/frontend/src/pages/auth/SignUpPage/SignUpPage.tsx b/frontend/src/pages/auth/SignUpPage/SignUpPage.tsxindex 83cf601326..9ab08fbda0 100644--- a/frontend/src/pages/auth/SignUpPage/SignUpPage.tsx+++ b/frontend/src/pages/auth/SignUpPage/SignUpPage.tsx@@ -7,6 +7,7 @@ import { AuthPageLayout } from "@app/components/auth/AuthPageLayout";import { AuthTermsNotice } from "@app/components/auth/AuthTermsNotice";import CodeInputStep from "@app/components/auth/CodeInputStep";import InitialSignupStep from "@app/components/auth/InitialSignupStep";+import { OnboardingProgress } from "@app/components/auth/OnboardingPageLayout";import ProductSelectionStep from "@app/components/auth/ProductSelectionStep";import SignupCompleteStep from "@app/components/auth/SignupCompleteStep";import { getSignupProduct, SignupProductType } from "@app/components/auth/signupProducts";@@ -242,14 +243,13 @@ export const SignUpPage = ({ invite }: SignUpPageProps) => {return undefined;};- // Without an email service the invite step is skipped, so the counter tops out at 3.- const totalSteps = serverDetails?.emailConfigured ? 4 : 3;+ // Step one (email entry and code verification) shows no counter, so the indicator numbers only+ // the steps after it; without an email service the invite step is skipped too.+ const totalSteps = serverDetails?.emailConfigured ? 3 : 2;const stepNumber = STEP_NUMBERS[section];const stepIndicator =- !isInvite && stepNumber ? (- <span className="rounded-sm border border-border bg-container/50 px-2.5 py-0.5 font-jetbrains-mono text-[10px] tracking-widest text-muted uppercase">- Step {stepNumber} of {totalSteps}- </span>+ !isInvite && stepNumber && stepNumber > 1 ? (+ <OnboardingProgress currentStep={stepNumber - 1} totalSteps={totalSteps} />) : undefined;const completeAsideDescription = (() => {diff --git a/frontend/src/pages/organization/SignupOnboardingPage/SignupOnboardingPage.tsx b/frontend/src/pages/organization/SignupOnboardingPage/SignupOnboardingPage.tsxindex 1a78243c66..b04548365d 100644--- a/frontend/src/pages/organization/SignupOnboardingPage/SignupOnboardingPage.tsx+++ b/frontend/src/pages/organization/SignupOnboardingPage/SignupOnboardingPage.tsx@@ -5,6 +5,7 @@ import { useNavigate } from "@tanstack/react-router";import { AuthPageLayout } from "@app/components/auth/AuthPageLayout";import { AuthTermsNotice } from "@app/components/auth/AuthTermsNotice";+import { OnboardingProgress } from "@app/components/auth/OnboardingPageLayout";import OrgNameStep from "@app/components/auth/OrgNameStep";import ProductSelectionStep from "@app/components/auth/ProductSelectionStep";import SignupCompleteStep from "@app/components/auth/SignupCompleteStep";@@ -140,9 +141,7 @@ export const SignupOnboardingPage = () => {const totalSteps = serverDetails?.emailConfigured ? 3 : 2;const stepNumber = STEP_NUMBERS[section];const stepIndicator = stepNumber ? (- <span className="rounded-sm border border-border bg-container/50 px-2.5 py-0.5 font-jetbrains-mono text-[10px] tracking-widest text-muted uppercase">- Step {stepNumber} of {totalSteps}- </span>+ <OnboardingProgress currentStep={stepNumber} totalSteps={totalSteps} />) : undefined;const completeAsideDescription = (() => {