Skip to content

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

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.tsx
index 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>
<TableCell
diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/HoneyTokenListView/HoneyTokenItem.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/HoneyTokenListView/HoneyTokenItem.tsx
index 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">