Registry Mirror
Skip to content

Conversation

@backnotprop

Copy link
Copy Markdown
Owner

Batch 2 of the Inbox stress-test fixes: the fix plan's PR 8 (the open file at 920 to 1220 px and the file viewer) and PR 9 (shared pieces in packages/ui, packages/core and packages/guide-viewer). Batch 1 was #1899.

Before/after for every finding, with the desktop pixel diff, is in /tmp/break-ui-inbox/batch2/BEFORE-AFTER.html (main f1ab567 beside this branch, same seeded data with a fixed clock, same state and width).

PR 8: Inbox only

Row Fix
45 Under 780 px of pane, the comments panel folds into the header's Comments button and opens over the file (decision 2). 1280 and 1440 keep it docked; the phone keeps its own sheet. The row-45 test.fixme is now a real test at 920, 1024, 1180 and 1280.
46 In a folded pane, Global comment sits on its own line instead of under the toolstrip.
47, 61 A PDF or other download has no panel and no Comments button unless other files have comments. Its card wraps at every width.
48 The guided review folds its panel the same way below 1,200 px. Before, the panel was hidden at 900 px and below with no way to open it.
50 The full-screen foot wraps at every width.
51, 52 Panoramas crop to 4:1 in the gallery and scroll sideways in the viewer. An image smaller than its box draws at its own size.
44 Log, YAML, CSV, JSON and other data files open in the code view (decision 3); .txt keeps the text view. Text comments left earlier on those files show as Unanchored.
60 A comment on a very long line stores a 4 KB excerpt, the line length and a hash. Old records still match.

PR 9: shared code

Row Fix
36 QuestionBlock gets an optional statusLabel seam (Viewer questionStatusLabel). The Inbox uses it to show "Not sent" on an unsent pick.
37, 38 Decision 11, so plan review and annotate get these too. A choice question whose recommendation names none of its choices shows the Suggested line. A read-only card no longer draws an empty Other row.
59 CodeFileView gets an optional overflow (default scroll). The Inbox wraps files that have a line over 1,000 characters.
56, 57 The guide's "Everything else" card is not numbered, so the card count matches the header. Headings # to ###### render as headings.
27 capQuestionPrompt cuts prompts at whole characters. question-block and inbox-questions both use it, and the Inbox also accepts the cut an older client makes.

What the shared changes do outside the Inbox:

  • Plan review and annotate. The same document without the unmatched-recommendation question is pixel-identical on main and this branch, at 1440 and 1280 in plan review and at 1440 in annotate. With that question, only the new Suggested line differs, plus the content under it moving down.
  • guides.show. The manifest is regenerated. The viewer JS is 399.7 KB gzipped against the 400 KB budget (it was 399.6 KB).
  • Next publish. packages/ui/HANDOFF.md has a note for each shared change. Pi vendors text-cut.ts beside question-block.ts.

Desktop at 1280 and 1440

Pixel diff of the list, a thread with files, a message with a table, a Markdown file beside the thread and full screen, a replaced question, Decisions and Settings: 0 changed pixels. The one exception is Decisions, where the seed stamps decisions with the wall clock, so their times and order differ between the two seed runs.

These screens change at 1440 on purpose: a PDF loses its empty panel, data files open as code, a minified line wraps, panoramas and tiny images, question cards, and the guide count.

Tests

  • bun run typecheck
  • Root bun test
  • DOM tests for inbox, ui, editor, review-editor and guide-viewer
  • smoke:package
  • Full Inbox Playwright suite on the compiled binary

The fix plan's PR 8 (the open file at 920-1220 px and the file viewer) and
PR 9 (shared pieces in packages/ui, packages/core, packages/guide-viewer).

PR 8, Inbox only:
- Rows 45, 46: a file pane under 780 px folds the comments panel into the
  header's Comments button and opens it over the file (decision 2); the
  viewer's Global comment no longer floats over the toolstrip there. 1280
  and 1440 keep the docked panel; the phone keeps its own sheet.
- Rows 47, 61: a PDF or other download has no panel and no Comments button
  unless other files have comments; its card wraps at any width.
- Row 48: the guided review folds its panel the same way below 1,200 px (it
  was hidden at 900 px and below with no way to it).
- Row 50: the full-screen foot wraps at every width.
- Rows 51, 52: panoramas crop to 4:1 in the gallery and scroll sideways in
  the viewer; images smaller than their box draw at their own size.
- Row 44: logs, YAML, CSV, JSON and other data files draw in the code view
  (decision 3); .txt keeps the text view.
- Row 60: a comment on a very long line stores a 4 KB excerpt, the length
  and a hash; old records still match.

PR 9, shared:
- Rows 36-38 (QuestionBlock): an optional statusLabel seam (the Inbox says
  "Not sent" for an unsent pick); the Suggested line on choice questions;
  no bare Other row on a read-only card (decision 11: plan review and
  annotate get the two fixes too).
- Row 59: CodeFileView gains optional overflow; the Inbox wraps lines over
  1,000 characters.
- Rows 56, 57 (guide-viewer): "Everything else" is not numbered, so the
  cards count what the header counts; # to ###### read as headings. The
  guides.show manifest is regenerated (399.7 of 400 KB gz).
- Row 27: capQuestionPrompt cuts prompts whole, shared by question-block
  and inbox-questions; the Inbox also accepts an older client's cut.

The worst-case seed gains the files, guide and cards these need; the row 45
test.fixme is a real test at 920, 1024, 1180 and 1280. HANDOFF.md notes
each shared change for the next ui/core publish.
…and says Comments

Review round for #1906:
- Closing the folded comments sheet (file pane and guided review, the phone's
  sheet too) puts focus back on its Comments button; Escape inside the sheet
  or on the button closes it, before the guide's own Escape.
- The button names the sheet with aria-controls.
- The file pane's button reads "Comments, N" like the sheet and the guide's.
- Merged main.
@backnotprop
backnotprop merged commit 33bd3a2 into main Oct 14, 2026
32 checks passed
@backnotprop
backnotprop deleted the inbox-stress-fixes-batch2 branch October 14, 2026 02:01
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