From af8a5bd438e554229776e668bcfd7582f2d97183 Mon Sep 17 00:00:00 2001 From: lorentz Date: Thu, 16 Jul 2026 19:35:22 -0400 Subject: [PATCH] feat(23-02): add USER_AWARENESS badge variant + acknowledge_user label to ClassificationCard - Add USER_AWARENESS to ClassificationCardData verdict union - Add emerald VERDICT_VARIANT_CLASS entry for USER_AWARENESS (distinct from UNWANTED amber and THREAT destructive) - Add acknowledge_user: 'Acknowledge user' to ACTION_LABEL --- components/phishing/classification-card.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/phishing/classification-card.tsx b/components/phishing/classification-card.tsx index a6fc5a5..34b3730 100644 --- a/components/phishing/classification-card.tsx +++ b/components/phishing/classification-card.tsx @@ -12,7 +12,7 @@ import { hasPermission } from '@/lib/permissions'; export interface ClassificationCardData { id: string; - verdict: 'SPAM' | 'UNWANTED' | 'THREAT'; + verdict: 'SPAM' | 'UNWANTED' | 'THREAT' | 'USER_AWARENESS'; confidence: string | null; summary: string | null; reasons: string[]; @@ -31,6 +31,7 @@ const VERDICT_VARIANT_CLASS: Record = SPAM: 'bg-slate-500/15 text-slate-600', UNWANTED: 'bg-amber-500/15 text-amber-600', THREAT: 'bg-destructive/15 text-destructive', + USER_AWARENESS: 'bg-emerald-500/15 text-emerald-600', }; const ACTION_LABEL: Record = { @@ -41,6 +42,7 @@ const ACTION_LABEL: Record = { reset_password: 'Reset password', isolate_endpoint: 'Isolate endpoint', disable_forwarding_rule: 'Disable forwarding rule', + acknowledge_user: 'Acknowledge user', }; function humanizeAction(actionType: string): string {