Registry Mirror
Skip to content

Conversation

@backnotprop

Copy link
Copy Markdown
Owner

Builds the approved side-by-side prototype (approval inbox-side-by-side, 2026-10-22, from proto/side-by-side at 14676c42f).

  • The view beside the thread is named "Side by side". The pane header has a "Side by side | Full screen" switch (aria-pressed, icons only when the pane is narrow). Full screen's toolbar has a labelled "Side by side" button where "Exit full screen" was.
  • Pressing either button remembers the view for every file kind, in the cookie plannotator-inbox-file-view. Escape does not save. The toast says so once, with Undo. Before any choice, today's rule applies: HTML pages and images from a message's text open full screen.
  • The view is in the address (&view=full|side), so a reload or a shared link keeps it. A link without it uses the saved choice, then the rule. Steps, versions, linked pages and comment cards keep the current view.
  • Each tile's ⋯ menu has "Open side by side" / "Open full screen" for that file only. Download-only tiles do not get them.
  • Phones and stacked windows always show the file full screen: no switch, nothing saved.

Behavior change: an address with &file= but no view used to open beside the thread. It now follows the choice, then the rule, so HTML opens full screen.

Tests: fileView.test.ts (the decision table), sideBySide.test.tsx (DOM), and tests/e2e/inbox-side-by-side.spec.ts (compiled binary; Chromium, plus an iPhone in WebKit). Existing tests are updated for the new names and focus target.

The view beside the thread is now "Side by side". The pane header has a
two-part "Side by side | Full screen" switch, and full screen's toolbar
has a labelled "Side by side" where "Exit full screen" was. A press on
either is remembered (cookie plannotator-inbox-file-view) and applies to
every file kind; Escape's way out is not a press and saves nothing. The
toast says so once, with Undo. Until the first press, today's rule holds:
HTML pages and images from a message's text open full screen.

The view rides the address (&view=full|side), so reloads and shared links
keep it; a link without it uses the choice, then the rule. Steps, versions,
linked pages and comment cards carry the current view. Each tile's ⋯ gets
"Open side by side" / "Open full screen" for that one file. Phones and
stacked windows stay full screen with no switch and nothing saved.

Approval: inbox-side-by-side (2026-10-22).
- A linked page's Back finds the page's entry whatever view it names, and
  once it lands that entry takes the view on screen (no new entry after a
  switch).
- The toast's Undo restores the choice; it moves a file back only when the
  press moved it and it is still the file open.
- Opening the file already open (a comment card in the reply box) keeps
  its view, so a one-off view from a tile's ⋯ stays.
- A press on the switch's pressed half saves the view on screen as the
  choice, same toast, frame unchanged.
- Tests: assertions match their comments; fileView.test.ts keeps explicit
  cases; new cases for each of the above; e2e cleanup is an afterEach.
@backnotprop
backnotprop merged commit 0c4e046 into main Oct 22, 2026
32 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