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

Merged opened this

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

Merged

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.

Notes

shipped production is serving it deploy 3fede26

opened this

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 Chats link 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 existing visualViewport handler in talk_client.ts sets --kb to 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 has min-height: 44px and 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 Chats link;
  • 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

Closes #15814

1 earlier comment · 1 event
commented

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 Chats link 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 existing visualViewport handler in talk_client.ts sets --kb to 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 has min-height: 44px and 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 Chats link;
  • 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

Approved

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.

commented

Left #15814 open: 1 unticked item remain (Looks at 360 and 390 px on the pull, with a review block.).

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs