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
improvements: address feedback
Scott Wilsone4d00dcf53f5
diff --git a/frontend/src/components/auth/ProductSelectionStep.tsx b/frontend/src/components/auth/ProductSelectionStep.tsxindex 3d2114154c..eff3003ecb 100644--- a/frontend/src/components/auth/ProductSelectionStep.tsx+++ b/frontend/src/components/auth/ProductSelectionStep.tsx@@ -60,34 +60,26 @@ const setUpProduct = async (product: SignupProductType): Promise<Project | undefexport default function ProductSelectionStep({onComplete}: ProductSelectionStepProps): JSX.Element {- const [selectedTypes, setSelectedTypes] = useState<SignupProductType[]>([- ProjectType.SecretManager- ]);- const [isExploring, setIsExploring] = useState(false);+ const [selectedTypes, setSelectedTypes] = useState<SignupProductType[]>([]);const [isSettingUp, setIsSettingUp] = useState(false);// Survives failed attempts so a retry only sets up the products still missing.const createdProjectsRef = useRef<Partial<Record<SignupProductType, Project>>>({});const toggleProduct = (product: SignupProductType) => {- setIsExploring(false);setSelectedTypes((current) =>current.includes(product) ? current.filter((type) => type !== product) : [...current, product]);};- const selectExploring = () => {- setIsExploring(true);- setSelectedTypes([]);- };-// Keep the platform's canonical product order regardless of click order.const orderedSelection = SIGNUP_PRODUCTS.filter((product) =>selectedTypes.includes(product.type)).map((product) => product.type);- const canContinue = isExploring || orderedSelection.length > 0;+ // An empty selection means "just exploring".+ const isExploring = orderedSelection.length === 0;const handleContinue = async () => {- if (!canContinue || isSettingUp) return;+ if (isSettingUp) return;setIsSettingUp(true);let failedProduct: string | undefined;@@ -128,10 +120,9 @@ export default function ProductSelectionStep({}};- const continueLabel =- !isExploring && orderedSelection.length > 0- ? `Continue with ${orderedSelection.length} product${orderedSelection.length > 1 ? "s" : ""}`- : "Continue";+ const continueLabel = isExploring+ ? "I'm Just Exploring, Show Me Everything"+ : `Continue with ${orderedSelection.length} product${orderedSelection.length > 1 ? "s" : ""}`;return (<div className="mx-auto flex w-full flex-col items-center justify-center">@@ -186,35 +177,11 @@ export default function ProductSelectionStep({</button>);})}- <button- type="button"- role="checkbox"- aria-checked={isExploring}- onClick={selectExploring}- className={cn(- "flex w-full cursor-pointer items-center gap-3.5 rounded-md border border-dashed px-4 py-3.5 text-left text-sm transition-colors duration-200",- isExploring- ? "border-project/50 bg-project/[0.04] text-foreground"- : "border-border text-label hover:bg-container-hover/50 hover:text-foreground"- )}- >- <span className="min-w-0 flex-1">I'm just exploring, show me everything</span>- <span- aria-hidden- className={cn(- "flex size-5 shrink-0 items-center justify-center rounded-full border transition-colors duration-200",- isExploring ? "border-project" : "border-muted/60"- )}- >- {isExploring && <span className="size-2.5 rounded-full bg-project" />}- </span>- </button></div><Buttonvariant="project"size="lg"isFullWidth- isDisabled={!canContinue}isPending={isSettingUp}onClick={handleContinue}>diff --git a/frontend/src/pages/auth/SignUpPage/SignUpPage.tsx b/frontend/src/pages/auth/SignUpPage/SignUpPage.tsxindex b5a518de13..4bd4b89513 100644--- a/frontend/src/pages/auth/SignUpPage/SignUpPage.tsx+++ b/frontend/src/pages/auth/SignUpPage/SignUpPage.tsx@@ -215,12 +215,7 @@ export const SignUpPage = ({ invite }: SignUpPageProps) => {};const renderBottomContent = () => {- if (- section === SignupSection.Email ||- section === SignupSection.ProductSelect ||- section === SignupSection.InviteTeam ||- section === SignupSection.Complete- ) {+ if (section === SignupSection.Email) {return <AuthTermsNotice />;}diff --git a/frontend/src/pages/organization/SignupOnboardingPage/SignupOnboardingPage.tsx b/frontend/src/pages/organization/SignupOnboardingPage/SignupOnboardingPage.tsxindex 2a46e7bf7d..1a78243c66 100644--- a/frontend/src/pages/organization/SignupOnboardingPage/SignupOnboardingPage.tsx+++ b/frontend/src/pages/organization/SignupOnboardingPage/SignupOnboardingPage.tsx@@ -180,11 +180,7 @@ export const SignupOnboardingPage = () => {showFooter={false}headerAction={stepIndicator}aside={asideContent}- bottomContent={- section !== OnboardingSection.Loading && section !== OnboardingSection.OrgName ? (- <AuthTermsNotice />- ) : undefined- }+ bottomContent={section === OnboardingSection.OrgName ? <AuthTermsNotice /> : undefined}><Helmet><title>{t("common.head-title", { title: t("signup.title") })}</title>