From 5ecc0f9e475dd0680b01632a47b5f8fc2dc1339c Mon Sep 17 00:00:00 2001 From: scotttong Date: Mon, 6 Jul 2026 16:16:48 -0700 Subject: [PATCH] refactor(ui): collapse dead agentStatusBadge duplicate into brandChipBadge (A1) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit agentStatusBadge in lib/status-colors.ts was byte-for-byte identical to brandChipBadge for all 4 of its keys (gray/blue/amber/red) and had zero importing call sites — delete the duplicate map, keep brandChipBadge as the single brand .task-chip style source. AgentBadgeColor remains (used by agentStatusColor/agentStatusCapsule) and is a subset of BrandChipColor. Zero rendered-output change. Co-Authored-By: Claude Fable 5 --- ui/src/lib/status-colors.ts | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/ui/src/lib/status-colors.ts b/ui/src/lib/status-colors.ts index 9b92a20490..5192c8fe54 100644 --- a/ui/src/lib/status-colors.ts +++ b/ui/src/lib/status-colors.ts @@ -107,13 +107,10 @@ export const agentStatusColor: Record = { export const agentStatusColorDefault: AgentBadgeColor = "gray"; -/** Brand `.task-chip` styles (1px border) per colour name — light + dark. */ -export const agentStatusBadge: Record = { - gray: "bg-[#F5F3F0] text-[#52585D] border-[#A8AEB2] dark:bg-[#6e696024] dark:text-[#9A958A] dark:border-[#9e958a73]", - blue: "bg-[#DBEAFE] text-[#1D4ED8] border-[#2563EB] dark:bg-[#2563eb2e] dark:text-[#2563EB] dark:border-[#2563eb73]", - amber: "bg-[#FEF3C7] text-[#B45309] border-[#F59E0B] dark:bg-[#f59e0b24] dark:text-[#F59E0B] dark:border-[#f59e0b73]", - red: "bg-[#FEE2E2] text-[#991B1B] border-[#DC2626] dark:bg-[#dc26262e] dark:text-[#DC2626] dark:border-[#dc262673]", -}; +// Brand `.task-chip` styles per colour name live in `brandChipBadge` below — +// `AgentBadgeColor` is a subset of `BrandChipColor`, so agent badges index +// straight into it. (A byte-identical `agentStatusBadge` duplicate map was +// collapsed into `brandChipBadge` in the Run 2 review; DECISION-SHEET.md A1.) /** Heartbeat-capsule fill (solid) per colour name. gray darkens in dark mode. */ export const agentStatusCapsule: Record = {