Repository navigation
feat(mail): shared console shell, banner, description list and email preview - #5483
Conversation
…preview Why Mail kept its own phone navigation, banner, metadata grid, table patches and email preview, so it drifted from the other consoles. What - ConsoleShell replaces Mail's sidebar, top bar and drawer; BackLink in the HeaderBar lead; Banner, State, DescriptionList, CodeBlock, Section and .ui-table (data-stack) replace local markup and patches. - Shared EmailPreview (referrerPolicy no-referrer) replaces Mail's iframe; the test asserting the referrer policy is kept. - Element defaults live in console-ui's `@layer ui.app`. - The "/" search shortcut is a ref-callback listener on a display: contents wrapper instead of an effect. - Detail metadata labels are sentence case; shared ExactTime, Duration and formatBytes replace Mail's formatters. - theme-color metas match the bg token; the conformance allowlist is empty (theme-color 2, bare-element-selector 21, local-copy 18, shared-class-patch 12 -> 0). - Routes and behaviour are unchanged. Verification - bun scripts/checks/check-console-stack.ts: OK - turbo build typecheck test lint for mail and console-ui: pass - lefthook pre-commit: pass - Not run: CI, live deployment; mail has no extended steps Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
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. Already looking forward to the next diff. 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". |
#5484) Why EmailPreview painted its frame with the page's --ui-panel, so on a dark console the "Light" view of an email without its own background showed black text on a dark panel (found converting Mail, M1 #5483; Mail's old preview was white). What - .ui-email-frame paints `Canvas`, resolved from the frame's own color-scheme (light or dark per the view), not the page's theme. - Hub /kit e2e: on a dark page the Light frame is white and the Dark frame is not. Verification - The new spec fails on the old CSS (frame rgb(25, 26, 24)) and passes now; kit email specs 2/2. - turbo build typecheck test lint for console-ui and alert-dashboard: 28/28; jscpd ratchet passes. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Why: #5483 moved the mail console onto the shared console-ui shell, so nothing in packages/mail imports @base-ui/react any more. knip reports it as an unused dependency and main fails the knip check. What: remove "@base-ui/react" from packages/mail/package.json and the matching mail workspace entry in bun.lock; no other lockfile entry changes. Verification: - rg "@base-ui/react" packages/mail: no remaining references - bunx turbo run knip --filter=//: pass (before: Unused dependencies (1)) - bunx turbo run typecheck lint build --filter=@shepherdjerred/mail: pass - Not run: CI, deployment (no runtime change) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Why
Mail kept its own phone navigation, banner, metadata grid, table patches and email preview, so it drifted from the other consoles (FM-263, plan row M1).
What
ConsoleShellreplaces Mail's sidebar, top bar and drawer;BackLinkin the header bar lead;Banner,State,DescriptionList,CodeBlock,Sectionand.ui-table(data-stack) replace local markup and patches.EmailPreview(sandboxed,referrerPolicy="no-referrer") replaces Mail's iframe; Mail's test asserting the referrer policy is kept.@layer ui.app; no app-side layer order or layer names./search shortcut is a ref-callback listener on adisplay: contentswrapper instead of an effect.ExactTime,DurationandformatBytesreplace Mail's formatters.theme-colormetas match the bg token. Conformance allowlist shrinks to empty (theme-color 2, bare-element-selector 21, local-copy 18, shared-class-patch 12 to 0).Demo
Captured against a local Mail server (seeded with five queued messages) on origin/main (Before) and this branch (After).
Message list, desktop
Message list, phone
Message detail, desktop
Message detail, phone
Message detail, HTML preview tab, desktop
Message detail, HTML preview tab, phone
Note: the HTML preview frame is the shared
EmailPreviewand its light/dark toggle is unchanged by this PR.Verification
bun --bun vitest run src/client/conformance.test.ts: pass with an empty allowlist.bun scripts/checks/check-console-stack.ts: OK.bun install --frozen-lockfile;bunx turbo run build typecheck test lint --filter=@shepherdjerred/mail --filter=@shepherdjerred/console-ui: 13/13 pass.bunx lefthook run pre-commit(via commit): pass.test:extendedsteps.🤖 Generated with Claude Code