Repository navigation
feat(alert-dashboard): Hub frame on the shared pieces, unpadded and 28px - #5492
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
|
e6565f6 to
325c7e2
Compare
|
@coderabbitai review Automated re-review request for |
Action not completed
|
|
@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. Nice work! 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 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>
a871cfa to
217bacd
Compare
Why
Hub drew its own frame inside the shared shell: a padded
main, a bigh1rule, 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), andtables.cssleaked into every.ui-table(wrapping row headers viawhite-space: normalon 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
mainhas no padding; a page is the full-widthHeaderBar, an optional figure strip, then blocks split by hairlines, with side-by-side blocks as hairline columns.PageHeadingrendersHeaderBardirectly; back links sit in itslead(console-uiBackLink). The big-h1rule is gone.State,Banner,Button,ButtonLink,SearchField,FieldandTabsreplace Hub's state lines,StatusBanner/stale notice,.button,ui-btnanchors, search boxes,.input, toolbar selects and the email preview's.segmentedformat switch (Plain text is adisabledtab). Hub'sInputcomponent and its@base-ui/reactdependency are gone.@layer ui.app(no app layer names). The global monotime/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.cssno longer restyles.ui-table(nowhite-space: normalon body cells, no white current-row cells); text cells opt in withdata-wrap, numerals useui-num. The local.ui-table-scroll { position: relative }patch is dropped (console-ui's scroller is a containing block now).SearchField(was#components/input); the Renovate ranking filters useField(was deprecatedui-select).main, bigh1,.page-heading/.eyebrow/.back-link, state lines and bareselectstyles. They now render the sharedHeaderBar(old eyebrow as meta),BackLinkandState, with the body inset by the gutter, so they keep working in the unpadded frame. Experiments pages already useHeaderBar/Sectionand now sit flush as designed.State,BannerandButtonLink; Hub's and Incidents' home cards and the lazy-loading fallbacks useState.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
Dark, 1280px
Phone, 375px
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.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).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. Rootknipis red on main from@base-ui/reactinpackages/mail(feat(mail): shared console shell, banner, description list and email preview #5483), unrelated.bun run verify:extended -- --filter='...[origin/main...HEAD]'— 56/56 tasks pass (Incidents' extended step and dependents, incl. Temporal 464 tests).🤖 Generated with Claude Code