Skip to content

feat(alert-dashboard): Hub frame on the shared pieces, unpadded and 28px - #5492

Merged
shepherdjerred merged 1 commit into
mainfrom
hub-h2-frame-v2
Dec 3, 2026
Merged

shepherdjerred merged 1 commit into
mainfrom
hub-h2-frame-v2

Conversation

@shepherdjerred

@shepherdjerred shepherdjerred commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

Why

Hub drew its own frame inside the shared shell: a padded main, a big h1 rule, nine kinds of bordered card, its own .button, .input, StatusBanner, stale notice and state lines. Unlayered element rules beat console-ui's components (the "2h ago" time spacing), and tables.css leaked into every .ui-table (wrapping row headers via white-space: normal on body cells, white cells on the current row). Plan A row H2 of the console-ui plan (FM-263); stacked on #5491 (H1). This is the big visual change: Hub gets denser and flatter, and controls shrink from 36px to 28px.

What

  • Frame: main has no padding; a page is the full-width HeaderBar, an optional figure strip, then blocks split by hairlines, with side-by-side blocks as hairline columns. PageHeading renders HeaderBar directly; back links sit in its lead (console-ui BackLink). The big-h1 rule is gone.
  • Shared pieces: State, Banner, Button, ButtonLink, SearchField, Field and Tabs replace Hub's state lines, StatusBanner/stale notice, .button, ui-btn anchors, search boxes, .input, toolbar selects and the email preview's .segmented format switch (Plain text is a disabled tab). Hub's Input component and its @base-ui/react dependency are gone.
  • Layers: element defaults plus 144 scoped element selectors move into console-ui's reserved @layer ui.app (no app layer names). The global mono time/table rule is deleted. 47 scoped selectors stay unlayered because layering them changes computed styles (they restyle cells and children of shared tables and grids); each was found by comparing computed styles of every moved rule across 35 routes at desktop and phone before and after.
  • Tables: tables.css no longer restyles .ui-table (no white-space: normal on body cells, no white current-row cells); text cells opt in with data-wrap, numerals use ui-num. The local .ui-table-scroll { position: relative } patch is dropped (console-ui's scroller is a containing block now).
  • Since the old branch: the main-only CI jobs block, ranked Renovate queue and code-review blocks take the gutter; CI jobs uses SearchField (was #components/input); the Renovate ranking filters use Field (was deprecated ui-select).
  • Embedded Incidents (feat(alert-dashboard): mount Incidents in Hub with its own PostgreSQL #5166): its pages relied on Hub's padded main, big h1, .page-heading/.eyebrow/.back-link, state lines and bare select styles. They now render the shared HeaderBar (old eyebrow as meta), BackLink and State, with the body inset by the gutter, so they keep working in the unpadded frame. Experiments pages already use HeaderBar/Section and now sit flush as designed.
  • Conformance: Hub allowlist 337 → 86 (bare-element-selector 221 → 47, shared-class-patch 77 → 29, local-copy 29 → 7, deprecated-class and inline-typography gone); Incidents 38 → 37. Only decreases.
  • Since the rebase onto feat(alert-dashboard): Hub shell on ConsoleShell #5491: the Renovate dependency-snapshot views (loading, empty, error, disclosures as hairline rows), Brim link on the AI page, Incidents load-error retry and refresh warning, and the stale notice's per-source label take the shared State, Banner and ButtonLink; Hub's and Incidents' home cards and the lazy-loading fallbacks use State.
  • Behaviour, routes, API and data are unchanged.

Demo

Before is main (668482c), after is this branch (H1 + H2), both on the e2e fixture server. Look for: no padded panel around the page; the stale banner and figure cards become full-width rows split by hairlines; buttons and inputs at 28px; report run header actions move into the header bar; the current table row is one even colour.

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 --filter=@shepherdjerred/incidents — 31/31 tasks pass (after rebasing onto main with feat(alert-dashboard): Hub shell on ConsoleShell #5491 merged).
  • bun scripts/checks/check-console-stack.ts — OK.
  • Hub Playwright (cd packages/alert-dashboard && bun run test:e2e) — 161 passed (kit specs and axe in light and dark included).
  • expect( counts per spec, H1 → this PR: all unchanged (alerts 88, ci-jobs 28, hub-views 92, hub 38, incidents 52, kit-overlays 75, kit 41, ops 135, promotion 40, reports 43, shell 89, traces 57, volume 68). Selectors migrated one-for-one (main .page-head → main > header).
  • Layering check: computed styles of every rule moved into ui.app, compared before/after on 35 routes at 1280px and 375px — no differences beyond sub-pixel table widths on /traces.
  • 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.
  • Extended tier: bun run verify:extended -- --filter='...[origin/main...HEAD]' — 56/56 tasks pass (Incidents' extended step and dependents, incl. Temporal 464 tests).
  • Not checked: CI, deployment, live Hub.

🤖 Generated with Claude Code

@shepherdjerred

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
shepherdjerred removed this pull request from stack #5493 November 28, 2026 22:24
@shepherdjerred
shepherdjerred marked this pull request as ready for review November 28, 2026 22:45
@shepherdjerred
shepherdjerred removed this pull request from stack #5494 December 3, 2026 03:26
Base automatically changed from hub-h1-shell to main December 3, 2026 03:26
@shepherdjerred

Copy link
Copy Markdown
Owner Author

@coderabbitai review

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

@coderabbitai

coderabbitai Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@shepherdjerred

Copy link
Copy Markdown
Owner Author

@codex review

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 3, 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-12-03T03:30:31.291329Z a871cfa 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. Nice work!

Reviewed commit: a871cfa946

ℹ️ 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 drew its own frame inside the shared shell: a padded main, a big
h1 rule, nine kinds of bordered card, its own .button, .input,
StatusBanner, stale notice and state lines. Unlayered element rules beat
console-ui's components (the "2h  ago" time spacing), and tables.css leaked
into every ui-table (wrapping row headers, white current-row cells).

What: main has no padding; a page is the full-width HeaderBar, an optional
figure strip, then blocks split by hairlines, with side-by-side blocks as
hairline columns. PageHeading renders HeaderBar directly and back links sit
in its lead (console-ui BackLink). State, Banner, Button, ButtonLink,
SearchField, Field and Tabs replace Hub's state lines, StatusBanner/stale
notice, .button, ui-btn anchors, search boxes, .input, toolbar selects and
the email preview's .segmented format switch (Plain text is a disabled
tab). Hub's Input component and its @base-ui/react dependency are gone.
Element defaults and 144 scoped element selectors move into console-ui's
@layer ui.app; the mono time/table rule and the big h1 rule are deleted.
tables.css no longer restyles ui-table: text cells opt in with data-wrap
and numerals use ui-num. Controls are 28px. The main-only CI jobs, ranked
Renovate queue and code-review blocks take the gutter, and the embedded
Incidents pages render the shared HeaderBar, BackLink and State with their
body inset, so they keep working inside the unpadded frame. Conformance:
Hub 337 -> 86 (bare-element 221 -> 47), Incidents 38 -> 37. Behaviour,
routes, API and data are unchanged.

Verification: see the PR.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@shepherdjerred
shepherdjerred merged commit 9d04858 into main Dec 3, 2026
3 of 10 checks passed
@shepherdjerred
shepherdjerred deleted the hub-h2-frame-v2 branch December 3, 2026 04:08
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