Skip to content

feat(alert-dashboard): Hub figures, chips, tabs and data pieces from console-ui - #5559

Open
shepherdjerred wants to merge 2 commits into
feat/hub-reports-traces-sectionsfrom
feat/hub-figures-tables-shared
Open

shepherdjerred wants to merge 2 commits into
feat/hub-reports-traces-sectionsfrom
feat/hub-figures-tables-shared

Conversation

@shepherdjerred

@shepherdjerred shepherdjerred commented Dec 3, 2026 •

Copy link
Copy Markdown
Owner

Why

Hub still carried its own copies of the shared look: KPI card grids, pill chips, three tab implementations, a table, sparkline, status matrix and two meters, plus hand-rolled section heads. This is H4 of the one-look plan; it is stacked on #5550 (which is stacked on #5546).

What

  • KPI card grids, glance tiles, hero-figure and the CI queue cells become FigureStrip (the CI jobs Kueue cells now have the strip's gutter).
  • visual-pill and mono chips become Chip; filter buttons and the cluster, observability, trace, reports-feed and detail tab bars become Tabs.
  • Local DataTable, Sparkline, StatusMatrix and the budget and stacked meters are deleted for the console-ui ones. Hub keeps StackTree, the signal list and the uPlot charts.
  • Remaining block-heading h2s and the promotion page's hand-built section heads and glance strip become Section and FigureStrip. .block-heading and about 1,200 lines of dead CSS are removed.
  • console-ui Banner text takes the full row on a phone instead of a narrow column beside the glyph.
  • Review follow-ups: FigureStrip gains a screen-reader severity word and a renderLink slot (the whole cell is the link) and Home's glance figures use it; StackedMeter segments accept tone: "accent" (restores "Prior-round saved"); the remaining hand-built ui-section-head headers (Home, system, alert detail, areas, attention, flow, new-since-last-visit, CI stacks) are Section.
  • Conformance allowlist 85 -> 56 counts (19 -> 13 entries); jscpd baseline tightened.
  • e2e selectors migrated one for one (tab -> radio, .metric / .eng-kpi-card -> term cells via a figure() helper). expect( counts unchanged: alerts 88, ops 136, reports 43, traces 57, volume 68, hub-views 81.

Demo

Page Before After
home light-desktop
home dark-desktop
home light-phone
ci light-desktop
ci dark-desktop
ci light-phone
promotion light-desktop
promotion dark-desktop
promotion light-phone
cluster light-desktop
cluster dark-desktop
cluster light-phone

The CI jobs page now has a gutter on the Kueue figure cells, and the Home banner text takes the full row on a phone.

Verification

  • bunx turbo run build typecheck test lint for alert-dashboard and console-ui: pass.
  • bunx lefthook run pre-commit, bun run jscpd: pass.
  • bun run test:e2e (alert-dashboard): 161 passed.
  • Extended tier: bun run verify:extended over the whole affected graph wandered through unrelated dependents, so I ran turbo run test:extended for alert-dashboard and console-ui only: pass. Unit tests of every console-ui dependent pass except streambot's unrelated moveSession test.
  • bun run test:e2e: 161 passed after the follow-ups.
  • Not run: CI, deployment.

🤖 Generated with Claude Code

…console-ui

Why
Hub still carried its own copies of the shared look: KPI card grids, pill
chips, three tab implementations, a table, sparkline, status matrix and two
meters, plus hand-rolled section heads. Every console should use the one set
of pieces.

What
- KPI card grids, glance tiles, `hero-figure` and the CI queue cells become
  `FigureStrip` (the CI jobs Kueue cells now have the strip's gutter).
- `visual-pill` and the mono chips become `Chip`; filter buttons, the cluster,
  observability, trace, reports-feed and detail tab bars become `Tabs`.
- Local DataTable, Sparkline, StatusMatrix and the budget/stacked meters are
  deleted in favour of the console-ui ones; Hub keeps StackTree, the signal
  list and the uPlot charts.
- Remaining `block-heading` h2s and the promotion page's hand-built section
  heads and glance strip become `Section` and `FigureStrip`; `.block-heading`
  and about 1,200 lines of dead CSS are gone.
- console-ui Banner text takes the full row on a phone (it wrapped in a
  narrow column beside the glyph).
- Conformance allowlist 85 -> 56 counts (19 -> 13 entries); jscpd baseline
  tightened.
- e2e selectors migrated one for one to roles and labels (tab -> radio,
  `.metric`/`.eng-kpi-card` -> term cells via a `figure()` helper); expect
  counts unchanged: alerts 88, ops 136, reports 43, traces 57, volume 68,
  hub-views 81.

Verification
- bunx turbo run build typecheck test lint for alert-dashboard and console-ui
  pass; bunx lefthook run pre-commit and bun run jscpd pass.
- bun run test:e2e in alert-dashboard: 161 passed.
- Not run: extended tier, CI, deployment.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Automatic reviews are disabled for this repository. Configure in Code Review Settings.

@coderabbitai

coderabbitai Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@shepherdjerred
shepherdjerred marked this pull request as ready for review December 3, 2026 07:15
…n heads, accent tone

Why
Review of the H4 stack asked for the Hub workarounds to move into the shared
pieces and for the remaining hand-built section heads to go.

What
- console-ui FigureStrip adds a screen-reader severity word beside the glyph
  and a `renderLink` slot; a linked figure now stretches over its whole cell.
  Hub's local severity-word workaround is removed and Home's glance figures
  use the slot (router link, new-tab link for Tracker).
- console-ui StackedMeter segments accept `tone: "accent"`; the "Prior-round
  saved" gate-outcome segment takes it again.
- Home, system, alert detail, areas, attention, flow, new-since-last-visit and
  the CI stacks heads are Section; the unused section CSS is removed.
- README lines and console-ui tests for each.

Verification
- bunx turbo run test typecheck lint for alert-dashboard and console-ui pass;
  tests of every console-ui dependent pass except streambot's unrelated
  moveSession test.
- bunx lefthook run pre-commit and bun run jscpd pass.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant