Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

update view secret and view secret request custom branding handling

Scott Wilsonf0ac0fa7d4f1
diff --git a/frontend/src/pages/public/ViewSecretRequestByIDPage/components/SecretErrorContainer.tsx b/frontend/src/pages/public/ViewSecretRequestByIDPage/components/SecretErrorContainer.tsx
index 701004d380..8ffbe944a9 100644
--- a/frontend/src/pages/public/ViewSecretRequestByIDPage/components/SecretErrorContainer.tsx
+++ b/frontend/src/pages/public/ViewSecretRequestByIDPage/components/SecretErrorContainer.tsx
@@ -23,7 +23,7 @@ export const SecretRequestErrorContainer = ({ error, brandingTheme }: Props) =>
<TriangleAlertIcon
style={brandingTheme ? { color: brandingTheme.textMutedColor } : undefined}
/>
- <AlertTitle>
+ <AlertTitle style={brandingTheme ? { color: brandingTheme.textColor } : undefined}>
{error || "The secret request you are looking for is missing or has expired."}
</AlertTitle>
</Alert>
diff --git a/frontend/src/pages/public/ViewSecretRequestByIDPage/components/SecretRequestSuccessContainer.tsx b/frontend/src/pages/public/ViewSecretRequestByIDPage/components/SecretRequestSuccessContainer.tsx
index 1dacc6c65c..5ce540f6f6 100644
--- a/frontend/src/pages/public/ViewSecretRequestByIDPage/components/SecretRequestSuccessContainer.tsx
+++ b/frontend/src/pages/public/ViewSecretRequestByIDPage/components/SecretRequestSuccessContainer.tsx
@@ -23,7 +23,9 @@ export const SecretRequestSuccessContainer = ({ brandingTheme, requesterUsername
<CheckCircleIcon
style={brandingTheme ? { color: brandingTheme.textMutedColor } : undefined}
/>
- <AlertTitle>Secret Shared</AlertTitle>
+ <AlertTitle style={brandingTheme ? { color: brandingTheme.textColor } : undefined}>
+ Secret Shared
+ </AlertTitle>
<AlertDescription style={brandingTheme ? { color: brandingTheme.textMutedColor } : undefined}>
{requesterUsername} has now been notified of your shared secret, and will be able to access
it shortly.
diff --git a/frontend/src/pages/public/ViewSecretRequestByIDPage/components/SecretValueAlreadySharedContainer.tsx b/frontend/src/pages/public/ViewSecretRequestByIDPage/components/SecretValueAlreadySharedContainer.tsx
index 35f5124099..cb7f1aa2a7 100644
--- a/frontend/src/pages/public/ViewSecretRequestByIDPage/components/SecretValueAlreadySharedContainer.tsx
+++ b/frontend/src/pages/public/ViewSecretRequestByIDPage/components/SecretValueAlreadySharedContainer.tsx
@@ -20,7 +20,9 @@ export const SecretValueAlreadySharedContainer = ({ brandingTheme }: Props) => {
return (
<Alert variant={brandingTheme ? "default" : "info"} style={panelStyle}>
<KeyRoundIcon style={brandingTheme ? { color: brandingTheme.textMutedColor } : undefined} />
- <AlertTitle>Secret Already Shared</AlertTitle>
+ <AlertTitle style={brandingTheme ? { color: brandingTheme.textColor } : undefined}>
+ Secret Already Shared
+ </AlertTitle>
<AlertDescription style={brandingTheme ? { color: brandingTheme.textMutedColor } : undefined}>
A secret value has already been shared for this secret request.
</AlertDescription>
diff --git a/frontend/src/pages/public/ViewSharedSecretByIDPage/components/PasswordContainer.tsx b/frontend/src/pages/public/ViewSharedSecretByIDPage/components/PasswordContainer.tsx
index bcc4197862..de1c8a0a96 100644
--- a/frontend/src/pages/public/ViewSharedSecretByIDPage/components/PasswordContainer.tsx
+++ b/frontend/src/pages/public/ViewSharedSecretByIDPage/components/PasswordContainer.tsx
@@ -81,7 +81,7 @@ export const PasswordContainer = ({
className={twMerge(
"flex-1",
brandingTheme &&
- "border placeholder-[var(--muted-color)]/70 focus-visible:ring-[var(--muted-color)]/50"
+ "border placeholder:text-[var(--muted-color)]/50 focus-visible:ring-[var(--muted-color)]/50"
)}
isError={Boolean(error) || isInvalidCredential}
/>
diff --git a/frontend/src/pages/public/ViewSharedSecretByIDPage/components/SecretErrorContainer.tsx b/frontend/src/pages/public/ViewSharedSecretByIDPage/components/SecretErrorContainer.tsx
index 0404b6677d..455b4d58ef 100644
--- a/frontend/src/pages/public/ViewSharedSecretByIDPage/components/SecretErrorContainer.tsx
+++ b/frontend/src/pages/public/ViewSharedSecretByIDPage/components/SecretErrorContainer.tsx
@@ -23,7 +23,9 @@ export const SecretErrorContainer = ({ error, brandingTheme }: Props) => {
<TriangleAlertIcon
style={brandingTheme ? { color: brandingTheme.textMutedColor } : undefined}
/>
- <AlertTitle>{error || "The secret you are looking for is missing or has expired"}</AlertTitle>
+ <AlertTitle style={brandingTheme ? { color: brandingTheme.textColor } : undefined}>
+ {error || "The secret you are looking for is missing or has expired"}
+ </AlertTitle>
</Alert>
);
};