diff --git a/ui/docs/design-system-phase2-preview.html b/ui/docs/design-system-phase2-preview.html index 92292b29..76107c7a 100644 --- a/ui/docs/design-system-phase2-preview.html +++ b/ui/docs/design-system-phase2-preview.html @@ -1,8 +1,8 @@
-Three reference pages migrated to the new shell — cliproxy (Config + ListPane), home (Monitor), health (Monitor + visual improvements). Pure layout migrations with no behavior changes for cliproxy/home; health gets cleaner hierarchy and KPI prominence.
+After user feedback caught a density regression, Phase 2 was scoped down: health stays migrated to Monitor archetype, home and cliproxy revert to their original designs. The design system docs are restructured to extract THREE identity-strip patterns from those canonical references.
Hero stat tiles → KpiRow. AuthMonitor + ErrorLogsMonitor wrapped as MonitorCards. Logs callout preserved.
Master-detail layout wrapped in PageShell + PageHeader + ConfigLayout. Brand strip moved into PageHeader; sidebar keeps the existing ProviderSidebarItem / VariantSidebarItem composition + ProxyStatusWidget. ProviderEditor unchanged. All sub-flows preserved (Quick Setup wizard, Add Account dialog, Account Safety warning).
HealthGauge becomes the hero inside a MonitorCard variant="terminal". HealthStatsBar replaced by KpiRow (Checks · Passed · Warnings · Errors) — clear severity hierarchy. Each health group becomes its own MonitorCard. Terminal aesthetic preserved per the locked decision (#4).
HealthGauge becomes the hero inside MonitorCard variant="terminal". KpiRow with severity tones replaces HealthStatsBar. Each HealthGroupSection becomes its own MonitorCard.
| Page | Before | After | Δ | Notes |
|---|---|---|---|---|
| home.tsx | 208 | 173 | -17% | InlineStat helper retired in favor of KpiCard |
| cliproxy.tsx | 600 | ~605 | +1% | Refactor extracts sidebar/detail to local consts; nearly net-neutral. ProviderEditor unchanged. |
| health.tsx | 263 | ~245 | -7% | Hero markup simplified; KpiRow replaces ad-hoc stats bar. Visuals upgraded. |
ui/docs/design-system.md.| Gate | Result | |
|---|---|---|
| Pattern | Reference | When to use |
| bun run validate (typecheck + lint + format) | green | |
| bun run build | green | |
| Privacy mode in screenshots | verified — eye-off icon top-right | |
| Anonymized data only | verified | |
| HeroBar (1-row dense) | pages/home.tsx | Dashboard pages with ≤4 hero stats packed tight |
| Rail-anchored (no top chrome) | pages/cliproxy.tsx | Multi-entity Config pages where the rail already carries identity |
| PageHeader (title + desc + actions) | pages/health.tsx | Pages where description / status info is non-redundant context |
| File | Change |
|---|---|
| ui/src/pages/health.tsx | Migrated to PageShell + PageHeader + Monitor archetype |
| ui/src/pages/home.tsx | Reverted to original (matches dev) |
| ui/src/pages/cliproxy.tsx | Reverted to original (matches dev) |
| ui/src/components/monitor-layout/kpi.tsx | KpiCard gains optional onClick prop |
| ui/docs/design-system.md | Restructured around three identity-strip patterns |
| ui/docs/design-decisions.md | v1.1 revision row capturing the rationale |
| ui/src/pages/_styleguide.tsx | Intro copy updated to mention three patterns |
-Source: plans/260425-1132-ccs-dashboard-design-system/ · Phase 1 PR: #1088
+PR #1089 · plan plans/260425-1132-ccs-dashboard-design-system/