Skip to content

ui-kit: story fixtures for dictation disclosure (#3694) and live-field review, refusal and recovery (#3699) #3738

Closed

Description

@schlessera

Context

Part of #3690. The design rulings on #3694 and #3699 place every missing function inside the signed-off #3692 components (VoiceField, VoiceText, VoiceNotice, VoiceControlButton), with no component change. Those forms still need stories and baselines for sign-off before the integration issues can use them unchanged.

Scope

Story fixtures only, in packages/ui-kit/stories/voice/_voice.tsx and the Voice/* story files:

Dictation (#3694):

  • D0 First take: VoiceNotice tone="you" icon="mic" live="polite", title "Start dictation", body "Your words are sent to {destination} to be written down. The audio isn’t kept.", actions Cancel · Start dictation (tone: "you").
  • Dc Connecting: compact VoiceField tone="idle" meter="none", label={ icon: "loading", word: "Connecting", meta: "to {destination}", spin: true }, VoiceText placeholder="Not listening yet", trailing VoiceControlButton name="Cancel dictation" icon="dismiss".
  • D3–D5 with destination: the existing states with label.meta set (“to Google Gemini”, “via Deepgram”, “browser speech · audio goes to Google”), including a long-meta case at 320px.
  • Dx No service and Dx Saved service gone: VoiceNotice tone="idle", no mic, actions Cancel · Open Settings.

Live (#3699):

  • L1 + draft: tall field, label.meta “Draft · not sent yet”, VoiceText with the draft words (an UncertainWord where confidence exists), controls Mute · Discard draft · Send now · End.
  • L4 + draft: the same five controls with Interrupt (proves 320px fit).
  • L6 + refusal line: VoiceText “Tap Allow or Deny on the card. Voice can’t approve or refuse with this service.”
  • L1 output muted: meta “Reply audio off”, body line, control Recover reply audio.
  • L8 readiness: meta “mic off”, body line “Waiting for voice to be ready. Nothing is heard until then.”

Out of scope

Any change to the #3692 components. The app wiring (#3694, #3699).

Acceptance criteria

  • One story per state above, at 320px and desktop, light and dark, plus reduced-motion sheets.
  • Visual baselines in the pinned image.
  • No diff under packages/ui-kit/src/voice/.
  • Accessible names as listed; 44px targets; no overflow at 320px (play test for the five-control row).
  • Design sign-off on the stories.

Contract impact

None.

Blocks #3694 and #3699.

Human action remaining (2026-11-09)

Stories and baselines merged in #3741. Needed: maintainer design sign-off on Voice/Dictation and Voice/Live against the #3694/#3699 drawings. Completion evidence: a sign-off comment on this issue, then close it, which unblocks #3694 and #3699.

Activity

  1. added
    type: feat
    area: ui-kit
    priority: p2
    on Nov 8, 2026
  2. schlessera commented on Nov 8, 2026

    @schlessera
    OwnerAuthor

    Rulings folded in (2026-11-08) from #3694 (K1, K2), #3699 (R1, R2) and #3727 (M1, M2). The story list above stands, plus:

    • D3–D5 destination: add a non-Chrome browser-speech case with meta "browser speech · sent by your browser" (K2).
    • D0: initial focus on Start dictation (K1). The play function asserts it.
    • L4 + draft: control order is Mute · Interrupt · Discard draft · Send now · End (R1). L1 + draft has no Interrupt.

    The design for all three is signed off on those issues.

  3. self-assigned this
    on Nov 8, 2026
  4. schlessera commented on Nov 8, 2026

    @schlessera
    OwnerAuthor

    Claiming for implementation (claim c3738-k7q2), branch feat/3738-voice-state-stories.

    Readiness: the scope, the story list and the copy are fixed by the sign-offs on #3694 and #3699 and by the rulings above (K1, K2, R1, R2). Everything is a story built on the #3692 components, which stay unchanged. Adding agent-ready. Collision check: closure-only overlap with open draft PRs, and no path collisions.

  5. added
    agent-ready
    on Nov 8, 2026
  6. added this to the 0.45.0 milestone on Nov 8, 2026
  7. schlessera commented on Nov 9, 2026

    @schlessera
    OwnerAuthor

    Delivered in #3741 (squash c3908ae7a, milestone 0.45.0). The stories and pinned-image baselines for every form in the scope above, plus K1, K2, R1 and R2. There is no diff under packages/ui-kit/src/.

    • Dictation: D0 (initial focus on Start dictation), Dc, D3–D5 with the destination meta, D3b ("browser speech · sent by your browser") and Dx1/Dx2.
    • Live: L1d (no Interrupt), L4d (Mute · Interrupt · Discard draft · Send now · End), L1u (unclear audio), L1o (Recover reply audio), L6 with the refusal line, L8r readiness, L9m (mic blocked) and Lc (the coverage line as an inline chat notice).
    • Play tests assert the names and their order, D0's focus and polite status, the 84px and 136px heights, the long-meta ellipsis at 320px and the five-control fit at 320px. The mutation receipts are in the PR.
    • Baselines are in packages/ui-kit/tests/visual/__screenshots__/voice.visual.tsx/ (voice-dictation-* and voice-live-*, at 320px and desktop, light and dark).

    Remaining: design sign-off on the stories (last acceptance criterion). Review Voice/Dictation and Voice/Live (or the baselines above) against the signed-off drawings on #3694 and #3699, then record the sign-off here and close this issue. That unblocks #3694 and #3699.

    One point for that review: the drawing's backspace glyph for Discard draft is not in the kit's icon map, so the stories use withdrawn (circle-minus). Changing it means adding an icon to the kit in a follow-up.

  8. added
    needs: human
    and removed
    agent-ready
    on Nov 9, 2026
  9. removed their assignment
    on Nov 9, 2026
  10. schlessera commented on Nov 9, 2026

    @schlessera
    OwnerAuthor

    Design sign-off (maintainer, 2026-11-09): the Voice/Dictation and Voice/Live stories from #3741 are approved against the #3694 and #3699 drawings. The review used the baselines regenerated with the #3746 fixes applied (fades, halo, full-card meter).

    This covers D0, Dc, D3b, Dx1 and Dx2, the D3–D5 destination meta, L1 + draft, L4 + draft, reply audio off with Recover, L6's refusal body, L8 readiness, L9 mic blocked and the coverage inline notice.

    One change ruled: Discard draft uses a backspace icon instead of circle-minus. This is filed as #3762 (ui-kit, a small follow-up). It doesn't hold this sign-off.

    All acceptance criteria are met, so this closes. #3694 and #3699 are unblocked.

  11. removed
    needs: human
    on Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: ui-kitpriority: p2type: feat

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions