Repository navigation
feat(delivery): shared ConsoleShell, header bar without eyebrows, route tabs - #5468
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. Can't wait for the next one! 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". |
23a52dc to
d763425
Compare
…te tabs Why Delivery drew its own phone top bar, nav drawer, page header and route tabs beside console-ui's shared versions (FM-263, D1). Moving onto the shared pieces removes the local copies and the "Homelab CI/CD" eyebrow. What - Shell: ConsoleShell replaces Topbar, the Base UI drawer and nav-drawer.ts. Approvals link and live-feed indicator sit in the phone bar; feed and identity sit in the sidebar footer and drawer foot. @base-ui/react is no longer a Delivery dependency. - Theme: shared ops-theme key; a choice stored under delivery-theme moves over once (index.html's pre-paint script reads both). - PageHeader is an adapter over HeaderBar: h1#main-heading keeps focus after navigation, parent eyebrows become the lead link, generic eyebrows are dropped, the description is a muted line below the bar. - Service route tabs use NavTabs. - Element defaults move into console-ui's reserved `@layer ui.app`; the app-side `layers.css` order statement and the `ui.delivery` layer are gone. - Dead layout/tokens CSS removed; conformance allowlist shrinks, including the layer rule's bare-element baseline (base.css 42 -> 5, layout.css 35 -> 29). - Playwright selectors move from .page-header/.eyebrow/.subtitle to [data-page-header]/[data-page-lede]; expect() counts per spec unchanged. The skip link now focuses #main without a URL fragment. Verification - turbo build typecheck test lint --filter=@shepherdjerred/delivery: pass (18/18 tasks, rerun on CU2-4 + layer rule) - turbo test:extended --filter=@shepherdjerred/delivery: 422 passed - Playwright: 342 passed (desktop 106, mobile 106, model-desktop 65, model-mobile 65) - jscpd baseline ratchet passed; knip clean for delivery/console-ui - Not run: CI, deployment, live acceptance Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
d763425 to
3c43f1e
Compare
Why D1 (#5468) gave Delivery a copy of Tracker's theme.ts and theme.test.ts: the same migrateLegacyTheme, browser wrapper and tests with only the old key changed. main's jscpd ratchet now fails on that clone, and the repo-wide pre-commit hook rejects every commit until it is gone. What - console-ui exports migrateLegacyTheme(legacyKey, storage) and migrateLegacyThemeInBrowser(legacyKey) beside createThemeStore; its tests cover carry-over, shared-key-wins and no-op. - Delivery's and Tracker's theme.ts call it with their old key ("delivery-theme", "tracker.theme"); their duplicated tests are removed. Verification - `bun run jscpd`: baseline ratchet passed (failed on main 369ca51 before). - `bunx turbo run build typecheck test lint --filter=@shepherdjerred/console-ui --filter=@shepherdjerred/delivery --filter=@shepherdjerred/tracker`: pass. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Why
Delivery drew its own phone top bar, nav drawer, page header and route tabs beside console-ui's shared versions (FM-263, D1). Moving onto the shared pieces removes the local copies and the "Homelab CI/CD" eyebrow.
What
ConsoleShellreplaces Topbar, the Base UI drawer andnav-drawer.ts. The Approvals link and live-feed indicator sit in the phone bar; feed and identity sit in the sidebar footer and drawer foot.@base-ui/reactis no longer a Delivery dependency.ops-themekey; a choice stored underdelivery-thememoves over once.PageHeaderis an adapter overHeaderBar:h1#main-headingkeeps focus after navigation, parent eyebrows become the lead link, generic eyebrows are dropped, the description is a muted line below the bar.NavTabs.@layer ui.app; the app-sidelayers.cssandui.deliverylayer are gone..page-header/.eyebrow/.subtitleto[data-page-header]/[data-page-lede];expect(counts per spec are unchanged (all 25 specs identical to main). The skip link now focuses#mainwithout a URL fragment.package.json/bun.lockconflicted (kept axe-core 4.14.1, dropped@base-ui/react).Demo
Same Delivery e2e fixture served from main and from this branch, 1280px light/dark and 375px phone. The service page shows the new route tabs in the header bar and the eyebrow gone; the eyebrow lines on the other pages become the muted lead link. The missing spaces in the deployment summary line ("succeededdeployVersion set r2") appear identically before and after, so they are not part of this change.
Verification
bun install --frozen-lockfile;bunx turbo run build typecheck test lint --filter=@shepherdjerred/delivery: pass (18/18 tasks; 148 files, 1240 tests)bunx turbo run test:extended --filter=@shepherdjerred/delivery: pass (74 files, 461 tests)cd packages/delivery && bun run test:e2e(Playwright incl. axe): 402 passed🤖 Generated with Claude Code