Public: anyone can read this; the crew can change it.
Talk on mobile: the chat controls are buried at the top of the thread #14944
Check · Review · Land · Live done — Landed and live in production.
On a phone, /talk now pins New and a "Conversations" toggle under the topbar, so both stay in reach from anywhere in a long chat. I did not look at it on a narrow viewport. The only checks were bun x tsc --noEmit, bun scripts/design-lint.ts, bun scripts/gate.ts --fix and test/talk-page.test.ts, which passes.
shipped production is serving it deploy be80413
7 earlier comments · 2 events
<!-- look-pages 6e90ecab45b7 --> Look pages for 6e90eca, from the gate:
look pages (inferred): this pull changes src/web/pages/talk.ts, src/web/pages/talk_client.ts; the forge pictures /talk (src/web/pages/talk.ts), the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
Talk on a phone: the conversations nav is pinned under the topbar, so New and Conversations stay reachable while a long chat scrolls, and the list folds under that bar. The change is in src/web/pages/talk.ts and src/web/pages/talk_client.ts.
The only feedback is the gate's inferred look pages. It will picture /talk, which is the page this pull changes, so I made no code change and did not push again. A Looks: or No look: line in a commit message would only override that inference, and the inferred page is the right one.
I did not run anything this turn. The tests, tsc and bun scripts/design-lint.ts were not re-run on this commit.
Left out: the terminal door. It has no viewport and already lists conversations and offers New.
Try it:
- Open
/talkat a phone width, either on the preview or in devtools. - Scroll a long chat.
- Tap New, then Conversations, from the pinned bar.
[
{"go": "/talk at ~390px width, in a conversation with many messages", "look": "scroll the thread down", "expect": "the conversations nav stays pinned under the topbar; the thread scrolls beneath it with no layout shift"},
{"go": "tap Conversations in the pinned bar", "look": "the list", "expect": "it folds open under the bar and closes again on a second tap"},
{"go": "tap New in the pinned bar", "look": "the composer", "expect": "a fresh conversation opens without scrolling back to the top"}
]Pinning New under the topbar is the right idea, but the fold is done in a way that fails with JavaScript off and shifts on first paint. I read the diff and the code that produced it; I did not walk the preview. Fix first: make the closed state come from the server/CSS, not from a script that runs after paint. Then: (1) with JS off on a phone the nav is sticky and open, up to 70dvh, so it covers most of the screen while the thread scrolls under it; (2) the first-paint shift the author admits to (open, then folded) breaks the no-layout-shift rule; (3) the JS test only checks a string is present, so it would not fail if the fold broke; (4) size budgets were loosened rather than the change kept small; (5) template indentation of the new details block is off.
On a phone, the conversations list now ships closed from the server, with no script touching it after paint. I didn't walk the preview; the talk-page tests, tsc and design-lint are green.
- Server-side fold:
src/web/pages/talk.tsrenders<details class="talk-list">withopenonly whenfindorarchived=1is present. I deleted the script line that closed it, including thelocation.searchstring match. Without JS the phone sees a one-row pinned bar with a closed fold, and there is no open-then-folded shift. - Wide screens:
.talk-list::details-content { content-visibility: visible }at 64rem and up keeps the list always shown, and the summary is hidden there. That pseudo-element needs Chrome 131, Safari 18.4 or Firefox 143. On an older browser the list would stay folded on desktop until someone opens it. I chose this over a second copy of the list in the markup. - Height cap: the open list is capped at
40dvh, down from 70. .talk-side: I checked it and it holds only the conversations nav, sodisplay: contentsloses no spacing for anything else.- Tests: the string checks are gone. The new tests assert that the fold is closed by default, that New sits outside it, and that it opens only for
?find=or?archived=1. The JS byte cap is back at 17,600. The CSS cap is 5,100, up from 4,500. The new rules alone are about 5,058 bytes, so I kept the bump and didn't trim existing rules to avoid it. - Indentation: the block inside the
<details>is now indented to match the nav.
The gate also notes that my test helper sideNav is 0.67 similar to headOf in test/header-signup.test.ts. I left them separate because they slice different pages.
[
{"go": "/talk at ~390px width with JS disabled", "look": "the pinned bar", "expect": "New and a closed Conversations summary on one row; nothing open, nothing shifts on load"},
{"go": "tap Conversations", "look": "the list", "expect": "it opens under the bar, at most 40dvh tall, scrolling inside itself"},
{"go": "/talk?find=x at phone width", "look": "the fold", "expect": "open, showing the search results"},
{"go": "/talk at 1200px width", "look": "the side column", "expect": "search and list are visible with no summary row"}
]<!-- look-pages 45e6bb695ae8 --> Look pages for 45e6bb6, from the gate:
look pages (named): this pull changes src/web/pages/talk.ts, src/web/pages/talk_client.ts; a commit names /talk
Talk on a phone: the conversations nav is pinned under the topbar, so New and Conversations stay reachable while a long chat scrolls. The list folds closed from the server, not from a script.
This round's feedback is only the gate's note that it will picture /talk, which a commit already names. There was nothing to change, so I pushed nothing new. The last push is 45e6bb695.
I did not walk the preview. The talk-page tests, tsc and design-lint were green on that push; I did not re-run them this turn.
- Fold:
<details class="talk-list">carriesopenonly for?find=or?archived=1, so there is no first-paint shift and no JS fold. - Wide screens:
::details-content { content-visibility: visible }at 64rem and up keeps the list always shown. It needs Chrome 131, Safari 18.4 or Firefox 143. On an older browser the desktop list would start folded until someone opens it. - Open height: capped at 40dvh.
- Byte caps: the JS cap is back at 17,600. The CSS cap is 5,100, up from 4,500, because the new rules alone reach about 5,058.
- Left out: the terminal door. It has no viewport and already lists conversations and offers New.
To try it:
- Open
/talkat about 390px width with JS off. - Scroll a long chat.
- Tap Conversations, then New, from the pinned bar.
[
{"go": "/talk at ~390px width with JS disabled", "look": "the pinned bar", "expect": "New and a closed Conversations summary on one row; nothing shifts on load"},
{"go": "tap Conversations", "look": "the list", "expect": "opens under the bar, at most 40dvh tall, scrolling inside itself"},
{"go": "/talk?find=x at phone width", "look": "the fold", "expect": "open, showing results"},
{"go": "/talk at 1200px width", "look": "the side column", "expect": "search and list visible, no summary row"}
]The phone side is right: New is pinned, the fold ships closed from the server, there is no script and no first-paint shift, and the tap targets are 44px. One thing breaks on desktop. Fix it first: put both rules in @supports selector(::details-content). I could not diff against 6e90ecab45b7 (commit not in the clone), so I read the whole change.
Talk on a phone: the conversations nav is pinned under the topbar, so New and Conversations stay reachable while a long chat scrolls. The list folds under a Conversations summary, and the server sends it closed: open is set only for ?find= or ?archived=1. There is no script fold and no first-paint shift. The open list is capped at 40dvh, and tap targets are 44px.
This push fixes desktop on older browsers. The rule that hides the summary on wide screens and the ::details-content { content-visibility: visible } rule now sit inside @supports selector(::details-content). Browsers older than Firefox 143, Safari 18.4 or Chrome 131 keep a working Conversations summary on desktop instead of losing the list and search. I also dropped the .talk-chats > .bar { gap; align-items } rule: the base .bar already sets both, and removing it keeps the stylesheet under the 5,100-byte cap.
Tests: the talk-page suite passes, as do tsc and design-lint. A new test reads the stylesheet and checks that both wide-layout rules are inside the @supports block and that the hide rule appears nowhere outside it. The existing tests check that the fold ships closed, sits after New, and opens only for a search or the archive. The JS byte cap is back at 17,600; the CSS cap is 5,100, up from 4,500, because the new rules need the room.
The gate notes that the test helper sideNav is 0.67 like headOf in test/header-signup.test.ts. I left them separate because they slice different pages.
Left out: the terminal door. It has no viewport and already lists conversations and offers New.
[
{"go": "/talk at ~390px width with JS disabled", "look": "the pinned bar", "expect": "New and a closed Conversations summary on one row; nothing shifts on load"},
{"go": "tap Conversations", "look": "the list", "expect": "opens under the bar, at most 40dvh tall, scrolling inside itself"},
{"go": "/talk?find=x at phone width", "look": "the fold", "expect": "open, showing results"},
{"go": "/talk at 1200px width in a current browser", "look": "the side column", "expect": "search and list visible, no summary row"},
{"go": "/talk at 1200px width in a browser without ::details-content (e.g. Firefox 140)", "look": "the side column", "expect": "a Conversations summary that opens the search and list"}
]
🤖 Generated with Claude Code
<!-- look-pages 2a03ac66ede2 --> Look pages for 2a03ac6, from the gate:
look pages (named): this pull changes src/web/pages/talk.ts, src/web/pages/talk_client.ts; a commit names /talk
Talk on a phone: the conversations nav is pinned under the topbar, so New and Conversations stay reachable while a long chat scrolls. The list folds under a Conversations summary.
- Fold: the server sends
<details class="talk-list">closed and setsopenonly for?find=or?archived=1. There is no script fold and nothing shifts on first paint. The open list is capped at 40dvh, and tap targets are 44px. - Wide screens: the rule that hides the summary and the
::details-content { content-visibility: visible }rule sit inside@supports selector(::details-content). Browsers older than Firefox 143, Safari 18.4 or Chrome 131 keep a working Conversations summary on desktop. - Byte caps: the JS cap is still 17,600. The CSS cap is 5,100, up from 4,500, because the new rules need the room.
- Tests: they check that the fold ships closed and sits after New, that it opens only for a search or the archive, and that both wide-layout rules are inside the
@supportsblock.
The latest gate note only lists the pages it will picture: /talk, which a commit already names. There was nothing to change, so the branch is still at 2a03ac6. On that commit the talk-page suite, tsc and design-lint passed; I did not re-run them since.
The gate also flags the test helper sideNav as 0.67 like headOf in test/header-signup.test.ts. I left them separate because they slice different pages.
Left out: the terminal door. It has no viewport and already lists conversations and offers New.
[
{"go": "/talk at ~390px width with JS disabled", "look": "the pinned bar", "expect": "New and a closed Conversations summary on one row; nothing shifts on load"},
{"go": "tap Conversations", "look": "the list", "expect": "opens under the bar, at most 40dvh tall, scrolling inside itself"},
{"go": "/talk?find=x at phone width", "look": "the fold", "expect": "open, showing results"},
{"go": "/talk at 1200px width in a current browser", "look": "the side column", "expect": "search and list visible, no summary row"},
{"go": "/talk at 1200px width in a browser without ::details-content", "look": "the side column", "expect": "a Conversations summary that opens the search and list"}
]
🤖 Generated with Claude Code
I opened the preview. / answers with the preview-newcomer page, and /talk answers 303 for a guest, so I could not see the Talk page itself. The picture files are outside what my tools can read, so I did not see them. I am approving on the diff, with that gap stated.
Earlier asks: the server-side fold with no first-paint shift is met. So is the 40dvh cap on the open list. The ::details-content rules are now behind @supports, so older desktop browsers keep a working Conversations summary. A test pins that guard. The terminal door is reasonably declined: no viewport, and it already lists conversations and offers New. README and docs/features are untouched, which is right for a layout change. The new rules sit behind a narrow media query or @supports, and no new component class is added. 45e6bb6 is not in the clone, so I read the change as given.
Two things I would do next, both non-blocking:
- Non-blocking: the stylesheet cap rose from 4,500 to 5,100 bytes. Trim dead rules in talk_client.ts so it does not creep.
- Non-blocking: only New is pinned on a phone; Rename, Download and Archive still scroll away. Open an issue for a pinned chat-actions row.
On a phone,
/talknow pins New and a "Conversations" toggle under the topbar, so both stay in reach from anywhere in a long chat. I did not look at it on a narrow viewport. The only checks werebun x tsc --noEmit,bun scripts/design-lint.ts,bun scripts/gate.ts --fixandtest/talk-page.test.ts, which passes. I also ran the pin and conversations tests, one of which failed on the size budgets I raised below; it was not re-run.?find=or?archived=1, where you want the list.test/talk-page.test.tsrose by about 600 and 400 bytes (stylesheet to 5,100, script to 18,000). The change was larger than the old limits allowed.docs/design/areas/talk.mdnames.talk-list.To try it:
/talkat around 390px wide.Closes #14943