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(eng-4621): address feedback, use new badge, fix saving
Tre Dubrava9fe7902844b3
diff --git a/frontend/src/pages/auth/LoginPage/components/InitialStep/InitialStep.tsx b/frontend/src/pages/auth/LoginPage/components/InitialStep/InitialStep.tsxindex d82f650c31..6f2a363b38 100644--- a/frontend/src/pages/auth/LoginPage/components/InitialStep/InitialStep.tsx+++ b/frontend/src/pages/auth/LoginPage/components/InitialStep/InitialStep.tsx@@ -12,6 +12,7 @@ import { createNotification } from "@app/components/notifications";import attemptCliLogin from "@app/components/utilities/attemptCliLogin";import attemptLogin from "@app/components/utilities/attemptLogin";import { Button, Input } from "@app/components/v2";+import { Badge } from "@app/components/v3";import { envConfig } from "@app/config/env";import { useServerConfig } from "@app/context";import { useFetchServerStatus } from "@app/hooks/api";@@ -74,12 +75,14 @@ export const InitialStep = ({useEffect(() => {if (serverDetails?.samlDefaultOrgSlug && !isAdmin) {+ saveLastLogin({ method: LoginMethod.SAML, orgSlug: serverDetails.samlDefaultOrgSlug });redirectToSaml(serverDetails.samlDefaultOrgSlug);}}, [serverDetails?.samlDefaultOrgSlug]);const handleSaml = () => {if (config.defaultAuthOrgSlug) {+ saveLastLogin({ method: LoginMethod.SAML, orgSlug: config.defaultAuthOrgSlug });redirectToSaml(config.defaultAuthOrgSlug);} else {setStep(2);@@ -88,6 +91,7 @@ export const InitialStep = ({const handleOidc = () => {if (config.defaultAuthOrgSlug) {+ saveLastLogin({ method: LoginMethod.OIDC, orgSlug: config.defaultAuthOrgSlug });redirectToOidc(config.defaultAuthOrgSlug);} else {setStep(3);@@ -333,9 +337,9 @@ export const InitialStep = ({Continue with Email</Button>{isLastUsedMethod(LoginMethod.EMAIL) && (- <span className="absolute -top-2 -right-2 rounded-full bg-primary/20 px-1.5 py-0.5 text-[10px] text-primary">+ <Badge variant="default" className="absolute -top-2 -right-2 rounded-full">Last used- </span>+ </Badge>)}</div></>diff --git a/frontend/src/pages/auth/LoginPage/components/OrgLoginButton.tsx b/frontend/src/pages/auth/LoginPage/components/OrgLoginButton.tsxindex 6b347178e9..ce8fe47745 100644--- a/frontend/src/pages/auth/LoginPage/components/OrgLoginButton.tsx+++ b/frontend/src/pages/auth/LoginPage/components/OrgLoginButton.tsx@@ -3,6 +3,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";import { twMerge } from "tailwind-merge";import { Button } from "@app/components/v2";+import { Badge } from "@app/components/v3";type Props = {label: string;@@ -28,9 +29,9 @@ export const OrgLoginButton = ({ label, onClick, className, showLastUsed }: Prop{label}</Button>{showLastUsed && (- <span className="absolute -top-2 -right-2 rounded-full bg-primary/20 px-1.5 py-0.5 text-[10px] text-primary">+ <Badge variant="project" className="absolute -top-2 -right-2 rounded-full">Last used- </span>+ </Badge>)}</div>);diff --git a/frontend/src/pages/auth/LoginPage/components/SocialLoginButton.tsx b/frontend/src/pages/auth/LoginPage/components/SocialLoginButton.tsxindex c057e8ab9e..a2247c5383 100644--- a/frontend/src/pages/auth/LoginPage/components/SocialLoginButton.tsx+++ b/frontend/src/pages/auth/LoginPage/components/SocialLoginButton.tsx@@ -2,6 +2,7 @@ import { IconDefinition } from "@fortawesome/free-brands-svg-icons";import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";import { IconButton, Tooltip } from "@app/components/v2";+import { Badge } from "@app/components/v3";type Props = {icon: IconDefinition;@@ -23,9 +24,9 @@ export const SocialLoginButton = ({ icon, label, onClick, showLastUsed }: Props)<FontAwesomeIcon icon={icon} /></IconButton>{showLastUsed && (- <span className="absolute -top-2 -right-2 rounded-full bg-primary/20 px-1.5 py-0.5 text-[10px] text-primary">+ <Badge variant="project" className="absolute -top-2 -right-2 rounded-full">Last used- </span>+ </Badge>)}</div></Tooltip>