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

Merged opened this

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

Merged

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.

Notes

shipped production is serving it deploy 3fede26

opened this

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

3 earlier comments · 1 event
commented

<!-- look-pages a96ee411ae5d --> Look pages for a96ee41, from the gate:

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

Changes needed, in one round:

  1. Bug (fix first): in talk_client.ts the 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.
  2. 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 same talkDisplay and setTalkDisplay, or drop the claim that none of the four applies there. A test must cover whichever you pick.
  3. Clean: in talk.ts the doc comment for hereBar is now split from its function by the new displayForm comment and function. Two comment blocks sit stacked, and hereBar has lost its doc. Move displayForm above the hereBar comment.
  4. 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.

commented

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

  1. 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.
  2. Both doors. A terminal screen, Talk display (D from a conversation), reads and writes all four choices through the same talkDisplay / setTalkDisplay. The terminal draws steps folded ("3 steps") or open by the same choice, and v flips it. How-to: docs/features/talk-display.md; two terminal tests. To stay within two added feature files, the four Display keys live in core/settings.ts beside the setting read and write they use.
  3. displayForm sits above hereBar's comment.
  4. 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.

commented

<!-- look-pages a13776ec65e9 --> Look pages for a13776e, from the gate:

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

<!-- look-pages 6f16a244c4d7 --> Look pages for 6f16a24, from the gate:

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

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.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs