Repository navigation
Conversation
… Settings components
…cords, as on main
11be5e8 to
f5ac2cf
Compare
There was a problem hiding this comment.
7 issues found across 133 files
Confidence score: 3/5
battery_info_widget.dartcan treat an interrupted phone session as Stop even though_startPhoneRecordingstarts a new stream in that state, potentially replacing the existing recording. Handle interrupted sessions without starting a new stream.omi_canvas.dartis not active across the Home, Tasks, and conversation page bodies, so canvas-aware widgets there may not work as intended. Wrap those screen bodies inOmiCanvas.omi_button.dartpins both dimensions when a width is set, so wrapped localized labels can be clipped. Allow the height to grow whenwrapLabelis enabled.20261005-design-foundation.jsonomits a release note for the user-visible Home redesign, so release collection will leave out the feature. Add a concisechangeentry.
You’re at about 95% of the monthly reviewed-line limit. You may want to disable incremental reviews to conserve quota. Reviews will continue until that limit is exceeded. If you need help avoiding interruptions, please contact [email protected].
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="app/changelog/unreleased/20261005-design-foundation.json">
<violation number="1" location="app/changelog/unreleased/20261005-design-foundation.json:2">
P2: This marks a user-visible Home redesign as having no release note, so release collection omits the feature. Replace it with a concise `change` describing what users can do with the new Home controls.</violation>
</file>
<file name="app/integration_test/visual_audit/scenarios/capture.dart">
<violation number="1" location="app/integration_test/visual_audit/scenarios/capture.dart:212">
P3: The capture audit now shows a different settings icon from `HomePage._buildAppBar`, so its Home screenshots no longer represent the real screen. Keep the audit icon in sync with the production header.</violation>
</file>
<file name="app/docs/ux-contract.md">
<violation number="1" location="app/docs/ux-contract.md:90">
P2: These new UI rules are not enforced by INV-UI-3, so later pages can reintroduce the prohibited hand-built layouts, segments, or eager lists without CI detecting them. Add checker rules and failing cases as the contract's closing section requires.</violation>
</file>
<file name="app/lib/ui/components/omi_button.dart">
<violation number="1" location="app/lib/ui/components/omi_button.dart:260">
P2: A wrapped label with `width` stays at `visualHeight` because `fixedSize` pins both dimensions, so large localized labels can be clipped. Keep the width fixed while allowing height to grow when `wrapLabel` is enabled.</violation>
</file>
<file name="app/lib/widgets/device_tile.dart">
<violation number="1" location="app/lib/widgets/device_tile.dart:14">
P3: `DeviceTile` has no application callers, so this 137-line widget never renders for users. Wire it into the conversation-row builder or defer it until a caller lands.</violation>
</file>
<file name="app/lib/pages/home/widgets/battery_info_widget.dart">
<violation number="1" location="app/lib/pages/home/widgets/battery_info_widget.dart:269">
P1: This marks a phone session in `RecordingState.interrupted` as the Stop button. But `_startPhoneRecording` only finishes for `record` or paused states and otherwise calls `streamRecording()`, which replaces the existing phone session. Include the interrupted-phone case in the stop path.</violation>
</file>
<file name="app/lib/ui/omi_canvas.dart">
<violation number="1" location="app/lib/ui/omi_canvas.dart:16">
P2: `OmiCanvas.isOn` is false throughout Home, Tasks, and conversation page bodies; the only runtime wrappers are isolated grouped-page header controls. Wrap those screen bodies in `OmiCanvas`, or canvas-aware widgets will keep using the non-canvas palette.</violation>
</file>
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
| /// The phone capture is this button's own: live, paused, or interrupted while transcription | ||
| /// reconnects (ownership, not the recording state, says so). | ||
| static bool _phoneOwnsCapture(CaptureProvider capture) => | ||
| capture.liveCaptureSource == 'phone' || |
There was a problem hiding this comment.
P1: This marks a phone session in RecordingState.interrupted as the Stop button. But _startPhoneRecording only finishes for record or paused states and otherwise calls streamRecording(), which replaces the existing phone session. Include the interrupted-phone case in the stop path.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/lib/pages/home/widgets/battery_info_widget.dart, line 269:
<comment>This marks a phone session in `RecordingState.interrupted` as the Stop button. But `_startPhoneRecording` only finishes for `record` or paused states and otherwise calls `streamRecording()`, which replaces the existing phone session. Include the interrupted-phone case in the stop path.</comment>
<file context>
@@ -255,18 +255,25 @@ class _HomeRecordButtonState extends State<HomeRecordButton> {
+ /// The phone capture is this button's own: live, paused, or interrupted while transcription
+ /// reconnects (ownership, not the recording state, says so).
+ static bool _phoneOwnsCapture(CaptureProvider capture) =>
+ capture.liveCaptureSource == 'phone' ||
+ capture.recordingState == RecordingState.record ||
+ capture.isPhoneMicPaused;
</file context>
| @@ -0,0 +1,3 @@ | |||
| { | |||
| "kind": "none" | |||
There was a problem hiding this comment.
P2: This marks a user-visible Home redesign as having no release note, so release collection omits the feature. Replace it with a concise change describing what users can do with the new Home controls.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/changelog/unreleased/20261005-design-foundation.json, line 2:
<comment>This marks a user-visible Home redesign as having no release note, so release collection omits the feature. Replace it with a concise `change` describing what users can do with the new Home controls.</comment>
<file context>
@@ -0,0 +1,3 @@
+{
+ "kind": "none"
+}
</file context>
| "kind": "none" | |
| "change": "Ask questions or start a recording directly from Home’s new controls" |
| | Top-level Settings rows | `OmiSettingsGroup(style: OmiSettingsGroupStyle.outlined, header:)` of `OmiSettingsRow(leading: OmiSettingsIconTile(FaIcon(…)))`: labelled outlined cards on `OmiColors.groupedPage`, no hairlines | a bare glyph or a hand-built tile per row | | ||
| | A page inside Settings | `OmiGroupedPage(title:, actions:, body:)`: circled back, centred title, `OmiColors.groupedPage`; under it every `OmiSettingsGroup` is outlined and every `OmiSectionHeader` the small label. Pages of destinations or choices (Device, Recording, Permissions, Language, …) lead rows with `OmiSettingsIconTile`; a page of values and toggles (Notifications & Display, a transcription provider's fields) uses plain rows. A custom block sits in an `OmiGroupedCard` | `Scaffold` + `AppBar` + a `surface1` card | | ||
| | Settings type and row icons | Settings is set in Instrument Sans: `OmiGroupedPage` applies `OmiSettingsTypeface`, and a Settings page with its own `Scaffold` wraps it. A row keeps the app's own FontAwesome or Material icon, inside `OmiSettingsIconTile`, which sizes it and colours it (red on a destructive row) | the system font on one Settings page, an icon leading a Settings row outside its tile | | ||
| | Two to four views of one list or chart (Today · Month · Year, All · Pending · Synced) | `OmiSegmentedControl(value:, segments:, onChanged:)`: full width, 44 pt segments, labels never wrap | a row of tinted chips or a hand-built toggle | |
There was a problem hiding this comment.
P2: These new UI rules are not enforced by INV-UI-3, so later pages can reintroduce the prohibited hand-built layouts, segments, or eager lists without CI detecting them. Add checker rules and failing cases as the contract's closing section requires.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/docs/ux-contract.md, line 90:
<comment>These new UI rules are not enforced by INV-UI-3, so later pages can reintroduce the prohibited hand-built layouts, segments, or eager lists without CI detecting them. Add checker rules and failing cases as the contract's closing section requires.</comment>
<file context>
@@ -84,6 +84,11 @@ There are exactly two ways out, and they mean different things.
+| Top-level Settings rows | `OmiSettingsGroup(style: OmiSettingsGroupStyle.outlined, header:)` of `OmiSettingsRow(leading: OmiSettingsIconTile(FaIcon(…)))`: labelled outlined cards on `OmiColors.groupedPage`, no hairlines | a bare glyph or a hand-built tile per row |
+| A page inside Settings | `OmiGroupedPage(title:, actions:, body:)`: circled back, centred title, `OmiColors.groupedPage`; under it every `OmiSettingsGroup` is outlined and every `OmiSectionHeader` the small label. Pages of destinations or choices (Device, Recording, Permissions, Language, …) lead rows with `OmiSettingsIconTile`; a page of values and toggles (Notifications & Display, a transcription provider's fields) uses plain rows. A custom block sits in an `OmiGroupedCard` | `Scaffold` + `AppBar` + a `surface1` card |
+| Settings type and row icons | Settings is set in Instrument Sans: `OmiGroupedPage` applies `OmiSettingsTypeface`, and a Settings page with its own `Scaffold` wraps it. A row keeps the app's own FontAwesome or Material icon, inside `OmiSettingsIconTile`, which sizes it and colours it (red on a destructive row) | the system font on one Settings page, an icon leading a Settings row outside its tile |
+| Two to four views of one list or chart (Today · Month · Year, All · Pending · Synced) | `OmiSegmentedControl(value:, segments:, onChanged:)`: full width, 44 pt segments, labels never wrap | a row of tinted chips or a hand-built toggle |
+| A long list on a Settings page (offline recordings) | rows built lazily, each in an `OmiGroupedSlice(first:, last:)` so a run reads as one outlined card, under a small label per day or source; a row's own action is a compact button or a labelled icon, and its text is time-sized so it stays on one line | one card per row, or a card that mounts every row |
| Search | `OmiSearchField(placeholder: l10n.searchConversations)` | a styled `TextField` per page |
</file context>
| ); | ||
|
|
||
| Widget label = Text(widget.label, style: textStyle, maxLines: 1, overflow: TextOverflow.ellipsis); | ||
| Widget label = widget.wrapLabel |
There was a problem hiding this comment.
P2: A wrapped label with width stays at visualHeight because fixedSize pins both dimensions, so large localized labels can be clipped. Keep the width fixed while allowing height to grow when wrapLabel is enabled.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/lib/ui/components/omi_button.dart, line 260:
<comment>A wrapped label with `width` stays at `visualHeight` because `fixedSize` pins both dimensions, so large localized labels can be clipped. Keep the width fixed while allowing height to grow when `wrapLabel` is enabled.</comment>
<file context>
@@ -239,7 +257,9 @@ class _OmiButtonState extends State<OmiButton> {
);
- Widget label = Text(widget.label, style: textStyle, maxLines: 1, overflow: TextOverflow.ellipsis);
+ Widget label = widget.wrapLabel
+ ? Text(widget.label, style: textStyle, textAlign: TextAlign.center)
+ : Text(widget.label, style: textStyle, maxLines: 1, overflow: TextOverflow.ellipsis);
</file context>
|
|
||
| /// Whether [context] is on a canvas screen. A plain lookup: the marker never changes, so callers | ||
| /// need no rebuild dependency on it. | ||
| static bool isOn(BuildContext context) => context.getInheritedWidgetOfExactType<OmiCanvas>() != null; |
There was a problem hiding this comment.
P2: OmiCanvas.isOn is false throughout Home, Tasks, and conversation page bodies; the only runtime wrappers are isolated grouped-page header controls. Wrap those screen bodies in OmiCanvas, or canvas-aware widgets will keep using the non-canvas palette.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/lib/ui/omi_canvas.dart, line 16:
<comment>`OmiCanvas.isOn` is false throughout Home, Tasks, and conversation page bodies; the only runtime wrappers are isolated grouped-page header controls. Wrap those screen bodies in `OmiCanvas`, or canvas-aware widgets will keep using the non-canvas palette.</comment>
<file context>
@@ -0,0 +1,26 @@
+
+ /// Whether [context] is on a canvas screen. A plain lookup: the marker never changes, so callers
+ /// need no rebuild dependency on it.
+ static bool isOn(BuildContext context) => context.getInheritedWidgetOfExactType<OmiCanvas>() != null;
+
+ /// The page colour under [context].
</file context>
| semanticLabel: 'Settings', | ||
| onTap: () {}, | ||
| icon: FaIcon(FontAwesomeIcons.gear, size: 16, color: OmiColors.textSecondary), | ||
| icon: OmiLineIcon(OmiLineGlyph.settings, size: 20, color: OmiColors.textSecondary), |
There was a problem hiding this comment.
P3: The capture audit now shows a different settings icon from HomePage._buildAppBar, so its Home screenshots no longer represent the real screen. Keep the audit icon in sync with the production header.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/integration_test/visual_audit/scenarios/capture.dart, line 212:
<comment>The capture audit now shows a different settings icon from `HomePage._buildAppBar`, so its Home screenshots no longer represent the real screen. Keep the audit icon in sync with the production header.</comment>
<file context>
@@ -210,7 +209,7 @@ class HomeFrame extends StatelessWidget {
semanticLabel: 'Settings',
onTap: () {},
- icon: FaIcon(FontAwesomeIcons.gear, size: 16, color: OmiColors.textSecondary),
+ icon: OmiLineIcon(OmiLineGlyph.settings, size: 20, color: OmiColors.textSecondary),
),
]),
</file context>
| /// with no device of its own (an older row, an unknown source) shows a conversation bubble. A caller | ||
| /// can pass an [icon] instead, and a recap's tile holds its day [emoji]. Decorative: the row names | ||
| /// what it is. | ||
| class DeviceTile extends StatelessWidget { |
There was a problem hiding this comment.
P3: DeviceTile has no application callers, so this 137-line widget never renders for users. Wire it into the conversation-row builder or defer it until a caller lands.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/lib/widgets/device_tile.dart, line 14:
<comment>`DeviceTile` has no application callers, so this 137-line widget never renders for users. Wire it into the conversation-row builder or defer it until a caller lands.</comment>
<file context>
@@ -0,0 +1,137 @@
+/// with no device of its own (an older row, an unknown source) shows a conversation bubble. A caller
+/// can pass an [icon] instead, and a recap's tile holds its day [emoji]. Decorative: the row names
+/// what it is.
+class DeviceTile extends StatelessWidget {
+ const DeviceTile(
+ {super.key, this.source, this.icon, this.emoji, this.status, this.faded = false, this.missing = false});
</file context>
|
Reviewed this head (part 7 of 9, stacked on #20342). The code side looks careful — some specific observations, then two things for a human maintainer. What reads well
For a maintainer
Merge order is explicitly #20342 → this, and this PR documents the one-line rebase needed against #20329, so I'm leaving sequencing and the interrupted-state behavior call for human maintainer review rather than taking a position on the product judgment. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
Git-on-my-level
left a comment
There was a problem hiding this comment.
Reviewed part 7 of the v2 cleaner UX series at f5ac2cf — static diff review. The work is careful and coherent; nothing blocking found. Notes below.
What looks good:
- app/lib/widgets/home_bottom_bar.dart — HomeAskOmiButton replaces the old HomePage._buildChatBar pill with one OmiGlass bar: the label opens chat to type, the trailing mic opens it already listening, and the mic keeps the bar's full height at the rounded end so near-misses still hit. Covered by the new home_ask_bar_test.dart, including the near-miss tap.
- app/lib/pages/home/widgets/battery_info_widget.dart — the record button rework switches from call-state (_callInProgress) to capture-ownership (_phoneOwnsCapture via liveCaptureSource), which is what fixes the button showing the wrong control while a phone recording is interrupted by a transcription reconnect. The paused/interrupted branches deserve a careful look once #20342 lands.
- app/lib/ui/components/omi_glass.dart, omi_line_icon.dart, omi_canvas.dart — the new primitives are well documented (including the compositing-cost note on blur), and OmiLineGlyph embeds its SVG path data inline, so no new icon dependency.
- app/lib/ui/components/omi_settings.dart + omi_grouped_page.dart + omi_segmented_control.dart — the Settings look (OmiGroupedScope, OmiTypeface, outlined groups) only restyles widgets under its scope, so existing screens keep their appearance.
- License hygiene: InstrumentSans-OFL.txt ships alongside the four TTFs and is registered in app/pubspec.yaml.
- Tests: omi_canvas_test.dart (206 lines) and the updated capture_home_ui_test.dart cover the new surfaces and the ownership fix.
Notes:
- Nearly all CI jobs are skipped on this PR (path filtering), so Dart Analyze & Tests did not run against this head — the new/updated widget tests are unverified by CI. A local flutter test of test/widgets/home_ask_bar_test.dart, test/widgets/ui/omi_canvas_test.dart and test/widgets/capture_home_ui_test.dart would confirm.
- The diff includes #20342's 21 foundation files until that PR merges (the description calls this out and links a 7-file own-change compare) — judging by that compare is the right lens.
- .github/scripts/dead_code/flutter.allowlist.json adds device_tile.dart with an explicit removal condition tied to #20328/#20717/#20718 landing; fine as a temporary allowlist entry.
- Several code comments attribute UX decisions to the maintainer by name and date (e.g. “David, 2026-10-03” in battery_info_widget.dart and home_bottom_bar.dart) — please confirm those rulings are accurate before merge.
This is part 7/9 of a stacked series behind #20342 and it reshapes Home's capture controls, so it needs a human product pass on the v2 direction and the merge order once #20342 lands — not requesting changes, as static review found nothing blocking.
Automated review on behalf of the maintainers — human sign-off required before merge.
by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.
|
Superseded by #20835. Closing; please follow that PR. |
|
Hey @Itaxh1 👋 Thank you so much for taking the time to contribute to Omi! We truly appreciate you putting in the effort to submit this pull request. After careful review, we've decided not to merge this particular PR. Please don't take this personally — we genuinely try to merge as many contributions as possible, but sometimes we have to make tough calls based on:
Before your next PR, please skim:
If this was declined for direction or taste, maintainers should cite an invariant ID or open a proposed one — ask if that citation is missing. Your contribution is still valuable to us, and we'd love to see you contribute again in the future! If you'd like feedback on how to improve this PR or want to discuss alternative approaches, please don't hesitate to reach out. Thank you for being part of the Omi community! |
TL;DR: Home's floating row becomes one glass set: an "Ask anything" bar with a round mic at its end, beside a glass record button of the same height. Behaviour stays as on main. The bar opens chat to type, and the mic opens it already listening. A tap on the record button starts or stops a phone recording; holding it or tapping its ⌄ badge opens the other ways to record. One fix: while a phone recording is interrupted (transcription reconnecting), the button keeps showing stop. Part 7 of 9 of the v2 cleaner UX; it needs #20342 first.
What changed and why
The bottom of Home had a grey "Ask Omi" pill with a filled accent mic, beside a bordered circle: two controls that didn't look like a pair.
HomeAskOmiButtoninhome_bottom_bar.dart, replacingHomePage._buildChatBar):OmiGlass, blurred) at the record button's height;askAnythingButton, new in all 49 locales);autoStartVoice);HomeRecordButton):liveCaptureSource == 'phone', recording, or paused), not only the recording state. On main, a phone recording interrupted while transcription reconnects showed the idle dot.HomeAskOmiButtoninstead of a copy of the old bar.Screenshots
Before is
main(4bdcc56d0d), after is this branch (with #20342 under it). Rendered byapp/scripts/visual_audit.sh(real widgets, flutter-tester, 390×844 at 2×, fixture data, light theme). The page behind the row is still main's here; it turns white in #20328.main)Product invariants affected
none
How it was verified
flutter analyze: no errors or warnings (the 89 infos are all onmain).dart format --line-length 120: clean.flutter test) on this branch: 4,670 passed, 14 skipped, 1 failed. The failure wastest/unit/voice_recorder_test.dart("close discards failed pending WAV only after explicit user removal"), which this PR doesn't touch: the test and the provider are identical tomain, and the file fails 1 run in 6 onmainitself. Run alone on this branch it passed 2 of 3 times, the same flake.python3 scripts/l10n.py check: OK.scripts/pr-preflightwith this body: passed.Tests
test/widgets/home_ask_bar_test.dart(new): "Ask anything" in 16 pt medium on one line, on the glass, with the voice glyph. The label opens typing, the mic opens voice, and a tap at the bar's rounded end still talks.test/widgets/capture_home_ui_test.dart:Failure class (fixes)
Failure-Class: none