Skip to content

feat(alert-dashboard): Hub shell on ConsoleShell - #5491

Merged
shepherdjerred merged 1 commit into
mainfrom
hub-h1-shell
Dec 3, 2026
Merged

shepherdjerred merged 1 commit into
mainfrom
hub-h1-shell

Conversation

@shepherdjerred

@shepherdjerred shepherdjerred commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

Why

Hub hand-built its phone top bar, drawer, skip link, icon buttons and row-height overrides beside the shared shell, so it drifted from Delivery and Tracker (already on ConsoleShell) and carried shell conformance violations. Plan A row H1 of the console-ui plan (FM-263).

What

  • Shell renders console-ui's ConsoleShell: skip link to #content, sidebar from the module registry (Ops, Alerts incl. Incidents, The Storm; Experiments when mounted), AppSwitcher from CONSOLE_LINKS, palette button on the existing palette store, ThemeRow, phone bar and drawer.
  • Deleted nav-drawer.ts and Hub's .topbar / .nav-drawer / .nav-backdrop / .icon-button / .skip-link / .brand CSS, the 26px row and group-margin overrides and --hub-topbar-h (call sites use --ui-topbar).
  • Theme store uses the default ops-theme key (same key as before); index.html theme-color metas carry the light/dark bg tokens.
  • At the shared 30px rows the sidebar is taller than a 1280×720 window, so the e2e asserts it scrolls inside itself with every link reachable and no page scroll. Sidebar, drawer and palette link counts come from the module registry (NAV_LINK_COUNT) instead of a literal.
  • Conformance allowlist only shrinks: 363 → 337.

Demo

Before is main (668482c), after is this branch, both on the e2e fixture server. The change is the sidebar: shared 30px rows (it now scrolls inside itself at 720px tall), the shared phone bar and drawer, and the shared skip link; page content is unchanged.

Light, 1280px

Page Before (main) After
Home
Alerts list
Alert detail
Reports
Report run
/kit

Dark, 1280px

Page Before (main) After
Home
Alerts list
Alert detail
Reports
Report run
/kit

Phone, 375px

Page Before (main) After
Home
Alerts list
Alert detail
Reports
Report run
/kit

Verification

  • bun install --frozen-lockfile; bunx turbo run build typecheck test lint --filter=@shepherdjerred/alert-dashboard --filter=@shepherdjerred/console-ui — 28/28 tasks pass.
  • bun scripts/checks/check-console-stack.ts — OK.
  • Hub Playwright (cd packages/alert-dashboard && bun run test:e2e) — 159 passed (kit specs and axe included).
  • expect( counts per spec, main → this PR: shell 84 → 89 (sidebar-scroll test asserts reachability per link), every other spec unchanged (alerts 88, ci-jobs 28, hub-views 92, hub 38, incidents 52, kit-overlays 75, kit 41, ops 135, promotion 40, reports 43, traces 57, volume 68). Selectors migrated one-for-one (literal 19 → NAV_LINK_COUNT).
  • bunx lefthook run pre-commit (jscpd ratchet) passes. Root knip is red on main from @base-ui/react in packages/mail (feat(mail): shared console shell, banner, description list and email preview #5483), unrelated to this PR.
  • No affected workspace has extended-tier steps (alert-dashboard has none).
  • Not checked: CI, deployment, live Hub.

🤖 Generated with Claude Code

@shepherdjerred

shepherdjerred commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner Author

@greptile-apps

greptile-apps Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

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

@coderabbitai

coderabbitai Bot commented Nov 28, 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

Copy link
Copy Markdown
Owner Author

@codex review

Automated re-review request for e6565f6 from the CI review gate.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-28T22:26:28.837077Z e6565f6 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: e6565f697f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Why: Hub hand-built its phone top bar, drawer, skip link, icon buttons and
row-height overrides beside the shared shell, so it drifted from Delivery
and Tracker (already on ConsoleShell) and carried shell conformance
violations.

What: Shell renders console-ui's ConsoleShell (skip link to #content,
sidebar from the module registry including Incidents and, when mounted,
Experiments; AppSwitcher from CONSOLE_LINKS; palette button on the existing
palette store; ThemeRow; phone bar and drawer). Deleted nav-drawer.ts and
Hub's .topbar/.nav-drawer/.nav-backdrop/.icon-button/.skip-link/.brand CSS,
the 26px row and group-margin overrides and --hub-topbar-h (call sites use
--ui-topbar). The theme store uses the default ops-theme key; index.html
theme-color metas carry the bg tokens. At 30px rows the sidebar is taller
than 720px, so the e2e asserts it scrolls inside itself with every link
reachable and no page scroll; sidebar, drawer and palette link counts come
from the module registry instead of a literal. Conformance allowlist only
shrinks (363 -> 337).

Verification: see the PR.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@shepherdjerred
shepherdjerred removed this pull request from stack #5494 December 3, 2026 03:26
@shepherdjerred
shepherdjerred merged commit c9f1d53 into main Dec 3, 2026
0 of 4 checks passed
@shepherdjerred
shepherdjerred deleted the hub-h1-shell branch December 3, 2026 03:26
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