Skip to content

feat(app): one live capture card and a record-with-this-phone button - #18843

Merged
Git-on-my-level merged 7 commits into
mainfrom
feat/capture-live-card-ui
Sep 25, 2026
Merged

Git-on-my-level merged 7 commits into
mainfrom
feat/capture-live-card-ui

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Sep 25, 2026 •

Copy link
Copy Markdown
Member

One live card and a "record with this phone" button: the capture UI on Home

This is PR 2 of 2 for the capture UX David approved on 2026-09-25. It builds on #18839 (merged as b4dae853da), which put "one live source at a time" into capture: pauseCapture, resumeCapture and finishCapture, plus the handoffs.

What changes

Home live card (processing_capture.dart, new live_capture_card.dart) is now the single capture status and control surface.

  • Row 1 shows the source with the Recordings-sheet icon (Pendant, Phone or Call), then "● Listening · 12:04", then Pause or Resume. Pause uses a pause glyph; there are no mic or mic-slash glyphs, because mics belong to Ask Omi. A paused source shows an amber dot and the word "Paused" for every source, not "Muted" for the pendant.
  • Row 2 is the latest transcript line.
  • When the phone took over from the pendant, a note reads "Pendant paused · resumes when you finish".
  • A tap opens the live page. The card is hidden when nothing is live.
  • During an Omi call, the card shows "Call · ● Listening · 3:10" with a ›, and a tap opens the call page, which owns the call controls. This applies on Home only; the Conversations tab keeps its call banner.
  • The card's local phone-pause flag is gone. It now reads the controller: liveCaptureSource, isPhoneMicPaused, pendantPausedForPhone, liveCaptureStartedAt. So a connected pendant that the phone took over from no longer reads as "device recording".
  • The Transcribe Later card's Mute and Unmute became Pause and Resume, with pause and play glyphs.

The bottom circle (HomeRecordButton) always means "record with this phone".

  • Idle, it is a neutral circle with a white dot. A small ⌄ badge, which is its own accessibility node, opens "Record with: Phone mic / Phone call". Long-press is kept as a shortcut.
  • While the pendant is live or paused (realtime mode), a tap opens "Your pendant is listening": record with phone instead (the pendant pauses until you finish), phone call (the pendant pauses during the call), or keep using the pendant. It never takes over silently and never records both.
  • While the phone records, the circle is a stop square that runs finishCapture, and a pendant that the phone paused resumes afterwards.

Live page

  • The title names the source: "Listening · Pendant", "Paused · Phone mic".
  • Pause and Resume use a pause glyph, and the button is disabled during an OS audio interruption.
  • Finish replaces Process Now as the only stop and runs finishCapture.
  • The "Finished Conversation?" confirmation and its preference accessors are removed, per David's ruling.

Header device chip

  • The chip shows a battery-bar glyph and the percentage, with no coloured dot.
  • The bar fills red only at or below 20% (kLowBatteryPercent, the same threshold as the low-battery alert), never amber. Live status appears only on the card.

Text (49 locales)

  • The empty state reads "Tap the record button to start recording". The sibling noConversationsHeroMessage and the record-options tip were updated to match.
  • 15 new keys cover the card, the sheets and the live page. Battery accessibility reuses the existing batteryLevelSemantics.

Tests

  • New test/widgets/capture_home_ui_test.dart (9 tests):
    • the card's source, state, time and Pause;
    • Resume on a paused pendant;
    • the takeover note;
    • the call card on Home, and none on the Conversations tab;
    • hidden when idle;
    • the badge opening "Record with";
    • the pendant sheet with no silent takeover;
    • the phone stop square;
    • the battery glyph's critical flag.
  • Updated to the approved design: the process-now tests (Finish, no confirmation even when the old preference was on), transcription_paused_warning_test (8pt amber dot, no Pause control during an OS interruption, "Paused" for the pendant), and record_options_sheet_icon_test (Recordings-sheet icons). The source for these new expected values is David's ruling of 2026-09-25 in the "Capture UX: live card + phone button" storyboard.
  • Visual audit: home-header now renders the button where Home really draws it, not under the header chips. New scenarios cover the card states, the sheets and the live page: home-capture-* and conversation-live-*.

Before / after

Command: app/scripts/visual_audit.sh --base b4dae853da --head 3d1886126c --only home-header,home-capture-*,conversation-live-* (the 11 capture scenarios).

Gallery: https://claude.ai/artifact/CgYJv6tN5vTrdezWVqUapJ.

In the "tap the record button while the pendant records" pair, the before side opens the phone's live page with Process Now. That is the silent takeover. The after side opens the "Your pendant is listening" sheet.

Verification (hermetic, Flutter 3.44.5, TZ=UTC)

  • bash app/test.sh: 3077 tests passed, plus 138 in the spine suite.
  • The analyzer ratchet passes; l10n.py check passes (49 locales, 3377 keys).
  • These checks pass: INV-UI-3, INV-UI-1, dead-code, addressability and the event registry.
  • The visual-audit smoke test renders all 75 scenarios.
  • This is not verified on an installed phone (BLE, calls, OS mic). Those are device checks for the next TestFlight build.

Cursor Grok review

Grok 4.7 High via agentctl, read-only, including misses beyond the diff. It raised 13 findings: no P0, 4 P1, 7 P2 and 2 P3.

Fixed

  1. P1. A connected pendant that was not capturing still showed the old "Say something" header on the card. The card now hides unless a source is live or a Transcribe Later card applies. The legacy header branch and LiteCaptureWidget are removed. Tested.
  2. P1. The phone button could start a recording during an Omi call and take over a call-paused pendant with no sheet. During a call it now opens the call page and never records. Tested.
  3. P1. On the live page, the transcription-outage sentence plus a source would clip. Sentence states keep their three-line sentence without the source, and "state · source" can take two lines.
  4. P1. Pause was hidden after the first photo, not by device type. LiveCaptureCard.canPause now covers OmiGlass and Ray-Ban Meta on both the card and the live page. Tested.
  5. P2. OmiGlass and Ray-Ban Meta showed a mic icon. They now use a camera icon in CaptureSources.
  6. P2. A connecting or ringing call looked live. It is now amber, with no time until the call is active. Tested.
  7. P2. Screen readers did not treat the card as one control. The card is now one button, with the "Live Transcript" hint and its decorative icon excluded; Pause stays its own button.
  8. P2. Long state text in long languages collapsed to an ellipsis. The state now wraps to two lines on the card, and the live page title can take two lines.

Deferred, with reasons

  • P2, badge hit target (findings 8 and 11). The badge's target is 30pt, not 44pt. A Stack only hit-tests inside its own 62pt box, and a 44pt square inside that box would cover the circle's centre, so the previous overhanging badge was only partly tappable (about 24pt). The badge now sits fully inside the box (tested), and screen readers also get the same sheet as the circle's long-press action. Making it 44pt means a wider button box, which changes the Ask Omi row; that is left for David's call.
  • P3, finding 12. The Transcribe Later and Limitless card stays a separate card, with Pause/Resume glyphs aligned. Folding it into the live card is a follow-up.
  • P3, finding 13. The new tests cover items 1, 2, 4 and 6 above. Text scale and 320pt width are shown only through the wrapping rules, not tested.

Product invariants affected

none

Failure class (fixes)

Failure-Class: none

🤖 Generated with Claude Code

Git-on-my-level and others added 7 commits September 25, 2026 12:22
- The card is hidden unless a source is live (a connected, idle pendant no
  longer shows the old 'Say something' header); legacy header and
  LiteCaptureWidget removed.
- The record button never starts a recording during an Omi call; it opens
  the call.
- Pause follows the device (photo-capture devices have none) on the card and
  the live page alike; OmiGlass and Ray-Ban Meta get a camera icon.
- Connecting/ringing calls are amber with no time; long states wrap to two
  lines on the card; the live page title keeps sentence states whole and
  lets 'state · source' take two lines.
- The card is one button for screen readers; the ways-to-record badge stays
  fully inside the button's hit box.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant