Skip to content

ui-kit: voice components and stories for every dictation, Start and live state #3692

Closed

Description

@schlessera

Context

Part of #3690. Storybook first: every visual piece of the voice redesign is built and approved here, in ui-kit, before any app wiring. The integration sub-issues (#3693, #3694, #3698, #3699, #3700) only connect real state to these components. They must not add new visuals.

Direction 3a

Scope: presentational components (no hooks, no client, props only)

  1. VoiceField, the composer-replacing surface, in three shapes:

    • compact (dictation): a fixed height that never collapses; a two-line text area, clamped.
    • tall (live): a fixed-height panel.
    • card (Start and notices): grows upward.
  2. Fill and meter by speaker:

    • amber for you or your mic;
    • teal for brain or its voice (a meter while speaking, a sweep while thinking or working);
    • grey for not hearing (flat when muted, striped while reconnecting);
    • red only on End and failures.

    The meter takes a level prop (0–1), so stories can drive it.

  3. State label row (icon plus one word) with optional meta (persona and elapsed time).

  4. VoiceControlButton: raised round buttons (44px minimum) lifted off the meter by a soft shadow and highlight, with pressed (solid) and disabled treatments.

  5. MicButton with hold ring: idle, pressed, holding (with a progress prop for the ring) and complete. The "Keep holding to talk live" hint is included.

  6. VoiceNotice: tone, icon, title, one-line body and up to two actions.

  7. StartCard, containing:

    • the disclosure line and "What's shared" expander;
    • the Service row with Change;
    • the persona list;
    • the warning, blocking and error variants (S3, S3b, S3c, S3d);
    • the Start button and cancel.
  8. Spoken-turn marks for the chat:

    • inline amber mic and teal speaker icons;
    • the in-progress outline and cursor;
    • the dotted underline for an uncertain word;
    • dimmed unplayed text and the "cut off" tag;
    • the end-of-conversation divider.

Stories (one per state, all at 320px and desktop, light and dark)

  • Dictation: D1–D8.
  • Start: S1, S2 with one and with several services, S3, S3b, S3c, S3d, S4, S5.
  • Live: L1–L10.
  • Chat: typed vs. spoken turns, in-progress, uncertain word, partly played, cut off, end divider, and a legacy turn with no provenance.
  • Composite screen stories: a chat plus the field, for one representative state per group, matching the mockups.

Use Odysseus fixture copy.

Acceptance criteria

  • All components live in ui-kit using kit tokens. The amber, teal, grey and red state colours are defined once and shared by dictation and live.
  • Every state listed above has a story, and visual baselines exist at 320px and desktop in both themes.
  • The field height is identical across D3–D5 and across L1–L8. A visual or layout test fails if it changes. Prove this with a mutation.
  • Per-component accessibility (moved here from ui-react: integrated accessibility for voice — announcements, focus and keyboard flows #3701):
    • accessible names on all controls;
    • 4.5:1 text contrast on every fill;
    • no state relying on colour or animation alone (every state has an icon and a word);
    • coarse-pointer targets and focus rings on every fill.
  • Reduced-motion stories: meters show a static level, sweeps become a flat tint, the ring shows progress without easing, and shape changes are instant.
  • Components take plain props and callbacks only. They do not import dictation or conversation client code.
  • Design sign-off on the stories, against the mockups on Epic: unified voice experience — one mic, one field (dictation + live conversation) #3690, before the integration sub-issues start.

Verification

Kit visual and layout tests under the existing browser projects, the kit accessibility checks, and the mutation above.

Contract impact

None. These are new kit exports.

Activity

  1. added
    type: feat
    area: ui-react
    area: ui-kit
    priority: p2
    on Nov 8, 2026
  2. changed the title [-]ui-kit: shared voice field and state vocabulary for dictation and live conversation[/-] [+]ui-kit: voice components and stories for every dictation, Start and live state[/+] on Nov 8, 2026
  3. uploads-sh commented on Nov 8, 2026

    @uploads-sh

    voice-3a-combined.png

    View on uploads.sh

    uploads put <file> --issue 3692 · docs

  4. added
    agent-ready
    on Nov 8, 2026
  5. self-assigned this
    on Nov 8, 2026
  6. schlessera commented on Nov 8, 2026

    @schlessera
    OwnerAuthor

    Claimed (claim-bcc42f5d) on branch feat/3692-voice-kit-components. Decision V4 (the hold ring fills, then S4 explains) is ruled on #3690, so this issue is fully scoped. Collision check: broad closure overlaps with open drafts only, no path collisions. I'll build the components, stories and baselines; the design sign-off stays with the maintainer, on the PR.

  7. schlessera commented on Nov 8, 2026

    @schlessera
    OwnerAuthor

    Design sign-off (maintainer, 2026-11-08): the voice stories and baselines in #3718 are approved against the #3690 mockups.

    That covers D1–D8, S1–S5 (with S2's one- and several-service forms and S3b–S3d), L1–L10, the chat marks, the controls and the three assembled screens.

    Two departures were reviewed and accepted:

    • The words and the state label sit on the field's opaque ground, so meter bars never cross text (4.5:1 contrast).
    • The mockup copy moved from "Argo" to the raft on Ogygia, to stay in the Odysseus fixture world.

    The integration issues (#3693, #3694, #3698, #3699, #3700) may use these components unchanged once #3718 merges.

  8. added this to the 0.45.0 milestone on Nov 8, 2026
  9. 2 remaining items

  10. schlessera commented on Nov 8, 2026

    @schlessera
    OwnerAuthor

    Delivered in #3718, squash 344d2dd47b78df20f387360949e7930e4e2d34dc (parent a3ca546, tree 34f39ee, identical to the confirmed candidate in run 42480519944). Milestone 0.45.0.

    • Components. The voice surface ships as props-only kit exports, with the --bk-voice-* tokens and the speaker, mic-off and interrupt icons.
    • Stories. Every D1–D8, S1–S5 (with S3b–S3d) and L1–L10 state and every chat mark has a story. The composite screens are under Screens/Voice.
    • Baselines. There are 126 per-state baselines at 320px and desktop in both themes, generated in the pinned image.
    • Accessibility.
      • Play functions check names, 44px targets, an icon plus a word per state, focus rings on every fill and reduced motion.
      • The axe gate runs at error in both themes.
      • voice-contrast.test.ts pins 4.5:1 for every ink on every ground.
    • Mutation receipts, all recorded in the PR.
      • Height: D3 height: expected 62 to be 84 and L1 height: expected 96 to be 136.
      • Reduced motion under the real media query: moving meter hidden: expected 'flex' to be 'none'.
      • Contrast: color-ink-mute on idle: 3.33.
    • Design sign-off. Recorded above (maintainer, 2026-11-08).

    #3693, #3694, #3699 and #3700 depended only on this issue and are now unblocked. #3698 remains blocked by #3616 and #3617. #3701 follows the integrations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

agent-readyarea: ui-kitarea: ui-reactpriority: p2type: feat

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions