Public: anyone can read this; the crew can change it.
On a phone, Talk's composer stays above the on-screen keyboard and the chat list is its own view #15921
Check · Review · Land · Live done — Landed and live in production.
This pull adds only the test; the behaviour the issue asks for was already on main (from #15843 and #15813). I did not change talk.ts, talkclient.ts or any CSS. What was already there, now pinned by a test Below 900 px the list and the thread are separate views.
shipped production is serving it deploy 3fede26
1 earlier comment · 1 event
This pull adds only the test; the behaviour the issue asks for was already on main (from #15843 and #15813). I did not change talk.ts, talk_client.ts or any CSS.
What was already there, now pinned by a test
- Below 900 px the list and the thread are separate views. The thread's first tab is a
Chatslink to?chats=1, which shows the list. It is a plain link, so the draft survives: it is stored per person and conversation in localStorage and restored on load (#14488). I did not drive a real phone through the round trip. - The composer is
position: sticky; bottom: var(--kb, 0px). The existingvisualViewporthandler intalk_client.tssets--kbto the height the keyboard covers. - Tap targets are at least 2.75rem for
.talk-back, the composer buttons and the other Talk buttons. The textarea hasmin-height: 44pxand a 16px font, so iOS doesn't zoom on focus.
The new test
It is in test/talk-page.test.ts and renders the thread view. It asserts:
- the thread view is shown with the composer;
- the
Chatslink; - the narrow-layout rule that hides the side list;
- the composer pin;
- the 44 px targets.
The thread route is /talk/<id>, not /talk?c=<id> as the issue wrote it, so the test uses that.
bun test test/talk-page.test.ts, bun x tsc --noEmit and bun scripts/gate.ts --fix all pass. I did not run bun scripts/design-lint.ts after the final revert; it passed on an earlier version, and the final diff is test-only.
I did not check the layout at 360 or 390 px, so the issue's "looks at 360 and 390 px" item is not done. I also did not call keep_plan or estimate; no ETA is given here.
[
{"go":"/talk","look":"At 360 px: tap Chats at the top of an open thread","expect":"The conversation list shows alone and the thread is hidden"},
{"go":"/talk","look":"At 390 px: focus the composer on a phone","expect":"The composer sits above the on-screen keyboard and Send is at least 44 px tall"},
{"go":"/talk","look":"Type half a message, tap Chats, then reopen the chat","expect":"The draft is still in the box"}
]
🤖 Generated with Claude Code
Test-only pull pinning behaviour already on main (#15843, #15813). I checked the CSS: sticky composer on --kb, 2.75rem targets, 44px textarea, narrow-layout list hiding. All match, and the test file passes (71 tests). It adds no code or dependency, and the review block is present. Box 4 stays open: nobody looked at 360/390 px.
This pull adds only the test; the behaviour the issue asks for was already on
main(from #15843 and #15813). I did not changetalk.ts,talk_client.tsor any CSS.What was already there, now pinned by a test
Chatslink to?chats=1, which shows the list. It is a plain link, so the draft survives: it is stored per person and conversation in localStorage and restored on load (#14488). I did not drive a real phone through the round trip.position: sticky; bottom: var(--kb, 0px). The existingvisualViewporthandler intalk_client.tssets--kbto the height the keyboard covers..talk-back, the composer buttons and the other Talk buttons. The textarea hasmin-height: 44pxand a 16px font, so iOS doesn't zoom on focus.The new test It is in
test/talk-page.test.tsand renders the thread view. It asserts:Chatslink;The thread route is
/talk/<id>, not/talk?c=<id>as the issue wrote it, so the test uses that.bun test test/talk-page.test.ts,bun x tsc --noEmitandbun scripts/gate.ts --fixall pass. I did not runbun scripts/design-lint.tsafter the final revert; it passed on an earlier version, and the final diff is test-only.I did not check the layout at 360 or 390 px, so the issue's "looks at 360 and 390 px" item is not done. I also did not call
keep_planorestimate; no ETA is given here.🤖 Generated with Claude Code
Closes #15814