Skip to content

feat(mail): shared console shell, banner, description list and email preview - #5483

Merged
shepherdjerred merged 1 commit into
mainfrom
mail-m1-look
Nov 28, 2026
Merged

shepherdjerred merged 1 commit into
mainfrom
mail-m1-look

Conversation

@shepherdjerred

@shepherdjerred shepherdjerred commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

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

  • ConsoleShell replaces Mail's sidebar, top bar and drawer; BackLink in the header bar lead; Banner, State, DescriptionList, CodeBlock, Section and .ui-table (data-stack) replace local markup and patches.
  • Shared EmailPreview (sandboxed, referrerPolicy="no-referrer") replaces Mail's iframe; Mail's test asserting the referrer policy is kept.
  • Element defaults live in console-ui's @layer ui.app; no app-side layer order or layer names.
  • 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. Conformance allowlist shrinks to empty (theme-color 2, bare-element-selector 21, local-copy 18, shared-class-patch 12 to 0).
  • Routes and behaviour are unchanged.

Demo

Captured against a local Mail server (seeded with five queued messages) on origin/main (Before) and this branch (After).

Message list, desktop

Before After
light
dark

Message list, phone

Before After
light
dark

Message detail, desktop

Before After
light
dark

Message detail, phone

Before After
light
dark

Message detail, HTML preview tab, desktop

Before After
light
dark

Message detail, HTML preview tab, phone

Before After
light
dark

Note: the HTML preview frame is the shared EmailPreview and 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.
  • Extended tier: Mail has no test:extended steps.
  • Not run: exact-head Woodpecker CI, deployment, live behaviour.

🤖 Generated with Claude Code

…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>
@shepherdjerred

Copy link
Copy Markdown
Owner Author

This change is part of the following stack:

Change managed by git-spice.

@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 marked this pull request as ready for review November 28, 2026 21:33
@shepherdjerred

Copy link
Copy Markdown
Owner Author

@codex review

Automated re-review request for 7a7f3b6 from the CI review gate.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 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-11-28T21:36:10.371537Z 7a7f3b6 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. Already looking forward to the next diff.

Reviewed commit: 7a7f3b68f5

ℹ️ 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".

shepherdjerred added a commit that referenced this pull request Nov 28, 2026
#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>
@shepherdjerred
shepherdjerred merged commit 668482c into main Nov 28, 2026
3 of 7 checks passed
@shepherdjerred
shepherdjerred deleted the mail-m1-look branch November 28, 2026 21:44
shepherdjerred added a commit that referenced this pull request Nov 29, 2026
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>
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