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): improve invalid invitation state
Andrew Huang9c8fec308ee7
diff --git a/frontend/src/pages/auth/SignUpInvitePage/SignUpInvitePage.tsx b/frontend/src/pages/auth/SignUpInvitePage/SignUpInvitePage.tsxindex 8b2bb71b7b..3ebc43f3b7 100644--- a/frontend/src/pages/auth/SignUpInvitePage/SignUpInvitePage.tsx+++ b/frontend/src/pages/auth/SignUpInvitePage/SignUpInvitePage.tsx@@ -1,9 +1,10 @@import { Helmet } from "react-helmet";import { Link, useRouteContext } from "@tanstack/react-router";+import { MailX } from "lucide-react";import { AuthPageLayout } from "@app/components/auth/AuthPageLayout";import { AuthPagePanel } from "@app/components/auth/AuthPagePanel";-import { Button, CardContent, CardDescription, CardHeader, CardTitle } from "@app/components/v3";+import { CardContent, CardHeader, CardTitle } from "@app/components/v3";import { SignUpPage } from "../SignUpPage/SignUpPage";@@ -19,18 +20,28 @@ export const SignupInvitePage = () => {<title>Invalid Invitation</title><link rel="icon" href="/infisical.ico" /></Helmet>- <AuthPagePanel>- <CardHeader className="mb-6 gap-2 text-center">- <CardTitle>Invitation Invalid</CardTitle>- <CardDescription>{error}</CardDescription>- <CardDescription>- Please ask your organization administrator to send a new invitation.- </CardDescription>+ <AuthPagePanel className="text-center">+ <CardHeader className="mb-6 items-center gap-2 text-center">+ <div+ aria-hidden="true"+ className="mb-4 flex size-12 items-center justify-center justify-self-center rounded-lg bg-card text-foreground/80"+ >+ <MailX className="size-5" strokeWidth={1.75} />+ </div>+ <CardTitle className="justify-center text-center font-alliance text-2xl font-normal">+ Invitation invalid.+ </CardTitle></CardHeader>- <CardContent>- <Button asChild variant="project" size="lg" isFullWidth>- <Link to="/login">Go to Login</Link>- </Button>+ <CardContent className="flex flex-col items-center gap-4">+ <p className="text-sm text-balance text-label">+ Ask your organization administrator to send you a new invitation.+ </p>+ <Link+ to="/login"+ className="self-center text-sm text-foreground/95 underline decoration-project/60 underline-offset-2 transition-colors duration-200 hover:decoration-project"+ >+ Back to login+ </Link></CardContent></AuthPagePanel></AuthPageLayout>