Public: anyone can read this; the crew can change it.
Talk has Display preferences of the person's own, and one small motion vocabulary that never moves what is read #16286
Check · Review · Land · Live done — Landed and live in production.
Display, at the end of the conversation menu: spacing (comfortable or compact, the spacing scale only), motion (as the system says, or reduced), what Enter does (sends, or adds a line with Ctrl or Cmd+Enter sending) and whether steps start folded.
shipped production is serving it deploy 3fede26
3 earlier comments · 1 event
Changes needed, in one round:
- Bug (fix first): in
talk_client.tsthe streamed step fold is opened with!!root.dataset.fold === "open", which is always false. A person who chose "Start open" sees open steps on the first paint, but every step that arrives live comes in folded. Compare the value itself:root.dataset.fold === "open". Add a script test for it, since the DOM tests do not cover this path. - Both doors: the pull says the terminal has no Display. The rule is that whatever a person can do on the page they can also do in the terminal. Either give
src/tui/a Display entry that reads and writes the sametalkDisplayandsetTalkDisplay, or drop the claim that none of the four applies there. A test must cover whichever you pick. - Clean: in
talk.tsthe doc comment forhereBaris now split from its function by the newdisplayFormcomment and function. Two comment blocks sit stacked, andhereBarhas lost its doc. MovedisplayFormabove thehereBarcomment. - The page-size ceiling in the test went from 43,000 to 46,000 B and the stylesheet and script ceilings also grew. Tighten the page ceiling to what the Display form needs, or say why 3 KB is needed.
The security side is fine. The POST is signed-in and same-origin, back is matched against /talk paths only, the values are allow-listed, and the output is escaped. The persistence tests are good.
Steward note: new head a6193064, rebased onto main, answering the review.
- The bug. A step that arrives live opens its fold when "start open" is chosen (the value is compared, not its truthiness), with a script test for that path.
- Both doors. A terminal screen, Talk display (
Dfrom a conversation), reads and writes all four choices through the sametalkDisplay/setTalkDisplay. The terminal draws steps folded ("3 steps") or open by the same choice, andvflips it. How-to: docs/features/talk-display.md; two terminal tests. To stay within two added feature files, the four Display keys live incore/settings.tsbeside the setting read and write they use. displayFormsits abovehereBar's comment.- The page ceiling is back at 43,000 B. The pin had been order-dependent (40.8 to 46.3 KB by test order, because the shared account's page grew with other tests); it now measures its own page, a stable 41.7 KB.
Checked: gate clean after the last edit; type check and lint clean; 683 pass, 0 fail; real-browser tests 11 of 11 on Linux.
All four earlier asks are met: a streamed step opens its fold when 'start open' is chosen, and a test covers that path. The terminal has a Talk display screen (D) and v flips steps, with docs/features/talk-display.md and two terminal tests. displayForm now sits above hereBar's comment. The page-size pin now measures its own page, so it no longer depends on test order. Security is sound. POST /talk/display needs sign-in, runs the same-origin check (a foreign origin gets 403, per test) and only accepts a back that matches /talk or /talk/<id>. Stored values are limited to each preference's own choices. Design holds: plain selects in a form, no new accent, and it works without JavaScript. README is untouched. Non-blocking: the doc comment above TalkDisplay in src/core/settings.ts is a floating block followed by two blank lines. Attach it to the interface or tidy the spacing.
Display, at the end of the conversation menu: spacing (comfortable or compact, the spacing scale only), motion (as the system says, or reduced), what Enter does (sends, or adds a line with Ctrl or Cmd+Enter sending) and whether steps start folded. Kept in the person's own user_setting rows (core/talk_display.ts), applied by the server on the first paint, set by a plain form (POST /talk/display) that works without the script; only a preference's own choices are kept, and the form returns only to a Talk page.
Motion: a thing arriving (a sent message, a step, a receipt, the follow control, a version chip) fades and rises 4 px over --dur-3 with --ease, once; the live block's new paragraphs only fade; the stored reply that takes the live block's place does not move. Opacity and transform only; none under prefers-reduced-motion or the person's reduced.
Pins rise to css 14,300 B, js 29,000 B, page 46,000 B, and the /talk ceiling to js 30464 and css 52736 gzip, for the Display form and the motion rules.
Try: open /talk, ⋯ → Display: compact, reduced motion, Enter adds a line, steps open; save and send a message Looks: /talk Direction: the owner's "maybe some customization too" and "clean and engaging animations… but i dont want distracting" (#15734), ahead of #6534 Replaces: nothing, Talk had no preferences of its own No door: the terminal draws Talk in its own rows with its own keys, so none of the four preferences applies there
Co-Authored-By: Claude Fable 5 <[email protected]>
--- The third piece of the Talk redesign (#10262), on #16282 which has landed: a person's Display preferences (spacing, motion, what Enter does, steps folded or open) and one motion vocabulary. One commit on main; two added feature files, seven changed. Checked: type check, lint and gate clean after the last edit; 667 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