Repository navigation
feat(alert-dashboard): Hub shell on ConsoleShell - #5491
Conversation
|
This change is part of the following stack: Change managed by git-spice. |
|
Automatic reviews are disabled for this repository. Configure in Code Review Settings. |
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
|
@codex review Automated re-review request for |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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>
e6565f6 to
325c7e2
Compare
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
Shellrenders console-ui'sConsoleShell: skip link to#content, sidebar from the module registry (Ops, Alerts incl. Incidents, The Storm; Experiments when mounted),AppSwitcherfromCONSOLE_LINKS, palette button on the existing palette store,ThemeRow, phone bar and drawer.nav-drawer.tsand Hub's.topbar/.nav-drawer/.nav-backdrop/.icon-button/.skip-link/.brandCSS, the 26px row and group-margin overrides and--hub-topbar-h(call sites use--ui-topbar).ops-themekey (same key as before);index.htmltheme-color metas carry the light/dark bg tokens.NAV_LINK_COUNT) instead of a literal.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
Dark, 1280px
Phone, 375px
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.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. Rootknipis red on main from@base-ui/reactinpackages/mail(feat(mail): shared console shell, banner, description list and email preview #5483), unrelated to this PR.🤖 Generated with Claude Code