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
improvement(signup): streamline onboarding and workspace navigation (#8007)
claude[bot]3351c11af4f5
diff --git a/frontend/src/components/auth/AuthPageLayout.tsx b/frontend/src/components/auth/AuthPageLayout.tsxindex f261ac04d3..21195cc2db 100644--- a/frontend/src/components/auth/AuthPageLayout.tsx+++ b/frontend/src/components/auth/AuthPageLayout.tsx@@ -54,7 +54,7 @@ export const AuthPageLayout = ({<AuthPageHeader>{headerAction}</AuthPageHeader><mainclassName={cn(- "flex flex-1 px-5 py-10 sm:px-8 lg:px-10 xl:px-14",+ "flex flex-1 px-5 pt-10 pb-26 sm:px-8 lg:px-10 xl:px-14",anchorBottomContent? "min-h-0 thin-scrollbar overflow-x-hidden overflow-y-auto": "items-center justify-center"diff --git a/frontend/src/components/auth/CodeInputStep.tsx b/frontend/src/components/auth/CodeInputStep.tsxindex 765b79fbad..b7d75f6347 100644--- a/frontend/src/components/auth/CodeInputStep.tsx+++ b/frontend/src/components/auth/CodeInputStep.tsx@@ -4,7 +4,6 @@ import HCaptcha from "@hcaptcha/react-hcaptcha";import axios from "axios";import {- Button,CardContent,VerificationCodeForm,VerificationCodeHeader,@@ -179,11 +178,6 @@ export default function CodeInputStep({remainingSeconds={remainingCooldown}onResend={handleResend}/>- {import.meta.env.DEV && (- <Button variant="ghost" size="sm" isFullWidth onClick={onComplete}>- Preview next step (development only)- </Button>- )}</VerificationCodeForm></CardContent></AuthPagePanel>diff --git a/frontend/src/components/auth/OnboardingStepTransition.tsx b/frontend/src/components/auth/OnboardingStepTransition.tsxnew file mode 100644index 0000000000..0c570e3377--- /dev/null+++ b/frontend/src/components/auth/OnboardingStepTransition.tsx@@ -0,0 +1,36 @@+import { ReactNode, useEffect, useRef } from "react";+import { motion, useReducedMotion } from "motion/react";++export const OnboardingStepTransition = ({+ step,+ children+}: {+ step: string;+ children: ReactNode;+}) => {+ const prefersReducedMotion = useReducedMotion();+ const containerRef = useRef<HTMLDivElement>(null);+ const previousStep = useRef(step);++ useEffect(() => {+ if (previousStep.current !== step) {+ containerRef.current?.focus({ preventScroll: true });+ containerRef.current?.scrollIntoView({ block: "nearest" });+ previousStep.current = step;+ }+ }, [step]);++ return (+ <motion.div+ key={step}+ ref={containerRef}+ tabIndex={-1}+ initial={{ opacity: 0, y: prefersReducedMotion ? 0 : 8 }}+ animate={{ opacity: 1, y: 0 }}+ transition={{ duration: prefersReducedMotion ? 0 : 0.18, ease: "easeOut" }}+ className="w-full outline-none"+ >+ {children}+ </motion.div>+ );+};diff --git a/frontend/src/components/auth/OrgNameStep.tsx b/frontend/src/components/auth/OrgNameStep.tsxindex 8281339b14..137aae47c8 100644--- a/frontend/src/components/auth/OrgNameStep.tsx+++ b/frontend/src/components/auth/OrgNameStep.tsx@@ -15,12 +15,15 @@ import {Input} from "@app/components/v3";import { useCreateOrg } from "@app/hooks/api";-import { useSelectOrganization } from "@app/hooks/api/auth/queries";+import { submitSignupOnboarding, useSelectOrganization } from "@app/hooks/api/auth/queries";import { GenericResourceNameSchema } from "@app/lib/schemas";import { AuthPagePanel } from "./AuthPagePanel";-const formSchema = z.object({ organizationName: GenericResourceNameSchema });+const formSchema = z.object({+ organizationName: GenericResourceNameSchema,+ attributionSource: z.string().trim().max(512).optional()+});type OrgNameFormData = z.infer<typeof formSchema>;@@ -39,10 +42,10 @@ export default function OrgNameStep({ onComplete }: OrgNameStepProps): JSX.ElemeformState: { errors }} = useForm<OrgNameFormData>({resolver: zodResolver(formSchema),- defaultValues: { organizationName: "" }+ defaultValues: { organizationName: "", attributionSource: "" }});- const onSubmit = async ({ organizationName }: OrgNameFormData) => {+ const onSubmit = async ({ organizationName, attributionSource }: OrgNameFormData) => {try {const organization = await createOrg({ name: organizationName });const { isMfaEnabled } = await selectOrganization({ organizationId: organization.id });@@ -54,6 +57,9 @@ export default function OrgNameStep({ onComplete }: OrgNameStepProps): JSX.Elemereturn;}localStorage.setItem("orgData.id", organization.id);+ if (attributionSource) {+ submitSignupOnboarding({ attributionSource }).catch(() => {});+ }onComplete(organization.id);} catch {// The global mutation error handler already surfaces a toast; stay on this step.@@ -90,6 +96,20 @@ export default function OrgNameStep({ onComplete }: OrgNameStepProps): JSX.Eleme<FieldError>{errors.organizationName.message}</FieldError>) : null}</Field>+ <Field>+ <FieldLabel htmlFor="signup-attribution-source">+ Where did you hear about us?{" "}+ <span className="font-normal text-muted">(optional)</span>+ </FieldLabel>+ <Input+ variant="outlined"+ {...register("attributionSource")}+ id="signup-attribution-source"+ autoComplete="off"+ placeholder="e.g. Hacker News, a friend, GitHub..."+ maxLength={512}+ />+ </Field><Buttontype="submit"variant="project"diff --git a/frontend/src/components/auth/ProductSelectionStep.tsx b/frontend/src/components/auth/ProductSelectionStep.tsxindex 1749804e40..b6e37ac496 100644--- a/frontend/src/components/auth/ProductSelectionStep.tsx+++ b/frontend/src/components/auth/ProductSelectionStep.tsx@@ -1,8 +1,14 @@-import { useRef, useState } from "react";-import { Check } from "lucide-react";+import { useState } from "react";import { createNotification } from "@app/components/notifications";-import { Button, CardContent, CardDescription, CardHeader, CardTitle } from "@app/components/v3";+import {+ Button,+ CardContent,+ CardDescription,+ CardHeader,+ CardTitle,+ Checkbox+} from "@app/components/v3";import { cn } from "@app/components/v3/utils";import { EXAMPLE_PROJECT_NAME } from "@app/const";import { isInfisicalCloud } from "@app/helpers/platform";@@ -21,6 +27,8 @@ import {} from "./signupProducts";interface ProductSelectionStepProps {+ initialProducts: SignupProductType[];+ projectCache: { current: Partial<Record<SignupProductType, Project>> };onComplete: (products: SignupProductType[],projects: Partial<Record<SignupProductType, Project>>@@ -65,12 +73,14 @@ const setUpProduct = async (product: SignupProductType): Promise<Project | undef};export default function ProductSelectionStep({- onComplete+ onComplete,+ initialProducts,+ projectCache}: ProductSelectionStepProps): JSX.Element {- const [selectedTypes, setSelectedTypes] = useState<SignupProductType[]>([]);+ const [selectedTypes, setSelectedTypes] = useState<SignupProductType[]>(initialProducts);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 createdProjectsRef = projectCache;const toggleProduct = (product: SignupProductType) => {setSelectedTypes((current) =>@@ -135,61 +145,68 @@ export default function ProductSelectionStep({}};- const continueLabel = isExploring- ? "I'm Just Exploring, Show Me Everything"- : `Continue with ${orderedSelection.length} product${orderedSelection.length > 1 ? "s" : ""}`;+ const continueLabel = (() => {+ if (isExploring) return "Explore all products";+ if (orderedSelection.length === 1) {+ return `Continue with ${getSignupProduct(orderedSelection[0])?.name}`;+ }+ return `Continue with ${orderedSelection.length} products`;+ })();return (- <div className="mx-auto flex w-full flex-col items-center justify-center">- <AuthPagePanel>- <CardHeader className="mb-4 gap-2">+ <div className="mx-auto flex w-full max-w-xl flex-col items-center justify-center">+ <AuthPagePanel className="gap-6">+ <CardHeader className="gap-2"><CardTitle className="bg-linear-to-b from-white to-bunker-200 bg-clip-text font-alliance text-2xl font-normal text-transparent">What brings you to Infisical?</CardTitle><CardDescription className="text-sm text-label">- Pick everything you're interested in and we'll set your organization up around- it. You can set up the rest anytime.+ Choose the products you'd like to start with. You can add more later.</CardDescription></CardHeader><CardContent className="flex flex-col gap-4">- <div role="group" aria-label="Product selection" className="flex flex-col gap-3">+ <div+ role="group"+ aria-label="Product selection"+ className="flex flex-col space-y-2 divide-y divide-border"+ >{SIGNUP_PRODUCTS.map((product) => {const isSelected = selectedTypes.includes(product.type);const Icon = product.icon;return (- <button+ <labelkey={product.type}- type="button"- role="checkbox"- aria-checked={isSelected}- onClick={() => toggleProduct(product.type)}+ htmlFor={`signup-product-${product.type}`}className={cn(- "flex w-full cursor-pointer items-center gap-3.5 rounded-md border bg-container/50 p-4 text-left transition-colors duration-200",- isSelected- ? product.selectedCardClassName- : "border-border hover:bg-container-hover/50"+ "grid w-full cursor-pointer grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-x-4 gap-y-0.5 px-2 pt-2 pb-3 text-left transition-[background-color,opacity] duration-200 select-none hover:bg-container-hover/30",+ isSelected && "bg-container-hover/30",+ !isExploring &&+ !isSelected &&+ "opacity-50 focus-within:opacity-80 hover:opacity-80",+ isSettingUp && "cursor-wait")}>- <div className={cn("shrink-0 rounded-sm border p-2", product.tileClassName)}>- <Icon className={cn("h-4.5 w-4.5", product.iconClassName)} />- </div>- <div className="min-w-0 flex-1">- <p className="text-sm font-semibold text-foreground">{product.name}</p>- <p className="mt-0.5 text-xs leading-snug text-muted">{product.description}</p>- </div>+ <Icon className={cn("size-4 shrink-0", product.iconClassName)} />+ <span className="font-alliance text-sm font-normal text-foreground">+ {product.name}+ </span>+ <Checkbox+ variant="project"+ id={`signup-product-${product.type}`}+ isChecked={isSelected}+ isDisabled={isSettingUp}+ onCheckedChange={() => toggleProduct(product.type)}+ aria-label={product.name}+ aria-describedby={`signup-product-${product.type}-description`}+ /><span- aria-hidden- className={cn(- "flex size-5 shrink-0 items-center justify-center rounded-sm border transition-colors duration-200",- isSelected- ? cn(product.radioClassName, product.dotClassName)- : "border-muted/60"- )}+ id={`signup-product-${product.type}-description`}+ className="col-start-2 text-sm leading-snug text-muted">- {isSelected && <Check className="size-3.5 text-bunker-800" strokeWidth={3} />}+ {product.description}</span>- </button>+ </label>);})}</div>diff --git a/frontend/src/components/auth/SignupCompleteStep.tsx b/frontend/src/components/auth/SignupCompleteStep.tsxindex 20b181bb56..3266a5eb89 100644--- a/frontend/src/components/auth/SignupCompleteStep.tsx+++ b/frontend/src/components/auth/SignupCompleteStep.tsx@@ -1,15 +1,14 @@-import { useState } from "react";import { SiGithub, SiYoutube } from "react-icons/si";-import { useNavigate } from "@tanstack/react-router";-import { ArrowRight, Info, LayoutGrid, Users } from "lucide-react";+import { Link } from "@tanstack/react-router";+import { ArrowRight, LayoutGrid, Users } from "lucide-react";import {+ Badge,Button,CardContent,CardDescription,CardHeader,- CardTitle,- Separator+ CardTitle} from "@app/components/v3";import { cn } from "@app/components/v3/utils";import { getProjectHomePage } from "@app/helpers/project";@@ -17,7 +16,7 @@ import { submitSignupOnboarding } from "@app/hooks/api/auth/queries";import { Project, ProjectType } from "@app/hooks/api/projects/types";import { AuthPagePanel } from "./AuthPagePanel";-import { getSignupProduct, SIGNUP_PRODUCTS, SignupProductType } from "./signupProducts";+import { SIGNUP_PRODUCTS, SignupProductType } from "./signupProducts";const ORG_OVERVIEW = "organization-overview" as const;@@ -31,235 +30,132 @@ interface SignupCompleteStepProps {const COMMUNITY_LINKS: {label: string;+ isNew?: boolean;href: string;icon: React.ComponentType<{ className?: string; "aria-hidden"?: boolean | "true" | "false" }>;}[] = [{- label: "Star on GitHub",+ label: "29k+ Stars",href: "https://github.com/Infisical/infisical",icon: SiGithub},{- label: "Join Community",- href: "https://community.infisical.com/c/general/contributing/23",+ label: "Discussions",+ isNew: true,+ href: "https://community.infisical.com/latest",icon: Users},{- label: "YouTube",+ label: "50+ Videos",href: "https://www.youtube.com/@infisical_os",icon: SiYoutube}];-const ORG_OVERVIEW_CARD = {- name: "Organization Overview",- iconClassName: "text-project",- tileClassName: "border-project/30 bg-gradient-to-br from-project/20 to-project/5",- selectedCardClassName: "border-project/50 bg-project/[0.04]"-};-export default function SignupCompleteStep({orgId,products,projects}: SignupCompleteStepProps): JSX.Element {- const navigate = useNavigate();const selectedProducts = SIGNUP_PRODUCTS.filter((product) => products.includes(product.type));- const isExploring = selectedProducts.length === 0;- const [launchTarget, setLaunchTarget] = useState<LaunchTarget>(products[0] ?? ORG_OVERVIEW);-- const title = (() => {- if (isExploring) return "Your organization is ready";- if (selectedProducts.length === 1) return `${selectedProducts[0].name} is set up`;- return `${selectedProducts.length} products are set up`;- })();-- const description = (() => {- if (isExploring) {- return "We'll drop you on the organization overview so you can explore all five products.";+ const destinations = [+ ...selectedProducts.map((product) => ({+ value: product.type as LaunchTarget,+ name: product.name,+ icon: product.icon,+ iconClassName: product.iconClassName+ })),+ {+ value: ORG_OVERVIEW as LaunchTarget,+ name: "Organization Overview",+ icon: LayoutGrid,+ iconClassName: "text-muted"}- if (selectedProducts.length === 1) return selectedProducts[0].completedDescription;- return "Everything is ready to go.";- })();-- const handleOpen = () => {- submitSignupOnboarding({ launchDestination: launchTarget }).catch(() => {});+ ];- if (launchTarget !== ORG_OVERVIEW) {- if (launchTarget === ProjectType.PAM) {- navigate({ to: "/organizations/$orgId/pam/access", params: { orgId } });- return;- }-- const project = projects[launchTarget];+ const getDestination = (target: LaunchTarget) => {+ if (target === ProjectType.PAM) {+ return { to: "/organizations/$orgId/pam/access" as const, params: { orgId } };+ }+ if (target !== ORG_OVERVIEW) {+ const project = projects[target];if (project) {- navigate({+ return {to: getProjectHomePage(project.type, project.environments),params: { orgId, projectId: project.id }- });- return;+ };}}-- navigate({ to: "/organizations/$orgId/projects", params: { orgId } });+ return { to: "/organizations/$orgId/projects" as const, params: { orgId } };};return (- <div className="mx-auto flex w-full flex-col items-center justify-center">- <AuthPagePanel>- <CardHeader className="mb-4 gap-2">- <p className="font-jetbrains-mono text-xs tracking-[0.02em] text-project uppercase">- Organization ready- </p>- <CardTitle className="bg-linear-to-b from-white to-bunker-200 bg-clip-text font-alliance text-2xl font-normal text-transparent">- {title}+ <div className="mx-auto flex w-full max-w-md flex-col items-center justify-center">+ <AuthPagePanel className="gap-6">+ <CardHeader className="gap-2">+ <CardDescription className="ml-0.5 text-base">Your organization is ready</CardDescription>+ <CardTitle className="ml-0.5 font-alliance text-2xl font-normal text-foreground">+ Choose where to go next.</CardTitle>- <CardDescription className="text-sm text-label">{description}</CardDescription></CardHeader>- <CardContent className="flex flex-col gap-4">- {isExploring ? (- <div- className={cn(- "flex items-center gap-3.5 rounded-md border p-4",- ORG_OVERVIEW_CARD.selectedCardClassName- )}- >- <div- className={cn("shrink-0 rounded-sm border p-2", ORG_OVERVIEW_CARD.tileClassName)}- >- <LayoutGrid className={cn("h-4.5 w-4.5", ORG_OVERVIEW_CARD.iconClassName)} />- </div>- <div className="min-w-0 flex-1">- <p className="text-sm font-semibold text-foreground">{ORG_OVERVIEW_CARD.name}</p>- <p className="mt-0.5 text-sm leading-snug text-label">- Your team's complete security toolkit, organized and ready when you need it.- </p>- </div>- </div>- ) : (- <div className="flex flex-col gap-2.5">- <p className="text-sm font-medium text-foreground">Where would you like to start?</p>- <div- role="radiogroup"- aria-label="Launch destination"- className="flex flex-col gap-3"- >- {selectedProducts.map((product) => {- const isSelected = launchTarget === product.type;- const Icon = product.icon;-- return (- <button- key={product.type}- type="button"- role="radio"- aria-checked={isSelected}- onClick={() => setLaunchTarget(product.type)}- className={cn(- "flex w-full cursor-pointer items-center gap-3 rounded-md border bg-container/50 p-3 text-left transition-colors duration-200",- isSelected- ? product.selectedCardClassName- : "border-border hover:bg-container-hover/50"- )}+ <CardContent className="flex flex-col gap-6">+ <nav aria-label="Open your workspace">+ <ul className="flex flex-col gap-2">+ {destinations.map((destination) => {+ const Icon = destination.icon;+ return (+ <li key={destination.value}>+ <Button+ asChild+ variant="outline"+ size="lg"+ isFullWidth+ className="group h-auto min-h-10 justify-start border-border bg-card py-3 text-left whitespace-normal hover:border-border hover:bg-container-hover">- <div- className={cn("shrink-0 rounded-sm border p-1.5", product.tileClassName)}+ <Link+ {...getDestination(destination.value)}+ onClick={() => {+ submitSignupOnboarding({ launchDestination: destination.value }).catch(+ () => {}+ );+ }}>- <Icon className={cn("size-4", product.iconClassName)} />- </div>- <p className="min-w-0 flex-1 text-sm font-medium text-foreground">- {product.name}- </p>- <span- aria-hidden- className={cn(- "flex size-5 shrink-0 items-center justify-center rounded-full border transition-colors duration-200",- isSelected ? product.radioClassName : "border-muted/60"- )}- >- {isSelected && (- <span className={cn("size-2.5 rounded-full", product.dotClassName)} />- )}- </span>- </button>- );- })}- <div aria-hidden className="flex items-center gap-3">- <div className="h-px flex-1 bg-border" />- <span className="font-jetbrains-mono text-[10px] tracking-widest text-muted uppercase">- or- </span>- <div className="h-px flex-1 bg-border" />- </div>- <button- type="button"- role="radio"- aria-checked={launchTarget === ORG_OVERVIEW}- onClick={() => setLaunchTarget(ORG_OVERVIEW)}- className={cn(- "flex w-full cursor-pointer items-center gap-3 rounded-md border border-dashed px-4 py-3.5 text-left text-sm transition-colors duration-200",- launchTarget === ORG_OVERVIEW- ? "border-project/50 bg-project/[0.04] text-foreground"- : "border-border text-label hover:bg-container-hover/50 hover:text-foreground"- )}- >- <LayoutGrid- className={cn(- "size-4 shrink-0",- launchTarget === ORG_OVERVIEW ? "text-project" : "text-muted"- )}- />- <span className="min-w-0 flex-1">- Start from the Organization Overview instead- </span>- <span- aria-hidden- className={cn(- "flex size-5 shrink-0 items-center justify-center rounded-full border transition-colors duration-200",- launchTarget === ORG_OVERVIEW ? "border-project" : "border-muted/60"+ <Icon+ aria-hidden+ className={cn("size-4 shrink-0", destination.iconClassName)}+ />+ <span className="min-w-0 flex-1 pt-0.5 font-alliance text-sm font-normal">+ {destination.name}+ </span>+ <ArrowRight+ aria-hidden+ className="size-4 shrink-0 text-muted transition-all group-hover:translate-x-0.5 group-hover:text-foreground motion-reduce:transform-none motion-reduce:transition-none"+ />+ </Link>+ </Button>+ </li>+ );+ })}+ </ul>+ </nav>+ <div className="flex flex-col gap-2">+ <p className="text-sm text-muted">Additional resources</p>+ <div className="flex flex-wrap gap-2">+ {COMMUNITY_LINKS.map((link) => (+ <Button key={link.label} asChild variant="outline" size="sm">+ <a href={link.href} target="_blank" rel="noopener noreferrer">+ <link.icon aria-hidden />+ {link.label}+ {link.isNew && (+ <Badge variant="info" className="-mr-1.5">+ NEW+ </Badge>)}- >- {launchTarget === ORG_OVERVIEW && (- <span className="size-2.5 rounded-full bg-project" />- )}- </span>- </button>- </div>- </div>- )}- {!isExploring && (- <div className="flex items-start gap-2 text-xs text-label">- <Info className="mt-0.5 size-3.5 shrink-0 text-muted" />- <span>- All five products stay available to your organization. Switch to any of them at any- time from the{" "}- <span className="font-medium text-foreground">Organization Overview</span>.- </span>+ </a>+ </Button>+ ))}</div>- )}- <Separator className="my-2" />- <div className="flex flex-col gap-1">- <p className="text-sm font-semibold text-foreground">While you're here</p>- <p className="text-sm text-label">- Star the repo, join the community, and keep up with releases.- </p>- </div>- <div className="flex flex-wrap gap-2">- {COMMUNITY_LINKS.map((link) => (- <Button key={link.label} asChild variant="outline" size="sm">- <a href={link.href} target="_blank" rel="noopener noreferrer">- <link.icon aria-hidden />- {link.label}- </a>- </Button>- ))}</div>- <Button variant="project" size="lg" isFullWidth onClick={handleOpen}>- {launchTarget === ORG_OVERVIEW- ? "Go to Organization Overview"- : `Open ${getSignupProduct(launchTarget)?.name}`}- <ArrowRight />- </Button></CardContent></AuthPagePanel></div>diff --git a/frontend/src/components/auth/TeamInviteStep.tsx b/frontend/src/components/auth/TeamInviteStep.tsxindex e966a1c8e5..c6c6c41169 100644--- a/frontend/src/components/auth/TeamInviteStep.tsx+++ b/frontend/src/components/auth/TeamInviteStep.tsx@@ -1,6 +1,5 @@import { useState } from "react";import { useTranslation } from "react-i18next";-import { z } from "zod";import { createNotification } from "@app/components/notifications";import {@@ -10,22 +9,22 @@ import {CardHeader,CardTitle,Field,- FieldDescription,- FieldError,- FieldLabel,- Input,- Separator,+ FieldFeedback,TextArea} from "@app/components/v3";+import { emailListSchema, parseEmailList } from "@app/helpers/email";import { useAddUsersToOrg } from "@app/hooks/api";-import { submitSignupOnboarding } from "@app/hooks/api/auth/queries";import { useFetchServerStatus } from "@app/hooks/api/serverDetails";import { usePopUp } from "@app/hooks/usePopUp";+import { waitForMinimumDuration } from "@app/lib/fn/promise";import { AuthPagePanel } from "./AuthPagePanel";import { EmailServiceSetupModal } from "./EmailServiceSetupModal";interface TeamInviteStepProps {+ emails: string;+ onEmailsChange: (emails: string) => void;+ onBack: () => void;productName?: string;/** Signup-created projects the invitees get member access to. */projectIds?: string[];@@ -35,49 +34,37 @@ interface TeamInviteStepProps {}export default function TeamInviteStep({+ emails,+ onEmailsChange,+ onBack,productName,projectIds,grantPamAccess,onComplete}: TeamInviteStepProps): JSX.Element {const { t } = useTranslation();- const [emails, setEmails] = useState("");- const [attributionSource, setAttributionSource] = useState("");const [validationError, setValidationError] = useState("");+ const [isSending, setIsSending] = useState(false);const { data: serverDetails } = useFetchServerStatus();- const { mutateAsync, isPending } = useAddUsersToOrg();+ const { mutateAsync } = useAddUsersToOrg();const { handlePopUpToggle, popUp, handlePopUpOpen } = usePopUp(["setUpEmail"] as const);const orgId = String(localStorage.getItem("orgData.id"));const grantCount = (projectIds?.length ?? 0) + (grantPamAccess ? 1 : 0);- const finishStep = () => {- const trimmedAttribution = attributionSource.trim();- if (trimmedAttribution) {- submitSignupOnboarding({ attributionSource: trimmedAttribution }).catch(() => {});- }- onComplete();- };-const inviteUsersAndContinue = async () => {- const parsed = emails- .split(",")- .map((email) => email.trim())- .filter(Boolean);-- if (parsed.length === 0) {- setValidationError("Please enter at least one email address, or skip for now.");- return;- }-- const invalid = parsed.filter((email) => !z.string().email().safeParse(email).success);- if (invalid.length > 0) {- setValidationError(`Invalid email${invalid.length > 1 ? "s" : ""}: ${invalid.join(", ")}`);+ if (isSending) return;+ const result = emailListSchema.safeParse(emails);+ if (!result.success) {+ setValidationError(result.error.issues[0].message);return;}+ const parsed = Array.from(new Set(parseEmailList(result.data)));setValidationError("");+ const startedAt = Date.now();+ setIsSending(true);try {const { data } = await mutateAsync({@@ -88,6 +75,8 @@ export default function TeamInviteStep({...(grantPamAccess ? { grantPamAccess } : {})});+ await waitForMinimumDuration(startedAt, 500);+// Product grants are best-effort server-side: the invites went out, so continue,// but don't let the inviter believe access was granted when it wasn't.if (data.grantFailures) {@@ -95,17 +84,24 @@ export default function TeamInviteStep({type: "warning",text: "Invites were sent, but some product access could not be granted. Grant access from each product's Access Control page."});+ } else {+ createNotification({+ type: "success",+ text: `${parsed.length} invitation${parsed.length === 1 ? "" : "s"} sent`+ });}} catch {// The global mutation error handler already surfaces a toast; stay on this step.+ setIsSending(false);return;}- finishStep();+ onEmailsChange("");+ onComplete();};return (- <div className="mx-auto flex w-full flex-col items-center justify-center">+ <div className="mx-auto flex w-full max-w-xl flex-col items-center justify-center"><AuthPagePanel><CardHeader className="mb-4 gap-2"><CardTitle className="bg-linear-to-b from-white to-bunker-200 bg-clip-text font-alliance text-2xl font-normal text-transparent">@@ -118,64 +114,54 @@ export default function TeamInviteStep({<CardContent className="flex flex-col gap-4"><Field data-invalid={Boolean(validationError)}><TextArea+ aria-describedby="signup-invite-feedback"variant="outlined"className="min-h-20"value={emails}+ disabled={isSending}onChange={(e) => {- setEmails(e.target.value);+ onEmailsChange(e.target.value);if (validationError) setValidationError("");}}placeholder="[email protected], [email protected]"isError={Boolean(validationError)}/>- {validationError && <FieldError>{validationError}</FieldError>}- {grantCount > 0 && (- <FieldDescription>- They'll join your organization and get access to the{" "}- {grantCount > 1 ? "products" : "product"} you just set up.- </FieldDescription>- )}- </Field>- <Separator />- <Field>- <FieldLabel htmlFor="signup-attribution-source">- Where did you hear about us?{" "}- <span className="font-normal text-muted">(optional)</span>- </FieldLabel>- <Input- variant="outlined"- id="signup-attribution-source"- value={attributionSource}- onChange={(e) => setAttributionSource(e.target.value)}- placeholder="e.g. Hacker News, a friend, GitHub..."- maxLength={512}+ <FieldFeedback+ id="signup-invite-feedback"+ error={validationError}+ description={+ grantCount > 0 ? (+ <>+ They'll join your organization and get access to the{" "}+ {grantCount > 1 ? "products" : "product"} you just set up.+ </>+ ) : undefined+ }/></Field>- <div className="flex flex-col gap-2">- <Button- onClick={() => {- if (serverDetails?.emailConfigured) {- inviteUsersAndContinue();- } else {- handlePopUpOpen("setUpEmail");- }- }}- variant="project"- size="lg"- isFullWidth- isPending={isPending}- >- Send Invites & Continue- </Button>- <Button- onClick={finishStep}- isDisabled={isPending}- variant="ghost"- size="lg"- isFullWidth- >- Skip for Now+ <div className="flex flex-wrap items-center justify-between gap-3">+ <Button variant="neutral" onClick={onBack} isDisabled={isSending}>+ Back</Button>+ <div className="ml-auto flex flex-wrap items-center justify-end gap-2">+ <Button onClick={() => onComplete()} isDisabled={isSending} variant="ghost">+ Skip for now+ </Button>+ <Button+ onClick={() => {+ if (serverDetails?.emailConfigured) {+ inviteUsersAndContinue();+ } else {+ handlePopUpOpen("setUpEmail");+ }+ }}+ variant="project"+ isPending={isSending}+ isDisabled={!emails.trim()}+ >+ Send invites+ </Button>+ </div></div></CardContent></AuthPagePanel>diff --git a/frontend/src/components/auth/UserInfoStep.tsx b/frontend/src/components/auth/UserInfoStep.tsxindex 1356929507..2e2ff5d593 100644--- a/frontend/src/components/auth/UserInfoStep.tsx+++ b/frontend/src/components/auth/UserInfoStep.tsx@@ -28,7 +28,7 @@ import { useServerConfig } from "@app/context";import { isInfisicalCloud } from "@app/helpers/platform";import { getHubSpotUtk } from "@app/helpers/utmTracking";import { TPasswordPolicy } from "@app/hooks/api/admin/types";-import { useCompleteAccountSignup } from "@app/hooks/api/auth/queries";+import { submitSignupOnboarding, useCompleteAccountSignup } from "@app/hooks/api/auth/queries";import { fetchOrganizations } from "@app/hooks/api/organization/queries";import { GenericResourceNameSchema } from "@app/lib/schemas";@@ -42,6 +42,7 @@ const createUserInfoFormSchema = (isInvite: boolean, passwordPolicy: TPasswordPofirstName: z.string().trim().min(1, "First name is required"),lastName: z.string().trim().optional(),organizationName: isInvite ? z.string().optional() : GenericResourceNameSchema,+ attributionSource: z.string().trim().max(512).optional(),password: createPasswordSchema(passwordPolicy),confirmPassword: z.string().min(1, "Please confirm your password")})@@ -84,6 +85,7 @@ export default function UserInfoStep({firstName: "",lastName: "",organizationName: "",+ attributionSource: "",password: "",confirmPassword: ""}@@ -120,6 +122,7 @@ export default function UserInfoStep({return;}+ const attributionSource = isInvite ? undefined : formData.attributionSource || undefined;const response = await completeSignup({type: "email",email,@@ -127,12 +130,17 @@ export default function UserInfoStep({firstName: formData.firstName,lastName: formData.lastName ?? "",organizationName: formData.organizationName || undefined,+ attributionSource,hubspotUtk: getHubSpotUtk()});SecurityClient.setSignupToken("");SecurityClient.setToken(response.token);+ if (attributionSource) {+ submitSignupOnboarding({ attributionSource }).catch(() => {});+ }+// The distinct id has to match the one the backend captures signup events with, which is// user.username: the lowercased email.const signupEmail = email.toLowerCase();@@ -187,6 +195,14 @@ export default function UserInfoStep({) : null}</CardHeader><CardContent className="flex flex-col gap-4">+ <input+ className="hidden"+ type="text"+ name="username"+ autoComplete="username"+ value={email}+ readOnly+ /><div className="grid grid-cols-1 gap-4 sm:grid-cols-2"><Field data-invalid={showDangerState && Boolean(errors.firstName)}><FieldLabel className="sr-only" htmlFor="signup-first-name">@@ -248,6 +264,22 @@ export default function UserInfoStep({) : null}</Field>)}+ {!isInvite && (+ <Field>+ <FieldLabel htmlFor="signup-attribution-source">+ Where did you hear about us?{" "}+ <span className="font-normal text-muted">(optional)</span>+ </FieldLabel>+ <Input+ variant="outlined"+ {...register("attributionSource")}+ id="signup-attribution-source"+ autoComplete="off"+ placeholder="e.g. Hacker News, a friend, GitHub..."+ maxLength={512}+ />+ </Field>+ )}<PasswordFieldvariant="outlined"id="new-password"diff --git a/frontend/src/components/auth/signupProducts.ts b/frontend/src/components/auth/signupProducts.tsindex 4d6041874f..91ec9f57c4 100644--- a/frontend/src/components/auth/signupProducts.ts+++ b/frontend/src/components/auth/signupProducts.ts@@ -33,8 +33,7 @@ export const SIGNUP_PRODUCTS: SignupProductMeta[] = [{type: ProjectType.SecretManager,name: "Secrets Management",- description:- "Centralize secrets across environments with syncs, rotation, and dynamic credentials.",+ description: "Store, sync, and rotate secrets across environments.",completedDescription: "Your first project is created. Jump in and add your first resources.",icon: getProjectLucideIcon(ProjectType.SecretManager),iconClassName: "text-product-sm",@@ -46,7 +45,7 @@ export const SIGNUP_PRODUCTS: SignupProductMeta[] = [{type: ProjectType.CertificateManager,name: "Certificate Management (PKI)",- description: "Issue, rotate, and govern X.509 certificates for TLS, mTLS, and code signing.",+ description: "Issue and renew certificates for TLS, mTLS, and code signing.",completedDescription: "Everything is ready. Jump in and issue your first certificates.",icon: getProjectLucideIcon(ProjectType.CertificateManager),iconClassName: "text-product-pki",@@ -58,7 +57,7 @@ export const SIGNUP_PRODUCTS: SignupProductMeta[] = [{type: ProjectType.KMS,name: "KMS",- description: "Generate, store, and use cryptographic keys to encrypt, sign, and verify.",+ description: "Manage encryption and signing keys.",completedDescription: "Your first project is created. Jump in and add your first resources.",icon: getProjectLucideIcon(ProjectType.KMS),iconClassName: "text-product-kms",@@ -70,7 +69,7 @@ export const SIGNUP_PRODUCTS: SignupProductMeta[] = [{type: ProjectType.PAM,name: "Privileged Access Management",- description: "Secure access to databases and servers with session brokering and recording.",+ description: "Secure and record access to servers and databases.",completedDescription: "Everything is ready. Jump in and connect your first resources.",icon: getProjectLucideIcon(ProjectType.PAM),iconClassName: "text-product-pam",@@ -82,7 +81,7 @@ export const SIGNUP_PRODUCTS: SignupProductMeta[] = [{type: ProjectType.SecretScanning,name: "Secret Scanning",- description: "Continuously scan repos, builds, and artifacts for leaked secrets.",+ description: "Find exposed secrets in repositories, builds, and artifacts.",completedDescription: "Your first project is created. Jump in and add your first resources.",icon: getProjectLucideIcon(ProjectType.SecretScanning),iconClassName: "text-product-ss",diff --git a/frontend/src/components/v3/platform/VerificationCode/VerificationCodeForm.stories.tsx b/frontend/src/components/v3/platform/VerificationCode/VerificationCodeForm.stories.tsxindex 7b7909a097..3e4345aadc 100644--- a/frontend/src/components/v3/platform/VerificationCode/VerificationCodeForm.stories.tsx+++ b/frontend/src/components/v3/platform/VerificationCode/VerificationCodeForm.stories.tsx@@ -76,6 +76,14 @@ export const EmailCode: Story = {render: () => <VerificationExample />};+export const PartialCode: Story = {+ args: { value: "123" }+};++export const Verifying: Story = {+ args: { value: "123456", isPending: true }+};+export const InvalidCode: Story = {render: () => <VerificationExample error="That code is invalid. Try again." />};diff --git a/frontend/src/components/v3/platform/VerificationCode/VerificationCodeForm.tsx b/frontend/src/components/v3/platform/VerificationCode/VerificationCodeForm.tsxindex 302de9f3cb..8c335daaf0 100644--- a/frontend/src/components/v3/platform/VerificationCode/VerificationCodeForm.tsx+++ b/frontend/src/components/v3/platform/VerificationCode/VerificationCodeForm.tsx@@ -1,6 +1,5 @@import { ReactNode, useEffect, useRef, useState } from "react";-import { AnimatedCollapse } from "../../generic/AnimatedCollapse";import { Button } from "../../generic/Button";import { CardDescription, CardHeader, CardTitle } from "../../generic/Card";import { FieldError } from "../../generic/Field";@@ -105,6 +104,7 @@ export const VerificationCodeForm = ({onSubmit={(event) => {event.preventDefault();if (!isComplete || isDisabled || isPending) return;+ setHasAttemptedVerification(true);onSubmit();}}>@@ -117,22 +117,19 @@ export const VerificationCodeForm = ({value={value}isError={hasError && !hasChangedSinceError}/>- <div className="min-h-4.5">- {error && <FieldError className="mt-0">{error}</FieldError>}- </div>+ {error && <FieldError className="mt-0">{error}</FieldError>}</div>- <AnimatedCollapse isOpen={hasFailedVerification}>- <Button- type="submit"- variant={submitVariant}- size="lg"- isFullWidth- isPending={isPending}- isDisabled={!isComplete || isDisabled || isPending}- >- Retry- </Button>- </AnimatedCollapse>+ <Button+ type="submit"+ variant={submitVariant}+ size="lg"+ isFullWidth+ isPending={isPending}+ isDisabled={!isComplete || isDisabled || isPending}+ aria-label={isPending ? "Verifying code" : undefined}+ >+ {hasFailedVerification ? "Try again" : "Continue"}+ </Button>{children}</form>);diff --git a/frontend/src/pages/auth/SignUpPage/SignUpPage.tsx b/frontend/src/pages/auth/SignUpPage/SignUpPage.tsxindex 9ab08fbda0..c88f6be3a8 100644--- a/frontend/src/pages/auth/SignUpPage/SignUpPage.tsx+++ b/frontend/src/pages/auth/SignUpPage/SignUpPage.tsx@@ -1,4 +1,4 @@-import { useEffect, useState } from "react";+import { useEffect, useRef, useState } from "react";import { Helmet } from "react-helmet";import { useTranslation } from "react-i18next";import { Link, useNavigate } from "@tanstack/react-router";@@ -8,6 +8,7 @@ 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 { OnboardingStepTransition } from "@app/components/auth/OnboardingStepTransition";import ProductSelectionStep from "@app/components/auth/ProductSelectionStep";import SignupCompleteStep from "@app/components/auth/SignupCompleteStep";import { getSignupProduct, SignupProductType } from "@app/components/auth/signupProducts";@@ -29,15 +30,6 @@ enum SignupSection {Complete = "complete"}-// Email entry and code verification share a step; the completion summary shows no counter.-const STEP_NUMBERS: Partial<Record<SignupSection, number>> = {- [SignupSection.Email]: 1,- [SignupSection.VerifyCode]: 1,- [SignupSection.UserInfo]: 2,- [SignupSection.ProductSelect]: 3,- [SignupSection.InviteTeam]: 4-};-type PendingEmailVerification = {email: string;resendCooldownEndTime: number;@@ -59,6 +51,8 @@ export const SignUpPage = ({ invite }: SignUpPageProps) => {isInvite ? SignupSection.UserInfo : SignupSection.Email);const [orgId, setOrgId] = useState("");+ const [inviteEmails, setInviteEmails] = useState("");+ const projectCache = useRef<Partial<Record<SignupProductType, Project>>>({});// An empty selection means "just exploring".const [selectedProducts, setSelectedProducts] = useState<SignupProductType[]>([]);const [createdProjects, setCreatedProjects] = useState<@@ -192,10 +186,19 @@ export const SignUpPage = ({ invite }: SignUpPageProps) => {/>);case SignupSection.ProductSelect:- return <ProductSelectionStep onComplete={handleProductSelectComplete} />;+ return (+ <ProductSelectionStep+ onComplete={handleProductSelectComplete}+ initialProducts={selectedProducts}+ projectCache={projectCache}+ />+ );case SignupSection.InviteTeam:return (<TeamInviteStep+ emails={inviteEmails}+ onEmailsChange={setInviteEmails}+ onBack={() => setSection(SignupSection.ProductSelect)}productName={selectedProducts.length === 1? getSignupProduct(selectedProducts[0])?.name@@ -243,51 +246,29 @@ export const SignUpPage = ({ invite }: SignUpPageProps) => {return undefined;};- // 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 isWorkspaceSetup =+ section === SignupSection.ProductSelect ||+ section === SignupSection.InviteTeam ||+ section === SignupSection.Complete;++ const postAuthSteps = serverDetails?.emailConfigured+ ? [SignupSection.ProductSelect, SignupSection.InviteTeam, SignupSection.Complete]+ : [SignupSection.ProductSelect, SignupSection.Complete];const stepIndicator =- !isInvite && stepNumber && stepNumber > 1 ? (- <OnboardingProgress currentStep={stepNumber - 1} totalSteps={totalSteps} />+ !isInvite && isWorkspaceSetup ? (+ <OnboardingProgress+ currentStep={postAuthSteps.indexOf(section) + 1}+ totalSteps={postAuthSteps.length}+ />) : undefined;- const completeAsideDescription = (() => {- if (selectedProducts.length === 0) return "Your organization overview has everything laid out.";- if (selectedProducts.length === 1) {- return `${getSignupProduct(selectedProducts[0])?.name} is set up and ready to use.`;- }- return "Your products are set up and ready to go.";- })();- const asideContent = (() => {- switch (section) {- case SignupSection.ProductSelect:- return {- eyebrow: "One platform, five products",- description:- "Secrets, PKI, KMS, privileged access, and scanning. Start where it hurts most."- };- case SignupSection.InviteTeam:- return {- eyebrow: "Better together",- description: "Infisical works best when your whole team is in one place."- };- case SignupSection.Complete:- return {- eyebrow: "You're all set",- description: completeAsideDescription- };- default:- return undefined;- }- })();-return (<AuthPageLayoutshowFooter={false}bottomContent={renderBottomContent()}headerAction={stepIndicator}- aside={asideContent}+ variant={isWorkspaceSetup ? "focused" : "split"}+ contentClassName={isWorkspaceSetup ? "max-w-3xl" : undefined}><Helmet><title>{t("common.head-title", { title: t("signup.title") })}</title>@@ -296,15 +277,17 @@ export const SignUpPage = ({ invite }: SignUpPageProps) => {<meta property="og:title" content={t("signup.og-title") as string} /><meta name="og:description" content={t("signup.og-description") as string} /></Helmet>- {section === SignupSection.VerifyCode ||- section === SignupSection.ProductSelect ||- section === SignupSection.Complete ? (- <div className="w-full">{renderView()}</div>- ) : (- <form className="w-full" onSubmit={(e) => e.preventDefault()}>- {renderView()}- </form>- )}+ <OnboardingStepTransition step={section}>+ {section === SignupSection.VerifyCode ||+ section === SignupSection.ProductSelect ||+ section === SignupSection.Complete ? (+ <div className="w-full">{renderView()}</div>+ ) : (+ <form className="w-full" onSubmit={(e) => e.preventDefault()}>+ {renderView()}+ </form>+ )}+ </OnboardingStepTransition></AuthPageLayout>);};diff --git a/frontend/src/pages/organization/SignupOnboardingPage/SignupOnboardingPage.tsx b/frontend/src/pages/organization/SignupOnboardingPage/SignupOnboardingPage.tsxindex b04548365d..2d70c4e682 100644--- a/frontend/src/pages/organization/SignupOnboardingPage/SignupOnboardingPage.tsx+++ b/frontend/src/pages/organization/SignupOnboardingPage/SignupOnboardingPage.tsx@@ -6,6 +6,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 { OnboardingStepTransition } from "@app/components/auth/OnboardingStepTransition";import OrgNameStep from "@app/components/auth/OrgNameStep";import ProductSelectionStep from "@app/components/auth/ProductSelectionStep";import SignupCompleteStep from "@app/components/auth/SignupCompleteStep";@@ -25,13 +26,6 @@ enum OnboardingSection {Complete = "complete"}-// The completion summary shows no counter.-const STEP_NUMBERS: Partial<Record<OnboardingSection, number>> = {- [OnboardingSection.OrgName]: 1,- [OnboardingSection.ProductSelect]: 2,- [OnboardingSection.InviteTeam]: 3-};-/*** Org setup for freshly signed-up people who have no organization yet: provider-verified* OAuth signups (which bypass /signup/sso) and code-verified SSO signups both land here.@@ -44,6 +38,8 @@ export const SignupOnboardingPage = () => {const [section, setSection] = useState<OnboardingSection>(OnboardingSection.Loading);const [orgId, setOrgId] = useState("");+ const [inviteEmails, setInviteEmails] = useState("");+ const projectCache = useRef<Partial<Record<SignupProductType, Project>>>({});// An empty selection means "just exploring".const [selectedProducts, setSelectedProducts] = useState<SignupProductType[]>([]);const [createdProjects, setCreatedProjects] = useState<@@ -109,10 +105,19 @@ export const SignupOnboardingPage = () => {case OnboardingSection.OrgName:return <OrgNameStep onComplete={handleOrgNameComplete} />;case OnboardingSection.ProductSelect:- return <ProductSelectionStep onComplete={handleProductSelectComplete} />;+ return (+ <ProductSelectionStep+ onComplete={handleProductSelectComplete}+ initialProducts={selectedProducts}+ projectCache={projectCache}+ />+ );case OnboardingSection.InviteTeam:return (<TeamInviteStep+ emails={inviteEmails}+ onEmailsChange={setInviteEmails}+ onBack={() => setSection(OnboardingSection.ProductSelect)}productName={selectedProducts.length === 1? getSignupProduct(selectedProducts[0])?.name@@ -138,54 +143,34 @@ export const SignupOnboardingPage = () => {}};- const totalSteps = serverDetails?.emailConfigured ? 3 : 2;- const stepNumber = STEP_NUMBERS[section];- const stepIndicator = stepNumber ? (- <OnboardingProgress currentStep={stepNumber} totalSteps={totalSteps} />+ const isWorkspaceSetup =+ section === OnboardingSection.ProductSelect ||+ section === OnboardingSection.InviteTeam ||+ section === OnboardingSection.Complete;++ const postAuthSteps = serverDetails?.emailConfigured+ ? [OnboardingSection.ProductSelect, OnboardingSection.InviteTeam, OnboardingSection.Complete]+ : [OnboardingSection.ProductSelect, OnboardingSection.Complete];+ const stepIndicator = isWorkspaceSetup ? (+ <OnboardingProgress+ currentStep={postAuthSteps.indexOf(section) + 1}+ totalSteps={postAuthSteps.length}+ />) : undefined;- const completeAsideDescription = (() => {- if (selectedProducts.length === 0) return "Your organization overview has everything laid out.";- if (selectedProducts.length === 1) {- return `${getSignupProduct(selectedProducts[0])?.name} is set up and ready to use.`;- }- return "Your products are set up and ready to go.";- })();- const asideContent = (() => {- switch (section) {- case OnboardingSection.ProductSelect:- return {- eyebrow: "One platform, five products",- description:- "Secrets, PKI, KMS, privileged access, and scanning. Start where it hurts most."- };- case OnboardingSection.InviteTeam:- return {- eyebrow: "Better together",- description: "Infisical works best when your whole team is in one place."- };- case OnboardingSection.Complete:- return {- eyebrow: "You're all set",- description: completeAsideDescription- };- default:- return undefined;- }- })();-return (<AuthPageLayoutshowFooter={false}headerAction={stepIndicator}- aside={asideContent}+ variant={isWorkspaceSetup ? "focused" : "split"}+ contentClassName={isWorkspaceSetup ? "max-w-3xl" : undefined}bottomContent={section === OnboardingSection.OrgName ? <AuthTermsNotice /> : undefined}><Helmet><title>{t("common.head-title", { title: t("signup.title") })}</title><link rel="icon" href="/infisical.ico" /></Helmet>- {renderView()}+ <OnboardingStepTransition step={section}>{renderView()}</OnboardingStepTransition></AuthPageLayout>);};