Repository navigation
fix(ui-kit): the tall voice field grows to hold its body under enlarged text - #3779
Conversation
…ed text The tall field takes min-height 136px, so 1x text is unchanged. Under doubled text its label wraps instead of ellipsising the meta, live draft words keep two whole lines (2lh) and a message (VoiceText children alone) is never clamped (R1). The field grows upward with the controls pinned (R2). Adds the Voice/Live Tall field · enlarged text stories, with containment, label, whole-line and height checks, and the enlarged cells in the voice visual test. Refs #3773 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Twenty new cells (L1d, L4d, L6, L1o and L1 at 320 and desktop, light and dark), regenerated in the pinned container. No existing baseline changed. Refs #3773 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No uploads on this PR yet This PR changes UI files (
Tips for agentsLabel each shot so reviewers know what they're seeing. Labels apply to every file in a call, so run one uploads put after.png --pr 3779 --meta path=/settings --state after --caption "Saved settings toast"
uploads put chat.png --pr 3779 --app ios --screen "Chat" --state afterNo CLI? With the Uploads MCP, call This comment updates with each upload, so you don't need to post the images yourself. A shot or two in the PR description is still welcome. Check what's attached with Workspace admins can turn this comment off in Settings → GitHub · docs |
…field Brings in #3779 (the tall field grows to hold a message body under enlarged text). No conflicts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…#3773) With #3779 the tall field grows to hold a message body at doubled text, so control audit and notice with review assert scrollHeight <= clientHeight at every scale again. Failing-first: on the pre-#3779 kit the same check failed at 2× (160 > 135). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ned container (#3773) Messages are VoiceText children, never clamped, and the tall field grows to hold them at doubled text. The last container run passed 24/24. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ce field (#3762) (#3764) * CONTRACT: feat(ui-kit): add the backspace semantic icon for Discard draft (#3762) IconName gains `backspace`, drawing lucide's Delete (the backspace-key glyph). The voice stories' Discard draft control uses it in place of circle-minus; its accessible name is unchanged. Additive; no existing key or glyph changes. Icon-map counts move to 93 keys over 91 glyphs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(ui-kit): regenerate Discard-draft voice baselines with the backspace glyph (#3762) Only the held-draft live states (L1d, L1u, L4d; 320 and desktop, both themes) change. Generated in the pinned container. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(ui-kit): redraw #3779's enlarged held-draft baselines with the backspace glyph (#3762) #3779 added enlarged-text captures of L1d and L4d, drawn with the old circle-minus Discard draft. Regenerated in the pinned container; no other baseline changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…the tall voice field (#3735) * CONTRACT: feat(ui-react): draw live conversation in the tall voice field The live overlay's status header and control row become the #3692 kit components, unchanged: the tall VoiceField for S5 and L1-L8, a VoiceNotice for L9, and the composer again for L10. Mute, Interrupt and End are raised VoiceControlButtons; Interrupt is enabled only while a reply plays (L4), and a muted microphone does not silence brain's current sentence (V5). Every state comes from the client's own state. The client now exposes the capture intent it already tracks (`capture`: idle, listening, muted or stopped) and display-only meter readings (`levels()`), documented as an additive package API change. Capture, recovery and permission behaviour are unchanged. The diagnostic status lines, the provider-code details button and the Mute mic, Stop reply and Leave voice buttons are removed. Manual review, Recover reply audio, notices, the coverage notice, the refusal line and the background-task list stay as they were, pending design (Refs #3699). Refs #3699 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * CONTRACT: chore(api-report): record the conversation client's capture and levels Refs #3699 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * CONTRACT: feat(ui-react): place the live overlay's functions in the tall field (#3699) Applies the signed-off design: nothing stacks above the field. - The body shows one message, by priority draft, refusal, reply audio off, client notice. A held draft reads "Draft · not sent yet"; a line about the draft itself (unclear audio, a bounded or trimmed review) takes its words' place. - Send now and Discard draft join the controls row. R1: Interrupt leaves the row while a draft is held, except in L4, which carries five. - Recover reply audio stays in the row while reply audio is off, even under a draft. Readiness reads "mic off" with its own body line. - L6's body is the tap-only refusal line. L9's microphone copy ends "then Start again". - R2: incomplete startup-context coverage is an inline chat notice at the start of the live section, from a new timeline entry; background tasks leave the field for the chat. The wire.md 264px transcript line holds: both 320px layout tests pass unchanged. wire.md now names the field's refusal line instead of the 40px strip line. Capture, recovery and permission behaviour are unchanged; the client's notice strings become named constants. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * CONTRACT: feat(ui-sdk,ui-server,ui-react): name the live startup context's message count (#3699) Maintainer ruling on #3699: historyCoverage gains an optional, additive includedMessages, the number of prior chat and spoken messages the startup context actually carried (completed results and gap markers excluded; 0 when no history block was sent). boundHistory computes it from what it serialized, and liveContext reports it for both engines. The inline coverage notice now reads "Started with the last {n} messages · Details" (pluralised), keeping the coverage-state wording only for an older host without the count. The count is host-only display data: the provider-facing startup text is unchanged and never carries it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(ui-react): regenerate the live field's app baselines in the pinned container (#3699) The interruption, review-permission, notice-body and output-muted-draft baselines show the tall field with nothing above it; notice-review is retired with the stacked notice. The ticking connected clock is masked so a baseline cannot depend on elapsed seconds. At doubled text the kit's fixed 136px field cannot hold a body; the audit asserts every control stays reachable there instead (kit follow-up filed). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(ui-react): draw the live field's messages as VoiceText children (#3699, #3773) Draft words stay `text`, which the kit clamps to two whole lines; the refusal, reply-audio-off, readiness and client notice lines are messages, which the kit never clamps once #3779 lands. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(ui-react): restore strict 2× containment in the live field audit (#3773) With #3779 the tall field grows to hold a message body at doubled text, so control audit and notice with review assert scrollHeight <= clientHeight at every scale again. Failing-first: on the pre-#3779 kit the same check failed at 2× (160 > 135). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(ui-react): regenerate live field baselines over #3779 in the pinned container (#3773) Messages are VoiceText children, never clamped, and the tall field grows to hold them at doubled text. The last container run passed 24/24. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(ui-react): Discard draft uses the backspace key (#3699, #3762) The live field's Discard draft draws the kit's backspace glyph, as the signed-off stories do since #3764. The four review-permission and two output-muted-draft baselines are regenerated in the pinned container; two consecutive runs passed 24/24. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Refs #3773
What changed
The tall
VoiceFieldnow holds its body under enlarged text. At 1× text it is still exactly 136px (min-heightreplacesheight, and the content is 124px), so every existing voice baseline is pixel-identical. When doubled text and a body need more room, the field grows to fit, upward, with the controls pinned to its bottom by their existingmargin-top: auto, so no control paints below the field (R2, no animation). The tall label wraps instead of ellipsising its meta. Live draft words keep two whole lines (max-height: 2lh, which is the old 40px at 1×), bottom-aligned to the newest. A message (the refusal line, output muted, a client notice) is never clamped in the tall field (R1). Compact and card shapes are unchanged: every new selector is scoped todata-shape="tall".VoiceTexttells the two apart from its existing props:childrenalone is a message (data-voice-text="message"), andtext/partial/placeholder are words (data-voice-text="words"). The kit's rich draft (L1d/L4d, with an uncertain word) passes its plain words astextas well, so it stays clamped as words. The message bodies in the stories (L1u, L1o, L6, L8r) moved fromtexttochildren. The rendered DOM is the same, so no 1× pixel moved. No prop, component or token was added, andapi-report/ui-kit.txtis unchanged.New stories:
Voice/Live/Tall field · enlarged text(sheet, used for the baselines at 320 and 1280, light and dark) and… · 320(a 320px column for the play checks). Both use L1 + draft, L4 + draft (five controls), L6, L1o and L1 without a body. 200% text is applied the same way as the app'scontrol audit … text 2: 24px on the surface, with every div and button inheriting it at a 1.3 line height, inside the app's 8px phone gutter, so the field is 304px at a 320 viewport.enlargedTallFieldHolds(stories/voice/_checks.ts) checks the following in each field:scrollHeight <= clientHeight, and every control is inside the field's box and at least 44px;The visual test runs the same check at both widths before it captures the cells. The existing
HeightIsStableguard (136px for all 13 tall states at 1×) andFiveControlsAt320(136px) are unchanged and pass.Why this shape
This follows the signed-off design brief on #3773 and the R1/R2 rulings. Using
text/partialversuschildrenalone, as the ruling's example suggests, also needed rich draft words to passtext. Otherwise the uncertain-word draft (children only) would have counted as a message. The alternative was a new prop, which the ruling excludes. The meta also takeswhite-space: normalin the tall field, so a meta longer than a whole line wraps instead of being ellipsised ("never ellipsised in the tall field", per the brief).App tests: #3735 (#3699) is not merged, so
conversation-controls.offline.tsxis untouched here. Restoring the strictcontainedcheck at 2× incontrol audit … text 2andnotice with review … text 2is follow-through for #3735 once both land, as recorded on #3735 and #3699. For that restore to hold, #3735's message bodies (refusal, output muted, readiness, notices) need to render as<VoiceText>{line}</VoiceText>instead oftext=, and the draft keepstext=.Proof
Host Storybook (
--project=storybook --project=storybook-light stories/voice stories/screens/Voice.stories.tsx): 12 files, 146 tests passed.bun test packages/ui-kit/tests: 1038 pass.bun run lintclean,tsc --noEmitclean.Mutation receipts (each restored after the run; storybook project,
-t enlarged):height: 136pxrestoredListening: nothing paints below the field: expected 152 to be less than or equal to 134[data-voice-text="message"] { max-height: none })· 320Needs your tap: a message shows whole: expected 124.75 to be less than or equal to 62.875· 320Needs your tap: "Ithaca steward · 0:41" is not ellipsised: expected 130 to be less than or equal to 1072lh)Listening: the body shows whole lines (1.28): expected 0.28205128205128216 to be less than 0.05Visual baselines: regenerated in the pinned container (
scripts/visual.mjs --project=visual --update). 37 files passed. Only the 20 newvoice-live-enlarged-*PNGs appeared, and no existing baseline changed, so every 1× voice baseline is pixel-identical. Reviewed: the controls are inside the field, the L6 meta wraps under the word at 320, the draft shows its newest two whole lines, and L6/L1o show the whole message.Collisions (
bun scripts/collisions.ts --json --pr 3779, heada4506742f): no path collisions; closure-only overlap with the open ui-kit/ui-react PRs (including #3735 and #3764, which touch the voice stories and baselines).{"version":1,"kind":"brain-check-pr-receipt","head":"a4506742f368ecb019111c55644ed57e9c69bce4","base":"origin/main","mode":"focused","startedAt":"2026-11-09T11:22:14.198Z","finishedAt":"2026-11-09T11:22:57.762Z","checks":[{"name":"all lint and leakage gates","categories":["changeset"],"outcome":"passed","elapsedMs":12525.663007},{"name":"environment documentation","categories":["changeset"],"outcome":"passed","elapsedMs":102.88834499999939},{"name":"pending changeset package names","categories":["changeset"],"outcome":"passed","elapsedMs":78.44238200000109},{"name":"contribution changeset","categories":["changeset"],"outcome":"passed","elapsedMs":18.674212000001717},{"name":"affected fast invariants","categories":["verify","unit"],"outcome":"passed","elapsedMs":30823.626444000005}]}Checklist
docs/reflect the change, or nothing documented moved.docs/decisions/provider-history.md): the provider-history guard passes, or nothing on a turn's path changed.Anything left open
control audit … text 2andnotice with review … text 2" belongs to CONTRACT: feat(ui-react,ui-sdk,ui-server): draw live conversation in the tall voice field #3735's tests, which are not on main. ui-kit: the tall voice field overflows its controls under doubled text with a body #3773 stays open (Refs) until CONTRACT: feat(ui-react,ui-sdk,ui-server): draw live conversation in the tall voice field #3735 restores that check over this kit. The exact step is in the comments on CONTRACT: feat(ui-react,ui-sdk,ui-server): draw live conversation in the tall voice field #3735 and ui-react: wire live conversation (L1–L10) to the tall voice field #3699.voiceA11y) is not run on the enlarged stories. The brief does not cover this, and it is noted on ui-kit: the tall voice field overflows its controls under doubled text with a body #3773 for design.🤖 Generated with Claude Code