diff --git a/ui/src/components/ActivityCharts.tsx b/ui/src/components/ActivityCharts.tsx index 1463eb0209..d207cf2864 100644 --- a/ui/src/components/ActivityCharts.tsx +++ b/ui/src/components/ActivityCharts.tsx @@ -174,13 +174,20 @@ export function PriorityChart({ issues }: { issues: { priority: string; createdA ); } +// DECISION-SHEET.md B5: chart status colors re-pointed at the canonical +// --status-task-* system (DESIGN.md principle 5 — an operator learns one +// status vocabulary; badge, row, chart, and log agree). Previously an +// independent palette (todo blue, in_progress violet, etc.). `backlog` +// deliberately keeps --project-none (pre-B5, per user ruling); the +// priority series and success-rate tints below are not status hues and +// are left alone. const statusColors: Record = { - todo: "var(--hex-3b82f6)", - in_progress: "var(--hex-8b5cf6)", - in_review: "var(--hex-a855f7)", - done: "var(--hex-10b981)", - blocked: "var(--hex-ef4444)", - cancelled: "var(--hex-6b7280)", + todo: "var(--status-task-todo)", + in_progress: "var(--status-task-in_progress)", + in_review: "var(--status-task-in_review)", + done: "var(--status-task-done)", + blocked: "var(--status-task-blocked)", + cancelled: "var(--status-task-cancelled)", backlog: "var(--project-none)", }; diff --git a/ui/src/index.css b/ui/src/index.css index 513b04a63f..277b654292 100644 --- a/ui/src/index.css +++ b/ui/src/index.css @@ -1455,14 +1455,11 @@ span.paperclip-mention-chip[data-mention-kind="external-object"] { --hex-facc15: #facc15; /* OrgChart.tsx agent status dot — 'paused' / 'idle' (shared value). */ --hex-f87171: #f87171; /* OrgChart.tsx agent status dot — 'error'. */ --hex-a3a3a3: #a3a3a3; /* OrgChart.tsx agent status dot — 'terminated' + defaultDotColor fallback. */ - --hex-ef4444: #ef4444; /* ActivityCharts.tsx — priority 'critical' + status 'blocked' (shared value); also the <0.5 success-rate bar tint. */ + --hex-ef4444: #ef4444; /* ActivityCharts.tsx — priority 'critical'; also the <0.5 success-rate bar tint. (Chart STATUS hues re-pointed at --status-task-* in DECISION-SHEET.md B5; priority/success series stay independent.) */ --hex-f97316: #f97316; /* ActivityCharts.tsx — priority 'high'. */ --hex-eab308: #eab308; /* ActivityCharts.tsx — priority 'medium'; also the 0.5-0.8 success-rate bar tint. */ - --hex-6b7280: #6b7280; /* ActivityCharts.tsx — priority 'low' + status 'cancelled' + statusColors fallback (shared value). */ - --hex-3b82f6: #3b82f6; /* ActivityCharts.tsx — status 'todo' (independent from --status-task-todo which is #f59e0b). */ - --hex-8b5cf6: #8b5cf6; /* ActivityCharts.tsx — status 'in_progress' (independent from --status-task-in_progress which is #2563eb — flagged inconsistency, TOKEN-AUDIT.md 1.2). */ - --hex-a855f7: #a855f7; /* ActivityCharts.tsx — status 'in_review'. */ - --hex-10b981: #10b981; /* ActivityCharts.tsx — status 'done'; also the >=0.8 success-rate bar tint. */ + --hex-6b7280: #6b7280; /* ActivityCharts.tsx — priority 'low' + unknown-status statusColors fallback. */ + --hex-10b981: #10b981; /* ActivityCharts.tsx — >=0.8 success-rate bar tint. */ --project-none: #64748b; /* Semantic rename of --hex-64748b (DECISION-SHEET.md A3, value unchanged). 'No project assigned' muted-slate fallback (TOKEN-AUDIT.md 1.3) across Routines/MarkdownEditor/RoutineRunVariablesDialog/RoutineList/IssueColumns/editable-sections; also ActivityCharts.tsx status 'backlog'. */ --project-seed: #6366f1; /* Semantic rename of --hex-6366f1 (DECISION-SHEET.md A3, value unchanged). Project-color-fallback indigo seed default (ProjectDetail/PipelineSettings/IssueProperties/NewIssueDialog) — new-project-color-picker-seed family per TOKEN-AUDIT.md 1.3. */ --liveness-blue: #2563eb; /* DECISION-SHEET.md A6: IssueChatThread.tsx human-message 'liveness blue' bubble (PAP-95 rev 5). Same value as --status-task-in_progress by coincidence, decoupled on purpose so a future status-hue change doesn't drag the chat bubble along. */