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 UI inconsistencies
Thiago Araujo da Silva581d77412c8c
diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretReminderForm.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretReminderForm.tsxindex a8140676fa..bc949d4808 100644--- a/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretReminderForm.tsx+++ b/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretReminderForm.tsx@@ -196,6 +196,7 @@ export const SecretReminderForm = ({setValue,watch,reset,+ resetField,formState: { isDirty }} = formMethods;@@ -208,10 +209,10 @@ export const SecretReminderForm = ({const hasNoAlert = isEditMode && isAlertLoaded && !alert;useEffect(() => {- if (alert) setValue("channels", alert.channels.map(toChannelForm), { shouldDirty: false });+ if (alert) resetField("channels", { defaultValue: alert.channels.map(toChannelForm) });else if (hasNoAlert)- setValue("channels", [{ ...everyoneEmailChannel, recipients: [] }], { shouldDirty: false });- }, [alert, hasNoAlert, everyoneEmailChannel, setValue]);+ resetField("channels", { defaultValue: [{ ...everyoneEmailChannel, recipients: [] }] });+ }, [alert, hasNoAlert, everyoneEmailChannel, resetField]);const isPending = isCreating || isDeleting;diff --git a/frontend/src/views/Alerts/WebhookAuthenticationField.tsx b/frontend/src/views/Alerts/WebhookAuthenticationField.tsxindex 4817279ccc..d7a941f557 100644--- a/frontend/src/views/Alerts/WebhookAuthenticationField.tsx+++ b/frontend/src/views/Alerts/WebhookAuthenticationField.tsx@@ -74,10 +74,14 @@ export const WebhookAuthenticationField = ({ index }: Props) => {secretPlaceholder = needsReentry ? REENTER_PLACEHOLDER : KEEP_PLACEHOLDER;return (- <TabsContent key={type} value={type} className="mt-0 flex flex-col gap-2">- <div className="flex items-start gap-2">+ <TabsContent key={type} value={type} className="@container mt-0 flex flex-col gap-2">+ <div className="flex flex-col gap-2 @md:flex-row @md:items-start">{name && (- <Field className={type === WebhookAuthType.Basic ? "min-w-0 flex-1" : "w-2/5"}>+ <Field+ className={+ type === WebhookAuthType.Basic ? "min-w-0 @md:flex-1" : "@md:w-2/5"+ }+ ><Inputaria-label={name.label}placeholder={name.placeholder}@@ -87,7 +91,7 @@ export const WebhookAuthenticationField = ({ index }: Props) => {<FieldError errors={[channelErrors?.[name.field]]} /></Field>)}- <Field className="min-w-0 flex-1">+ <Field className="min-w-0 @md:flex-1"><ChannelSecretInputid={`channel-${index}-${secret.field}`}ariaLabel={secret.label}diff --git a/frontend/src/views/Alerts/WebhookHeadersField.tsx b/frontend/src/views/Alerts/WebhookHeadersField.tsxindex 5d05c836fd..3594615d6d 100644--- a/frontend/src/views/Alerts/WebhookHeadersField.tsx+++ b/frontend/src/views/Alerts/WebhookHeadersField.tsx@@ -43,7 +43,7 @@ export const WebhookHeadersField = ({ index }: Props) => {/><FieldError errors={[headerErrors?.[i]?.key]} /></Field>- <Field className="grow">+ <Field className="min-w-0 flex-1"><Inputaria-label="Header value"placeholder="production"