Skip to content

v2 cleaner UX: live transcript page, names above the lines in one card, Pause and Finish in a dock - #20796

Open
Itaxh1 wants to merge 2 commits into
BasedHardware:mainfrom
Itaxh1:feat/v2-live-transcript
Open

Itaxh1 wants to merge 2 commits into
BasedHardware:mainfrom
Itaxh1:feat/v2-live-transcript

Conversation

@Itaxh1

@Itaxh1 Itaxh1 commented Oct 6, 2026 •

Copy link
Copy Markdown
Collaborator

TL;DR: The live transcript page (the page behind the Home listening row while recording) moves to the v2 look: a "Live Transcript" title with the state line and the session clock under it, the transcript in one card with each speaker's name above their words instead of chat bubbles with avatars, and Pause/Resume and Finish as two labelled capsules in a floating dock. UI only, no backend change, no new behaviour: the same handlers and keys, the speaker sheet on tap, the label badge, the tagging spinner, the likely-speaker chip, translations, photo groups and every banner keep their places. Screenshots below. Closes #20773; part of the v2 cleaner UX (#20719) and needs #20342 first.

Needs #20342 (the design foundation) merged first; until then this PR also lists that PR's files. This PR's own change: compare (5 files).

Closes #20773

What changed and why

  • Header (capture_state_header.dart): ConversationStateAppBar takes an optional title and startedAt. With a title, the page's name is the headline and the state row ("Listening · Pendant", with its dot) sits under it in secondary footnote type, followed by a session clock (m:ss, h:mm:ss past the hour) while the state is live. The clock ticks in its own small widget outside the announced live region, so a screen reader never hears it over the state. The processing and saved pages pass no title and are unchanged.
  • Transcript (conversation_capturing/page.dart): one surface1 card on the grouped page, a hairline and a little lift, with a fade at the top so the oldest lines slip under the edge. Both the plain path and the photo path (a camera-capable device's photo groups first) go through one TranscriptWidget with a segmentBuilder; before, only the photo path did. Each line: the speaker's name from SpeakerNames in small grey (You, the person once named, otherwise Speaker N), then the words at title3 regular. The newest line is full ink with a caret while listening; earlier lines are secondary. Tapping a line opens the speaker sheet, as the avatar and name did. Gone from the live page: the avatars, the per-line time offsets and the chat bubbles.
  • Controls: Pause/Resume (OmiButton, primary) and Finish (OmiButton.secondary) side by side in a floating dock (surface1 pill with the float shadow). Same keys (capture_pause_button, process_now_button), same handlers, same rule for when Pause is offered (LiveCaptureCard.canPause).
  • OmiButton gains pill: true (a capsule instead of the 12 pt corners) for buttons inside a pill-shaped dock. Default unchanged.
  • The visual audit's capture fake learns suggestionsBySegmentId, which every line now reads.

Screenshots

Before is main's page on the foundation, after is this branch. Rendered by app/scripts/visual_audit.sh (real widgets, flutter-tester, 390×844 at 2×, fixture data, light theme).

Before After (this branch)
Pendant listening Before: pendant listening After: pendant listening
Phone mic paused Before: phone paused After: phone paused

Product invariants affected

none

How it was verified

  • flutter analyze on the changed files: no errors or warnings (the one info is on main). dart format --line-length 120: clean.
  • Full app suite (bash test.sh) on this branch: 4,669 passed, 14 skipped, 1 failed — test/services/siri_integration_test.dart ("… submitted during cooldown reach Spotlight after cooldown"), a Spotlight cooldown timing test in code this branch does not touch; it passes on its own (28/28).
  • Visual audit conversation-live-pendant and conversation-live-phone-paused, foundation against this branch: the screenshots above.
  • scripts/pr-preflight (lane local, 23 checks, with this body): passed.
  • The combined v2 build with this branch merged ran on an iPhone 15 Pro Max on 2026-10-06.

Tests

  • test/widgets/capturing_empty_state_test.dart, new case: the live page shows "Live Transcript", the state line and the clock, names each speaker above their words (You, Speaker 1), sets the newest line in primary and the earlier one in secondary, and keeps Pause and Finish side by side in that order.
  • The existing live page tests (empty states, the unsynced backlog, Finish with a swipe back, Finish from the Conversations tab, the Home capture card) pass unchanged: the keys and handlers did not move.

Failure class (fixes)

Failure-Class: none

Review in cubic

Itaxh1 added 2 commits October 5, 2026 04:49
A "Live Transcript" title with the state line and the session clock under it; the transcript in
one card with each speaker's name above their words, the newest line full ink with a caret and
earlier lines secondary; Pause/Resume and Finish as labelled capsules in a floating dock. Same
handlers, keys and banners as before: the speaker sheet, label badge, tagging spinner,
likely-speaker chip, translations and photo groups keep their places. OmiButton gains a pill
option for the dock. The audit's capture fake learns the suggestion map the lines now read.

Part of BasedHardware#20719. Mock and today's page in BasedHardware#20773.
@Git-on-my-level Git-on-my-level added flutter flutter work needs-maintainer-review Needs a human maintainer to sign off before merge labels Oct 6, 2026
@Git-on-my-level

Copy link
Copy Markdown
Member

Reviewed on top of #20342. The PR's own change is 5 files and they look good:

  • capture_state_header.dart — the new title/startedAt layout is well handled, especially keeping the ticking session clock outside the announced live region so it never talks over the state.
  • conversation_capturing/page.dart — routing both the plain and photo paths through one TranscriptWidget segmentBuilder is a nice unification, and _dockClearance reserving room for the floating dock is the right approach.
  • omi_button.dart — wrapLabel/pill are additive; existing callers unaffected.
  • capturing_empty_state_test.dart — good to see the new layout covered by a names-above-lines test with the dock asserted.

Two small non-blocking notes: the session clock's m:ss/h:mm:ss formatting is hard-coded rather than localized (fine if intentional), and the changelog entry is kind: none — worth confirming this restyle deliberately ships without a release note. Also noting most CI jobs (Dart tests, builds) are skipped on this head.

Needs #20342 merged first; holding formal review until the base lands and the true 5-file delta is visible. UX direction sign-off on the v2 live-transcript look (dock, single card, names above lines) needs a maintainer's eye.


by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.

@Git-on-my-level Git-on-my-level added the positive-signal Automation verified a genuine fix/quality contribution label Oct 6, 2026

@kodjima33 kodjima33 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

feat(app) v2 cleaner UX part 9/10 - mobile feature, approve-only (not merge), normalized consistent with rest of the v2 UX series

@Git-on-my-level

Copy link
Copy Markdown
Member

Reviewed the 5 files this PR owns on top of #20342, plus the foundation files it stacks on. This is a careful, behavior-preserving restyle — some notes from the read-through:

  • capture_state_header.dart: nice accessibility detail — _SessionClock ticks once a second but sits outside the Semantics(liveRegion:), so the clock never talks over the announced capture state. The timer is cancelled in dispose, and the !titled branch keeps the processing/saved pages rendering exactly as before.
  • conversation_capturing/page.dart: unifying the plain and photo paths through one TranscriptWidget + segmentBuilder (dropping the separate getTranscriptWidget call) removes a real duplication, and the interactive keys (capture_pause_button, process_now_button) and their disable conditions (_mutePending, call active) are preserved. OmiDuration.offset clamping negative elapsed time to 0 is a good guard.
  • capturing_empty_state_test.dart: the new live-title/speaker-name test with the _VerifiedPendantCapture stub is solid hermetic coverage of the new layout; omi_canvas_test.dart pins the canvas/grouped colour contracts for both appearances.

Two non-blocking observations:

  1. All build/test checks were skipped on this head, including Dart Analyze & Tests — so the new and updated widget tests haven't actually executed in CI for this commit. Worth a local flutter test run or a re-run before merge behind feat(app): v2 cleaner UX 1/9 — design foundation (no visible change) #20342.
  2. The speaker-name header row in _buildTranscriptLine relies on the footnote style's single-line ellipsis; very long auto-generated names will truncate silently. Fine if intentional, just flagging it.

Thanks @Itaxh1 — the turn-boundary logic for the label badge (startsTurn comparing speaker/person/label-source with the previous segment) is exactly the right granularity.


by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.

@kodjima33 kodjima33 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v2 cleaner UX: live transcript page redesign — mobile UI feature, part of the known v2 UX series (not flagged per standing precedent). Approve-only; depends on #20342 landing first.

@kodjima33 kodjima33 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Itaxh1 v2 cleaner UX (live transcript) -- feature, approve-only

@kodjima33 kodjima33 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Itaxh1 v2 cleaner-UX series — feature (mobile/flutter), explicitly carved out as normal per standing memory (self-bounty flag applies elsewhere on this account, not this series) — approve only, not a

@undivisible

Copy link
Copy Markdown
Collaborator

@Itaxh1 this conflicts with main now. Please rebase and push; it still looks valid.

@kodjima33 kodjima33 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mobile UI redesign - feature, approve-only. Itaxh1 v2-UX series treated normally per standing carve-out.

@kodjima33 kodjima33 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feature (v2 live-transcript UI redesign), not a bug fix - area rule is approve-only regardless of quality. mergeStateStatus is DIRTY so merge isn't available anyway.

This branch has not been deployed

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

Labels

flutter flutter work needs-maintainer-review Needs a human maintainer to sign off before merge positive-signal Automation verified a genuine fix/quality contribution

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Live transcript page: names above the lines in one card, Pause and Finish in a dock (v2 cleaner UX)

4 participants