Commit 945c353
feat(dashboard): Command Center redesign (mission-control DNA) (#4814)
* docs(dashboard): add Command Center design system contract
DESIGN.md is the brand contract every redesign slice reads. DNA:
mission-control (deep-space navy, amber telemetry, cyan health, mono
data, alert hierarchy) + Linear-grade craft (Inter 510 signature
weight, negative letter-spacing, keyboard-first density).
Aegis is a command center for an agent fleet, not a SaaS dashboard —
the redesign makes that truth visible. Token-exact (hex + CSS var
mapping) so aegis-driven Claude Code sessions can execute slices in
parallel against one source of truth.
Defines 10 ordered redesign slices (tokens → status → mono sweep →
KPI/table/palette/shell/detail → page pass → cuts → polish).
Generated by Hephaestus (Aegis dev agent)
* refactor(dashboard): apply command-center design tokens + Inter
Slice 1 of the Command Center redesign (dashboard/DESIGN.md). Token
foundation only — no component .tsx changes.
- @theme palette -> mission-control DNA: deep-space navy surfaces
(#0b1120 / #111827 / #1a2535 / #1e3a5f), amber primary accent
(#ffb800), cyan health (#00d4ff), alert/warning/success realigned.
- Text -> cool-white #e8f0fe / #8ba3c7 / #4a6080 (WCAG AA on navy).
- CTA pair -> amber bg + navy text.
- Retire purple: --color-accent-purple aliased to --color-accent
(deprecated) so existing references resolve.
- Status dot tokens remapped to the §4 status system.
- Fonts: DM Sans -> Inter (cv01/ss03/cv11 feature settings); mono stays
JetBrains Mono. Accessibility fonts (OpenDyslexic, Atkinson) kept.
Existing CSS variable names preserved (values changed only) so all
current Tailwind utilities and component styles resolve without code
edits. build:dashboard passes; verified live (body bg #0b1120, Inter).
Executed via an aegis-driven Claude Code session (acceptEdits) reading
DESIGN.md as the contract.
Generated by Hephaestus (Aegis dev agent)
* refactor(dashboard): centralize status -> color (Command Center §4)
Slice 2. Introduces a single source of truth for status colors so every
status dot/badge/pill draws from one map instead of scattered hardcoded
token tables.
- utils/statusStyles.ts: canonical StatusKey -> {dotColor,label,className}
map per DESIGN.md §4 (cyan idle, amber working, warning
awaiting/permission/stalled, success completed, danger
error/killed/crashed, muted unknown). Includes getStatusStyle().
- StatusDot.tsx, StallBadge.tsx: drop inline STATUS_COLORS /
STALL_COLOR_CLASSES; source color from getStatusStyle. Layout/copy/
pulse/flash untouched.
- 41-test contract suite covers each status + unknown fallback; tsc clean;
build:dashboard passes.
Remaining status-color consumers can adopt getStatusStyle in later slices.
Executed via an aegis-driven Claude Code session (acceptEdits) reading
DESIGN.md.
Generated by Hephaestus (Aegis dev agent)
* refactor(dashboard): mono-for-values typography sweep (Command Center §2)
Slice 3. Applies the "values are mono" rule from DESIGN.md §2: every
numeric reading (tokens, ms, latency, cost, session IDs, timestamps,
counts, metric percentages) renders in JetBrains Mono; labels and
prose stay Inter. Mechanical, high-impact toward the command-center feel.
Touched value renderers in cost/overview/session components and the
Analytics/Cost/Metrics pages. Layout and logic unchanged; only the
value element gets font-mono.
tsc clean; build:dashboard passes.
Executed via an aegis-driven Claude Code session (acceptEdits) reading
DESIGN.md.
Generated by Hephaestus (Aegis dev agent)
* refactor(dashboard): command-center KPI/telemetry cards (§4)
Slice 4. Restyles overview MetricCard(s) + analytics KPIBanner to the
Command Center KPI pattern: #111827 surface, 1px #1e3a5f border, 16px
pad, uppercase Inter 590 11px muted label, big JetBrains Mono value,
cyan delta/sparkline. Data/props/behavior unchanged; className/style
swaps to design tokens only.
tsc clean; build:dashboard passes. Executed via an aegis-driven Claude
Code session (acceptEdits) reading DESIGN.md.
Generated by Hephaestus (Aegis dev agent)
* refactor(dashboard): command-center data tables (§4)
Slice 5. SessionTable, VirtualizedSessionList, SessionMobileCard →
Command Center table pattern: 1px row dividers (--color-border-subtle),
uppercase muted header row on #0b1120, status cell via getStatusStyle
(dot+label), numeric cells font-mono, hover --color-surface-hover,
active row = 2px left amber border + surface-hover bg. Dense rows.
Column set, sorting, virtualization, props unchanged. tsc clean; build
passes. Executed via an aegis-driven Claude Code session (acceptEdits).
Generated by Hephaestus (Aegis dev agent)
* refactor(dashboard): command-center app shell (§4)
Slice 6. Sidebar + Header → console aesthetic:
- Sidebar: solid #060912 (--color-void-deep) instead of frosted glass;
borders -> --color-border; active nav item = 2px left amber
(--color-accent) bar + --color-surface-hover bg + amber text (was
cyan); hover rows use --color-surface-hover consistently.
- Header: solid #0B1120 bg (--color-void) instead of frosted; border
-> --color-border. ⌘K kbd stays mono; PREVIEW badge stays amber.
Command palette + brand wordmark unchanged this slice. Layout/routing/
collapse behavior identical. tsc clean; build passes.
Executed by hand where the aegis-driven session bailed mid-investigation;
slices 1-5 remain aegis-driven.
Generated by Hephaestus (Aegis dev agent)
* refactor(dashboard): command-center session detail (§4)
Slice 7. SendContinueButton, SessionHeader, session-detail MessageFooter
-> console aesthetic: amber CTA send button, mono hints, token borders/
surfaces. Transcript/approval-chrome touched where these components own
them. Behavior/props identical; className/style swaps to tokens.
tsc clean; build passes. Executed via an aegis-driven Claude Code session.
Generated by Hephaestus (Aegis dev agent)
* test(dashboard): fix 9 failing tests for Command Center redesign
Fixes PR #4814 CI failures:
- cls-regression.test.tsx: Update ROW_HEIGHT 52→40, GROUP_ROW_HEIGHT 44→36,
transition assertion to match new transition-colors shorthand
- a11y-css.test.ts: Update focus ring assertion from box-shadow to outline
(matches DESIGN.md §1 amber focus ring)
- MetricCards.mobile-responsive.test.tsx: Update selectors from .card-glass
to new rounded-[10px] container structure
- SessionCostTable.test.tsx: Update cost assertions to handle split text
nodes (header total + row value both render $1.25)
All 9 previously-failing tests now pass.
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Hephaestus <hephaestus@aegis.dev>1 parent 04177f1 commit 945c353
33 files changed
Lines changed: 700 additions & 265 deletions
File tree
- dashboard
- src
- __tests__
- components
- analytics
- approvals
- cost
- __tests__
- layout
- overview
- __tests__
- session
- pages
- session-detail
- utils
- __tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
Lines changed: 15 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | | - | |
68 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | | - | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
76 | | - | |
| 77 | + | |
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
0 commit comments