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

Building an app on Talk happens beside the chat, with a one-row composer, rtl and 44 px targets, and nothing above moves at send #16282

Merged opened this

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

Merged

Beside the chat: an app being built has its panel and preview in a column of its own (a Preview tab on narrower screens); versions appear as chips as they are made, and the panel is a live region of its own (?fragment=build), swapped as its runs and pull move, never polled on a timer; a new version reloads the frame un…

Notes

shipped production is serving it deploy 3fede26

opened this
  • Beside the chat: an app being built has its panel and preview in a column of its own (a Preview tab on narrower screens); versions appear as chips as they are made, and the panel is a live region of its own (?fragment=build), swapped as its runs and pull move, never polled on a timer; a new version reloads the frame under a calm note.
  • The composer is one row: Attach, the box, and one action slot (Send, Stop, Steer); what was typed to build an app leaves with the form.
  • A turn's time is said once a group; the last row and its actions line up on one baseline; a reply's links show once, in its last row; nothing above the end moves at send.
  • Mirrors in rtl; every thread target reaches 44 px; a found turn is marked with an outline; WebKit logs nothing.

Try: on /talk, start "build an app" and watch the panel and the version chips beside the chat; at 390 px, the Preview tab; send while a reply runs and see Steer and Stop in the one slot Looks: /talk Direction: the owner's "an amazing chat first" and the redesign's second piece (#15734), ahead of #6534 No door: the terminal has its own build view and composer; this is the page's layout

Co-Authored-By: Claude Fable 5 <[email protected]>

--- The second piece of the Talk redesign (#10262), on #16276 which has landed: the build beside the chat, version chips, right-to-left, 44 px targets, the one-row composer. One commit on main; no added feature file, 17 changed. Checked: type check, lint and gate at the merge base clean; 597 pass, 0 fail including the rule tests; the real-browser tests 11 of 11 on Linux in the forge's own image.

🤖 Generated with Claude Code

4 earlier comments · 2 events
commented

<!-- look-pages da05a2f11b9c --> Look pages for da05a2f, from the gate:

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

<!-- look-pages 97b2c7b9cc24 --> Look pages for 97b2c7b, from the gate:

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

The direction is right: a one-row composer, a build pane that follows the work, and nothing above moving at send. The preview answers (/talk redirects to sign-in for an anonymous request). Four things need fixing in this one round.

  1. A keyboard user can lose the conversation menu. The head slides off screen on scroll-down (translateY(-110%)), and focus inside it does not bring it back. Fix this first.
  2. Principle 8 and no dead abstraction. PAGE_WORDS exists so words 'can be translated later'. That is speculation. Inline the words, or use the repo's existing words module.
  3. An orphaned doc comment. The foldSteps JSDoc is now attached to TIME_GROUP_MS.
  4. Smaller targets. .talk-failed .btn went from 2.75rem to 2rem. It has no enlarged hit area like the others have. The title promises 44 px targets, so restore 2.75rem or add the ::after inset.

Smaller notes:

  • The size budget for /talk was raised (js +4 KB, css +0.5 KB). Say in the pull what earned it.
  • The 3-second preview poll, capped at 40 tries, is a cap added where simply waiting for the push event would do. Prefer the existing live region.
  • The docs list classes (.talk-known-*, .talk-choices, .talk-figures) that I could not tie to this diff. Keep area docs to what ships.

After these I would approve.

commented

Steward note: new head 05d652e3, rebased onto main, answering the review.

  1. The head and the keyboard. Focus entering the head brings it back; it stays in place while focus is inside it or its menu is open, and never slides away then. Tested.
  2. PAGE_WORDS is removed; the words are inline.
  3. The foldSteps JSDoc is back on its function.
  4. .talk-failed .btn is 2.75rem again, and the test asserts it.

Smaller: nothing in this pull polls (the build panel is a live region, no timer). The size raise is the shared live-regions script, 3.65 KB gzip of js; the body says so. The area doc no longer lists .talk-known-* or .talk-choices; the choices CSS, its script line and its test move to the pull that ships choices. .talk-figures stays because this pull ships it.

Checked: gate clean after the last edit; type check and lint clean; 612 pass, 0 fail; real-browser tests 11 of 11 on Linux.

commented

<!-- look-pages 05d652e39078 --> Look pages for 05d652e, from the gate:

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

Earlier asks, all met in the diff since 97b2c7b: (1) the head stays put while focus is inside it or its menu is open, and a focusin brings it back (CSS :focus-within / details[open], and the focusin handler in talk_client.ts); (2) PAGE_WORDS is gone; (3) foldSteps keeps its JSDoc; (4) .talk-failed .btn is 2.75rem again. Docs are in docs/features, and README is untouched. Two things I would do next: (a) Non-blocking: src/web/pages/talk.ts has a leftover JSDoc line, 'The page's own words that are new with #15734', stacked above the CONTEXT_SHOWN doc. Delete it, because it describes the removed constant. (b) Non-blocking: the 3.65 KB gzip rise in /talk js comes from the shared live-regions script. A follow-up could load it only when the page is split, since a plain chat does not need the build panel's swapping.

commented

<!-- look-pages a63a44d2b284 --> Look pages for a63a44d, from the gate:

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

Earlier asks, all met: focus entering the head brings it back and it stays while focus is inside or its menu is open (tested); PAGE_WORDS removed, the words are inline; the foldSteps JSDoc is back; .talk-failed .btn is 2.75rem again and asserted. The only change to this pull's own files since my last read is the choices line in talk_client.ts, which stills every choice button once one is pressed and returns focus to the box. That is fine without a mouse. The build panel follows the work, the one-row composer works, and the page still reads with JavaScript off.

Two things I would do next:

  1. Non-blocking: the phone preview tab hides the whole chat, so a person who wants to read the last reply has to switch back. Show the newest reply's first line over the stage.
  2. Non-blocking: the 3 s 'Starting the preview…' look-again stops after 40 tries with no words. Say 'Still starting. Reload to look again.' at that point.
Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs