Registry Mirror
Skip to content

Conversation

@backnotprop

Copy link
Copy Markdown
Owner

What changed

Approval record: .product/approved/inbox-one-fullscreen/ (approved 2026-10-16 by the owner, variant Drawer; not in this repo). Owner choices that override the designer's notes: the toolbar always starts showing, the Inbox no longer follows plan review's shared toolsHidden cookie, and the comments drawer never opens by itself.

One full-screen mode. The pane header's Full screen goes straight into what used to be "full view": the file fills the window and one floating toolbar is left. The old full screen (pane header + stepping bar + docked panel with only the thread hidden) and the separate eye button are gone, with their dead paths (the phone stepper bar and reply strip, onFullView, the eye's first-run label, the shared-cookie reads and writes in Thread.tsx). A phone and a stacked window use the same mode (44 px targets, no hover), led by ‹ Back to the thread.

The toolbar (FullViewBar.tsx): pen (HTML that takes comments), comment count, N/M ⌄ peek, ⋯ (FullScreenMore in OpenIn.tsx: Open in, Download, the other version; on a phone also the position), Exit full screen, » Hide tools.

  • Hide tucks it into a corner handle (‹ + the count, an amber dot when the file changed since sent or is gone). Tucked, the toolbar is inert and the handle is a real button ("Show tools, N comments[, file changed since sent]"); focus is never lost.
  • The corner (96 × 64 px) reveals it after 120 ms, leaving tucks it after 450 ms; while revealed the last button is a pin that keeps it out. A press outside, focus leaving, or Escape tucks a revealed toolbar.
  • On a phone the handle is a 44 × 52 px tab you tap.
  • ⌘⇧X on an HTML file in full screen tucks / shows it (from the page too); no new keys.
  • Every opening of full screen starts with the toolbar showing.

The drawer. The count opens the docked comments panel beside the page (320 px; the page narrows, not covered). It keeps its foot ("N annotations ride your next Send … M are on other files." + Write the reply). Open/closed is remembered (cookie plannotator-inbox-file-comments) and it never opens by itself: a comment saved while it is closed bumps the count (on the handle too; no bump under reduced motion). On a phone it is the existing bottom sheet.

Exit full screen puts the file back beside the thread with focus on the header's Full screen. Esc keeps its ladder (draft → hover → Interact) and never leaves full screen.

Unchanged: ]/[ stepping and the step chip, the N/M peek, the changed-since-sent chip (it does not tuck), light/dark on theme tokens, reduced motion.

Also fixed while proving it: on a phone the toolbar covered a film's "Comment at" button; the pane and the toast now keep above any file foot row (FILE_FOOT_ROW, data-file-foot).

Docs: the "Full view" bullet in CLAUDE.md/AGENTS.md is now "Full screen, one mode", plus its neighbours (stepping, phone and stacked-window bullets).

Proof

  • DOM_TESTS=1 bun test --isolate packages/inbox: 514 pass, 0 fail. New/rewritten: packages/inbox/fullView.test.tsx (the one mode and focus, tuck/reveal/pin and focus, the corner timing, the drawer and its remembered state, a new comment only bumping the count, the toolbar always starting out, ⌘⇧X on HTML only, ⋯, peek and steps, Escape, changed chip and dot, phone, stacked window, Exit) and packages/inbox/fullScreenThread.test.tsx (whole window: HTML opens with the toolbar showing whatever the shared cookie says and never writes it; the drawer comes back with the next file). fullViewRemembered.test.tsx (the shared-cookie behaviour) is deleted.
  • Typechecks: packages/inbox/tsconfig.json, apps/inbox/tsconfig.json clean.
  • E2E on the compiled binary: the whole Inbox suite (bun run test:e2e:inbox, 37 specs incl. inbox-full-view, inbox-attachments, inbox-attachment-stepping, inbox-image-viewer, inbox-mobile, inbox-video, inbox-worst-case, toolstrip-stacking): 282 passed, 2 skipped (env-gated), 0 failed.

Screenshots

From tests/e2e/inbox-full-view.spec.ts (headless Chromium 1280×800; phone in WebKit iPhone 15). Desktop: HTML, image and markdown, each light and dark, showing / tucked / revealed / pinned / drawer open; plus the HTML menu, annotating, beside the thread, the peek, the step chip, markdown changed + tucked; phone showing / tucked / revealed / comments sheet.

Local paths (not uploaded), in /tmp/one-fullscreen-built/:

  • html-annotating-dark.png
  • html-beside-dark.png
  • html-drawer-dark.png
  • html-drawer-light.png
  • html-menu-dark.png
  • html-pinned-dark.png
  • html-pinned-light.png
  • html-revealed-dark.png
  • html-revealed-light.png
  • html-showing-dark.png
  • html-showing-light.png
  • html-tucked-dark.png
  • html-tucked-light.png
  • image-drawer-dark.png
  • image-drawer-light.png
  • image-pinned-dark.png
  • image-pinned-light.png
  • image-revealed-dark.png
  • image-revealed-light.png
  • image-showing-dark.png
  • image-showing-light.png
  • image-tucked-dark.png
  • image-tucked-light.png
  • markdown-changed-tucked-dark.png
  • markdown-drawer-dark.png
  • markdown-drawer-light.png
  • markdown-pinned-dark.png
  • markdown-pinned-light.png
  • markdown-revealed-dark.png
  • markdown-revealed-light.png
  • markdown-showing-dark.png
  • markdown-showing-light.png
  • markdown-tucked-dark.png
  • markdown-tucked-light.png
  • peek-dark.png
  • phone-comments-dark.png
  • phone-comments-light.png
  • phone-revealed-dark.png
  • phone-revealed-light.png
  • phone-showing-dark.png
  • phone-showing-light.png
  • phone-tucked-dark.png
  • phone-tucked-light.png
  • phone-video-comment-at-light.png
  • step-chip-dark.png

Decisions the record didn't cover

  • The handle shows ‹ and the count, no "Show tools" word. The mock's word on the handle was a first-time hint tied to the rejected "start tucked" option. Since the toolbar always starts showing, the person tucks it themselves; the handle's accessible name is still "Show tools, N comments…" and its title is "Show tools".
  • The drawer's remembered state is a cookie (plannotator-inbox-file-comments, per browser), not config.json, and it is shared by every file and kind.
  • A stacked desktop window (too narrow for the file beside the thread) docks the drawer like a wide one; only a phone uses the bottom sheet.
  • On a phone, the position lives in ⋯ ("N of M · Every file in this thread") and in the sheet's foot, since the phone toolbar has no N/M.
  • Entering full screen by its button puts focus on the toolbar's first button and says "Full screen. Exit full screen is in the toolbar." Exit puts focus on the header's Full screen.
  • A selected card in the drawer stays open beside the page (a phone's sheet still steps aside to show the comment).
  • The step chip and the changed chip move left of an open drawer so they stay centred / visible on the page.

…phone ⋯ rows 44 px; handle clears the safe area; corner box off on touch; menu glyphs stroked

- AttachmentPane: leaving full screen resets the toolbar to pinned, so going back
  in never draws a tucked frame or slides in, and focus lands on its first button
  (regression test: Hide, the drawer, Write the reply, Full screen again)
- FullViewBar: inert set in a layout effect; the count bumps only while the
  drawer is closed
- inbox.css: 44 px rows in ⋯ under the phone query; the handle sits at
  env(safe-area-inset-right); the corner box takes no pointer on (hover: none);
  portaled menu glyphs keep their stroke (they drew as filled shapes)
- Thread.tsx: drop an orphaned comment
- e2e: the phone's ⋯ rows are at least 44 px
@backnotprop

Copy link
Copy Markdown
Owner Author

Review fixes in ffdd18e, then a merge of origin/main (0b09263, conflicts in Thread.tsx imports and the Playwright config comment only):

  • Going back into full screen after leaving it with the toolbar tucked now starts pinned from its first frame, with focus on the toolbar's first button. New DOM test for Hide → drawer → Write the reply → Full screen; it fails without the fix.
  • The phone's ⋯ rows are 44 px (asserted in inbox-full-view.spec.ts).
  • The handle clears env(safe-area-inset-right).
  • The corner box takes no pointer under (hover: none).
  • inert is set in a layout effect, and the count bumps only while the drawer is closed. The orphaned comment in Thread.tsx is gone.
  • Also fixed: the icons in portaled menus (⋯, Open in) drew as filled black shapes, because their stroke rule was scoped to .pn-inbox.

Results: DOM 541 pass, 0 fail. Inbox typechecks clean. E2E on the compiled binary (inbox-full-view, inbox-mobile, inbox-attachments, inbox-attachments-kinds, inbox-attachment-stepping, inbox-video, inbox-paste): 85 passed, 1 skipped, 0 failed.

# Conflicts:
#	AGENTS.md
#	tests/e2e/playwright.config.ts
… file viewer's keys move into the shortcut registry

Escape in a full-screen file now closes the innermost thing first (the
file list or the menu, a comment being written, the image/film comment
row, the comments drawer, Annotate on HTML, the unsaved-comment
question) and only then leaves full screen: back beside the thread, or
back to the thread where the file can only be full screen. Typed words
are never lost: Escape on a composer holding words asks first (Save it,
Discard it, Keep writing). From inside an HTML page, Annotate's Escape
is a rung of the same ladder, and in Interact the bridge offers an
Escape the page did not use (page-escape, HtmlViewer onPageEscape).

The Inbox's keys get a registry surface (packages/inbox/shortcuts):
inbox-file-viewer (Escape, ] [ arrows, the full-screen chord),
inbox-thread (E, Z) and the existing inbox-search, with the shared
guard rules in one place (guards.ts). useShortcutScope takes a capture
option.
…he next Escape); the menu-row check waits for the opening scale
# Conflicts:
#	AGENTS.md
#	packages/inbox/components/AttachmentPane.tsx
#	packages/inbox/components/OpenIn.tsx
#	packages/inbox/components/Thread.tsx
#	packages/inbox/fullView.test.tsx
#	packages/inbox/inbox.css
#	tests/e2e/inbox-mobile.spec.ts
#	tests/e2e/playwright.config.ts
# Conflicts:
#	AGENTS.md
#	packages/inbox/components/Toast.tsx
#	packages/inbox/inbox.css
…t a title

The approved Drawer design draws the whole "Changed since Claude sent it"
sentence as the chip's component tooltip (ui's Tooltip), never a native title.
inbox-image-viewer.spec.ts still asked for a title attribute, failed, and the
worker restart that followed reran beforeAll with an empty world, so every
later test in the file timed out or looked for an empty thread id. The spec
now hovers the chip and reads the tooltip.
@backnotprop
backnotprop merged commit 084fe53 into main Oct 19, 2026
29 checks passed
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