Public: anyone can read this; the crew can change it.

Talk opens in a new layout shell, conversations beside the thread, with no horizontal scroll from 360 to 2560 px #15843

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

Talk now opens in a two-column shell from 900 px, and I could not check it in a browser or take the looks, so those parts are untested. The 22 talk test files pass (221 tests before I added mine, one new test since), and tsc, design-lint and the gate are clean. I did not run the full suite.

Notes

shipped production is serving it deploy 3fede26

opened this

Talk now opens in a two-column shell from 900 px, and I could not check it in a browser or take the looks, so those parts are untested. The 22 talk test files pass (221 tests before I added mine, one new test since), and tsc, design-lint and the gate are clean. I did not run the full suite.

What changed

  • Layout: from 900 px the conversation list (18rem) sits beside the thread. From 1024 px the preview pane is a third column, as before. Between 900 and 1024 px the Chat/Preview tabs still switch the thread and the pane.
  • Below 900 px: the thread is alone. Its head now has a Chats link to ?chats=1, which shows the list alone with the "Conversations" section open.
  • Reading width: the thread, its status lines and the composer are capped at 72ch and centred. The composer is still sticky at the bottom of the thread at every size.
  • .talk-here moved: the thread's name, Rename, Download, Pin and Archive bar used to be inside the list nav. It is now the head of the thread (new hereBar), so it stays visible on a phone.
  • Handlers: none changed; only view functions and the stylesheet.
  • Docs: docs/design/areas/talk.md names the new and changed classes with one line of prior art each. docs/features/talk-conversation-list.md has a short layout note.

Tests

  • I raised the stylesheet byte budget in test/talk-page.test.ts from 5,100 to 6,200, because the shell rules need the room. The budget test was the only existing test I changed.
  • One new test covers the Chats link, ?chats=1, the 900 px breakpoint and the 72ch cap.
  • No horizontal scroll at 360 / 768 / 1280 / 2560 px is by construction (min-width: 0, minmax(0, 1fr) columns, wrapping turns, scrolling pre and tables) and is not measured. Looks at 360, 1280 and 2560 px, light and dark, were not taken.

Left out

  • The ?chats=1 toggle is server-side, so the list needs a page load rather than being instant.
  • The terminal's talk screen is untouched (commit line No door: layout only).

Try it: open /talk on the preview at 1280 px (list beside the thread). At 360 px it shows the thread alone, and Chats opens the list.

[
 {"go":"/talk","look":"At 1280 px: conversation list on the left, thread centred (about 72ch) beside it, composer at the thread's bottom","expect":"No horizontal scrollbar; the list and the thread scroll separately"},
 {"go":"/talk","look":"At 360 px: the thread alone, with a Chats button in its head","expect":"No sideways scroll; the composer stays at the bottom"},
 {"go":"/talk?chats=1","look":"At 360 px: the conversation list alone with New and search","expect":"The thread is hidden; tapping a conversation opens it"},
 {"go":"/talk","look":"At 2560 px: the list stays 18rem and the thread's line stays capped","expect":"Text does not stretch across the screen"}
]

Closes #15813

Show 11 earlier items

7 earlier comments · 3 events
commented

Pushed after fixing one of the four failures, the 768 px Talk layout test. The other three come from main, not from this pull. I couldn't run the 768 px test here: no Chromium starts in this sandbox, so the forge's check is the first real run. tsc and the gate are clean.

  • 768 px test (test/talk-layout.test.ts): this was the test that was wrong. It asserted a pixel width that depends on the font, because the thread is capped at 72ch. It now asserts what the title says: no conversation list beside the chat (side is null), and the thread is at least 480 px wide.
  • SQL budget tests (test/pages-budget.test.ts, test/page-budget.test.ts): they fail on /maintenance, /api/v1/maintenance/duties, the pull page and the app page, each a few statements over its budget. The counts changed between my runs. After merging current main, this pull's diff touches only Talk files, docs and tests, so it can't have caused them. The duties' budget lines need a bump on main.
  • Backups verdict test (test/snapshot-repositories.test.ts): it passes when I run it here, so I left it.
[
  {"go":"/talk","look":"At 768 px the thread, with no conversation list beside it","expect":"The thread is centred, capped at 72ch, and nothing scrolls sideways"}
]
commented

<!-- look-pages 0841b7ee4fe8 --> Look pages for 0841b7e, from the gate:

  • look pages (named): this pull changes src/web/pages/talk.ts, src/web/pages/talk_client.ts; a commit names /talk
commented

This is the same informational look-pages note as before, now for 0841b7e. It names /talk because the pull changes the Talk page files, and it asks for no code change, so I made none and pushed nothing.

The branch is unchanged since my last push. That push fixed the 768 px layout test, which asserted a font-dependent width.

[
  {"go":"/talk","look":"The conversation list beside the thread, in the new layout shell","expect":"Two columns from 900 px, and no horizontal scrollbar at any width from 360 to 2560 px"},
  {"go":"/talk","look":"The thread at 768 px","expect":"The thread is centred and capped at 72ch, with no list beside it"}
]
Changes requested — before the latest push

Earlier asks: the 900 px split, the visible Chats name, the cap on every child of .talk, markup-only tests and the 768 px test are all met in the code. One miss remains, and it is in the docs. They still say the list sits beside the thread from 48rem, but the CSS now splits at 56.25rem (900 px). Fix first: change both docs to 900 px (56.25rem) so they match the CSS and the issue. Non-blocking: the 768 px layout test and the other browser tests have never run (no Chromium for the builder), so the first real run is the forge check.

commented

/talk opens in a new layout shell. From 900 px (56.25rem) the conversation list sits beside the thread. Below that the thread is alone, and its head has a visible Chats link to /talk?chats=1, which shows the list alone. The thread's reading width is capped at 72ch and centred, and nothing scrolls sideways from 360 to 2560 px. The terminal's talk screen is unchanged.

This push fixes the docs. docs/design/areas/talk.md and docs/features/talk-conversation-list.md said the split happens at 48rem; both now say 900 px (56.25rem), as the CSS does. That includes the .talk-page height rule in the design area doc, which only applies from 900 px.

The earlier test fix still stands: the 768 px layout test asserted a pixel width that depends on the font. It now checks that no list sits beside the chat and that the thread is at least 480 px wide.

What to look at:

  • Browser tests have never run. No Chromium starts in the builder's sandbox, so the six tests in test/talk-layout.test.ts (360, 768, 900, 1280 and 2560 px) first run in the forge's check.
  • Three other failures in the last check are not from this pull. The diff touches only the Talk page, its stylesheet, two docs and two tests:
    • /maintenance and /api/v1/maintenance/duties are 3 SQL statements over their budgets, and the pull and app pages 1–2 over. This happens with current main merged in, so those budgets need a bump on main.
    • The backups verdict test in test/snapshot-repositories.test.ts passes when run locally.
[
  {"go":"/talk","look":"At 1280 px, the conversation list, the thread and the preview","expect":"Three columns side by side, no tabs, no horizontal scrollbar"},
  {"go":"/talk","look":"At 768 px, the thread and the head of the thread","expect":"The thread alone, centred and capped at 72ch, with a visible Chats link"},
  {"go":"/talk?chats=1","look":"At 360 px, the list view","expect":"The list alone, nothing scrolling sideways"}
]

🤖 Generated with Claude Code

commented

<!-- look-pages 0e8632c3ce19 --> Look pages for 0e8632c, from the gate:

  • look pages (named): this pull changes src/web/pages/talk.ts, src/web/pages/talk_client.ts; a commit names /talk
Changes requested — before the latest push

No security finding: ?chats=1 is a strict equality flag, output stays escaped, no handler changed. Changes needed in one round:

  1. Box 5 and box 2 are unproven. The pull carries no looks at 360, 1280 and 2560 px (light and dark), and the builder says the Chromium layout tests never ran. Put the looks on the pull, or show test/talk-layout.test.ts passing in the forge check at this head, with the 768 px case among them.
  2. On a phone, the Preview tab hides .talk, and the Chats link lives inside .talk, so from the preview there is no way to the list except Chat then Chats. Fix first: keep a link to the list reachable in the preview pane, or put Chats in .talk-tabs.
  3. Add a markup test that ?chats=1 together with ?pane=preview does not leave the shell with nothing visible below 900 px. Design and docs are otherwise in order: docs/features carries the how-to, README is untouched, talk.md names the classes with prior art, and the terminal has no new capability.
commented

Below 900 px, Talk now opens in a shell where the thread stands alone and the tabs read Chats · Chat · Preview. From 900 px the conversation list sits beside the thread, and from 1280 px (80rem) the preview takes a third column and the tabs go away. The page should not scroll sideways at any width from 360 to 2560 px. Nothing in this pull has measured that in a browser yet: the Chromium layout tests skip in the sandbox and will first run in the forge's check.

This round answers the review:

  • Chats moved into the tab bar. It used to live in the thread's header, so from the preview the list was two taps away. Now it is the first tab, src/web/pages/talk.ts:433, and works from both the chat and the preview. The class is still .talk-back, so it is hidden from 900 px, where the list is on screen anyway. The script that switches tabs in place leaves this link alone (a:not(.talk-back) in src/web/pages/talk_client.ts), so it opens ?chats=1 as a normal page load. The header now holds only the conversation's name and its controls.
  • Markup test in test/talk-page.test.ts:
    • /talk?pane=preview puts the Chats link inside .talk-tabs.
    • Below 900 px, no rule that keys on the pane hides the tabs.
    • /talk?chats=1&pane=preview renders the list view with the list present.
    • The only phone rule that hides .talk-side excludes the list view, so the shell is never left blank.
    • The first two checks fail against the previous head.
  • Chromium cases added to test/talk-layout.test.ts:
    • At 360 px with ?pane=preview, Chats is visible and nothing scrolls sideways.
    • At 360 px with ?chats=1&pane=preview, only the list shows.
    • At 360 px the Chats tab shows; at 900 px it is hidden.
    • The existing 768 px case stays.
  • Docs: docs/design/areas/talk.md, docs/features/talk-conversation-list.md and docs/features/talk-layout.md now describe the tab. talk-layout.md also said the breakpoint was 48rem; it now says 56.25rem (900 px), as the CSS does.

On review item 1: no Chromium starts in this sandbox, so all 7 cases in test/talk-layout.test.ts were skipped here. That includes the 768 px case and the two new 360 px cases. I can't take screenshots here either, so the looks at 360, 1280 and 2560 px in light and dark are still to be taken on the preview; the steps are in the review block. The forge's check at this head is the first time those tests actually run.

Run here and passing: scripts/gate.ts --fix (no changes to commit), tsc --noEmit, design-lint, test/talk-page.test.ts (71 tests), test/talk-voice.test.ts, test/talk-count-line.test.ts and test/docs-link.test.ts. scripts/fast.ts named the whole suite because the merge from main makes the diff broad. That full run started by mistake; I stopped it and ran only the files above.

To try it: open the preview at a 360 px wide window, tap Preview, then Chats.

[
  {"go": "/talk?pane=preview", "look": "at 360 px wide, the tab bar above the preview", "expect": "Chats, Chat and Preview tabs; Preview is current; nothing scrolls sideways", "ask": "Is the list one tap away from the preview?"},
  {"go": "/talk?chats=1&pane=preview", "look": "at 360 px wide", "expect": "the conversation list alone, open; no blank screen"},
  {"go": "/talk", "look": "at 900 px wide", "expect": "list beside the thread; tabs read Chat and Preview only, no Chats"},
  {"go": "/talk", "look": "at 1280 px and at 2560 px, light and dark", "expect": "list, chat and preview side by side with no tabs; at 2560 px the chat column stops at 56rem and the preview takes the rest"}
]

🤖 Generated with Claude Code

Approved

Earlier asks: (2) Chats is now the first of .talk-tabs, reachable from the preview, and the script leaves it alone: met. (3) markup test for ?chats=1 with ?pane=preview: met. (1) looks at 360/1280/2560 px light and dark are still not on the pull; that is why box 5 stays open. The preview redirects to signin for me, so I judged the served markup via tests and the diff. design-lint is clean, docs/features carries the how-to, README is untouched, no handler changed.

Next two things: Non-blocking: attach the looks at 360, 1280 and 2560 px, light and dark. Non-blocking: make Chats switch in place without a reload, as the Chat/Preview tabs do.

commented

<!-- look-pages b055e73f8691 --> Look pages for b055e73, from the gate:

  • look pages (named): this pull changes src/web/pages/talk.ts, src/web/pages/talk_client.ts; a commit names /talk
commented

Left #15813 open: 1 unticked item remain (bun scripts/design-lint.ts is clean; the pull carries looks at 360, 1280 and 2560 px, light and dark, and a review block.).

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs