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
add different siren icon color for triggered tokens
Matheus Nogueira888da340e4d7
diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/HoneyTokenTableRow/HoneyTokenTableRow.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/HoneyTokenTableRow/HoneyTokenTableRow.tsxindex 44e49ae686..3912afc75e 100644--- a/frontend/src/pages/secret-manager/OverviewPage/components/HoneyTokenTableRow/HoneyTokenTableRow.tsx+++ b/frontend/src/pages/secret-manager/OverviewPage/components/HoneyTokenTableRow/HoneyTokenTableRow.tsx@@ -58,6 +58,11 @@ export const HoneyTokenTableRow = ({? getHoneyTokenByName(singleEnvSlug, honeyTokenName): undefined;+ const isTriggered = environments.some((env) => {+ const ht = getHoneyTokenByName(env.slug, honeyTokenName);+ return ht?.status === HoneyTokenStatus.Triggered;+ });+const renderActionButtons = (honeyToken: TDashboardHoneyToken) => {return (<div@@ -165,7 +170,7 @@ export const HoneyTokenTableRow = ({{!isSingleEnvView && isExpanded ? (<ChevronDownIcon />) : (- <SirenIcon className="text-yellow" />+ <SirenIcon className={isTriggered ? "text-red" : "text-yellow"} />)}</TableCell><TableCelldiff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/HoneyTokenListView/HoneyTokenItem.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/HoneyTokenListView/HoneyTokenItem.tsxindex 9ac83f673b..14a71e4b6e 100644--- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/HoneyTokenListView/HoneyTokenItem.tsx+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/HoneyTokenListView/HoneyTokenItem.tsx@@ -47,7 +47,7 @@ export const HoneyTokenItem = ({ honeyToken, onEdit, onDelete }: Props) => {aria-expanded={isExpanded}aria-label={`${isExpanded ? "Collapse" : "Expand"} honey token secrets for ${name}`}>- <div className="flex w-11 items-center py-2 pl-5 text-yellow">+ <div className={twMerge("flex w-11 items-center py-2 pl-5", status === HoneyTokenStatus.Triggered ? "text-red" : "text-yellow")}><SirenIcon className="size-4" /></div><div className="flex grow items-center py-2 pr-2 pl-4">