Repository navigation
Description
Context
Part of #3690. #3700 wired the #3692 spoken-turn marks into the chat (PR linked from #3700). Epic #3690 says the "?" evidence glyphs leave the chat, and #3700 says a turn's details (confidence, generated vs heard, timing) open from a long-press or the context menu.
The kit cannot do that yet. The only way to reach the transcript details is the glyph trigger inside TranscriptQualifiers (export function TranscriptQualifiers, packages/ui-kit/src/conversation/TranscriptQualifiers.tsx:67-141). That component owns the details dialog, the tooltip and the focus return, and nothing outside it can open them. #3692 shipped no details surface for spoken turns. #3700 must use the kit unchanged, so it keeps the existing glyph trigger, now placed under each spoken turn (ConversationRecognitionRow and ConversationOutput, packages/ui-react/src/components/voice/conversation-outputs.tsx).
Scope
- A kit way to open the existing transcript details for a spoken turn from a long-press (touch) or the context menu (pointer and keyboard), without the glyph trigger.
- A keyboard path to the same details once the glyph trigger is gone, so evidence stays reachable without a pointer.
- Stories and visual baselines for it under
Voice/Chat marks.
Out of scope
- The app wiring. ui-react: wire spoken-turn marks into chat — inline mic/speaker, uncertain and unplayed text, end divider #3700 swaps the glyph trigger for this once it ships.
- The wording of the details and their evidence. That stays the vocabulary in
TranscriptQualifiers.tsx. - Integrated announcements and focus flows across the voice surface (ui-react: integrated accessibility for voice — announcements, focus and keyboard flows #3701).
Acceptance criteria
- A long-press on a
SpokenTurnand acontextmenuevent on it open the same transcript details the glyph trigger opens today, with the same D54 focus, dismissal and focus-return behaviour. - A keyboard-only user can open the details for any spoken turn, proven by a story play function that uses only the keyboard.
- No glyph renders inside or beside a spoken turn in the new stories.
- Stories and 320px plus desktop baselines in both themes, and design sign-off on the keyboard path.
Verification
ui-kit story play functions and voice.visual.tsx baselines generated in the pinned image.
Contract impact
None. The ui-kit component API change is additive.
Decisions (maintainer, 2026-11-08)
- T1: touch gets no at-rest hint that long-press exists. The pressed veil shows at 150 ms and Details opens at 500 ms.
- T2: right-click opens Details directly, except when there is a text selection inside the turn. Then the native menu passes through, so Copy works.
2026-11-08: open decision questions answered by the maintainer and recorded above.
Activity
schlessera commentedon Nov 8, 2026
Design needed: how a spoken turn's details are reached without the evidence glyph. Two things are already decided. Details open from a long-press or the context menu (#3700), and the "?" glyphs leave the chat (#3690). What is left is how a keyboard or screen-reader user reaches the same details once the 44px glyph button is gone, and whether long-press needs a visible hint. The code cannot settle this: removing the only focus stop without a replacement makes the evidence unreachable without a pointer.
schlessera commentedon Nov 8, 2026
Design brief: reaching a spoken turn's details without the glyph
ui-kit components:
TranscriptQualifiersis extended with a new trigger form.SpokenTurnis extended with an optionaldetailsprop. TheOverlaydialog and the vocabulary are reused unchanged.Answer, argued
There is one "Details" stop per spoken turn. It is visually hidden at rest and shows on focus or hover. Long-press and right-click open the dialog directly, with no menu.
Keyboard sequence
Accessible names
namestring: "Recognized speech; Gemini Live; unverified. Transcript details." or "Voice reply; Gemini Live; playback unknown. Transcript details." It keepsaria-haspopup="dialog".SpokenMark. A screen reader finds the stop in browse mode because it is clipped, notdisplay:none.Pointer and touch
pointercancel, aborts, so scrolling is unaffected. The turn hasuser-select: none; -webkit-touch-callout: noneon(hover: none), so long-press never selects text. The words stay selectable inside the dialog's evidence.(hover: none)it is never shown at rest.The pill is a 24px visual on a 44px hit area (
bk-hit), absolutely placed on the turn's outer bottom corner: right for yours, left for brain's. Revealing it never shifts the layout. There is no glyph inside or beside a turn at rest, and no new colour or token.Kit API (additive)
Stories (
Voice/Chat marks, 320 + desktop, both themes)Rest · Details focused · Long-press pressed · Details open · Right-click with selection (native) · Reduced motion. Keyboard-only play function: Tab → Enter → Esc, asserting focus returns.
Open questions (
needs: decision)schlessera commentedon Nov 8, 2026
Decision (maintainer, 2026-11-08):
The design brief above is otherwise unchanged. Its sign-off is still pending, so this issue now carries
needs: designinstead ofneeds: decision.schlessera commentedon Nov 8, 2026
Design sign-off: spoken-turn details without the glyph (final, T1 and T2 folded in)
Signed off. The brief above stands as drawn, and T1 and T2 match its recommendations. This is the consolidated spec.
ui-kit components:
TranscriptQualifiersis extended withtrigger: "glyphs" | "reveal"(default"glyphs").SpokenTurnis extended withdetails?.Overlayand the vocabulary are reused unchanged.Behaviour
pointercancelaborts(hover: none)Accessibility
aria-haspopup="dialog". It is clipped, notdisplay:none, so browse mode finds it.bk-hit, absolutely placed, so there is no layout shift.user-select: none; -webkit-touch-callout: noneapplies on(hover: none)only. The words stay selectable in the dialog's evidence.Stories (
Voice/Chat marks, 320 + desktop, both themes)Rest · Details focused · Hover · Long-press pressed · Details open · Right-click with selection · Reduced motion. Keyboard-only play function: Tab → Enter → Esc, asserting the dialog opens and focus returns.
No open questions remain.
schlessera commentedon Nov 8, 2026
Claimed (claim token
c3728-6de7), branchfeat/3728-spoken-turn-details.Readiness: the design sign-off of 2026-11-08 21:35Z settles every open question (T1, T2), the acceptance criteria are checkable, and the cited
TranscriptQualifiers(packages/ui-kit/src/conversation/TranscriptQualifiers.tsx) andSpokenTurnsources are on main. Addedagent-readyand the 0.45.0 milestone. Scope stays in the kit; the app wiring is #3700's.Collisions:
collisions.ts --pathsreports only workspace-closure overlaps with older drafts, no path collisions.CONTRACT: feat(ui-kit): open a spoken turn's transcript details from …
test(ui-kit): baselines for spoken-turn details at 320 and desktop in…
CONTRACT: feat(ui-kit): open a spoken turn's transcript details from …
test(ui-kit): baselines for spoken-turn details at 320 and desktop in…
CONTRACT: feat(ui-kit): open a spoken turn's transcript details from …
schlessera commentedon Nov 9, 2026
Delivered in #3743, squash
ab487873671eaea15301efc188d28c8cbcd0e6c2on main (0.45.0). Candidate proof run 42652613175 passed on head3288876against base4b8db90.SpokenTurngainsdetails?: SpokenTurnDetailsandTranscriptQualifiersgainstrigger?: "glyphs" | "reveal"(the default is unchanged). The reveal trigger is one clipped Details stop per turn. It shows as a pill on focus or after a 300 ms hover, and opens the existing D54 dialog with focus returning to the stop. It opens from Enter, Space, Shift+F10, the ContextMenu key, a right-click (T2: the native menu passes through when text inside the turn is selected) and a touch long-press (veil at 150 ms, open at 500 ms, aborted by more than 10 px of movement or a pointercancel). There is no at-rest hint (T1) and no glyph. Stories are underVoice/Chat marks, with 24 baselines covering six states at 320 and desktop in both themes. The mutation receipts are in the PR. The app wiring remains #3700's.