Repository navigation
Conversation
f93b848 to
33a3cff
Compare
There was a problem hiding this comment.
12 issues found across 46 files
Confidence score: 3/5
- In
omi_button.dart,wrapLabelcan still overflow when a caller setswidth, becausefixedSizepins the height. Keep the width override but allow the height to grow. - In
omi_glass.dart, a tight parent size isn’t passed through to the rim and child, even though the fill and shadow cover the full box. Set the stack fit toStackFit.passthrough. - In
conversation_list_item.dart, the device glyph is excluded from semantics, so assistive technology can’t identify the device source. Expose the localized source name with aSemanticslabel. - In
list_row_retry_button.dart, the retry spinner leaves the button without an accessible name because its label is removed from the semantics tree. SetalwaysIncludeSemantics: trueon the label.
You’re at about 96% 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 PR changes conversation rows and the detail page in user-visible ways, so `kind: none` incorrectly suppresses its release note. Replace it with a concise user-facing `change` sentence.</violation>
</file>
<file name="app/lib/pages/conversations/widgets/list_row_retry_button.dart">
<violation number="1" location="app/lib/pages/conversations/widgets/list_row_retry_button.dart:30">
P2: While retrying, this zero-opacity label is removed from the semantics tree and the unlabeled spinner leaves the button without an accessible name. Set `alwaysIncludeSemantics: true` so assistive technology continues to announce the retry action.</violation>
</file>
<file name=".github/scripts/dead_code/flutter.allowlist.json">
<violation number="1" location=".github/scripts/dead_code/flutter.allowlist.json:56">
P3: `DeviceTile` is already reachable, so this entry adds a stale-allowlist warning to every Flutter dead-code check. Remove the entry.</violation>
</file>
<file name="app/lib/ui/components/omi_line_icon.dart">
<violation number="1" location="app/lib/ui/components/omi_line_icon.dart:67">
P3: Nothing in the repository instantiates `OmiLineIcon`, so this new icon set never appears in the UI. Wire it into the intended toolbar and Ask bar controls, or remove the unused implementation.</violation>
</file>
<file name="app/lib/pages/conversations/widgets/speaker_tag_prompt_card.dart">
<violation number="1" location="app/lib/pages/conversations/widgets/speaker_tag_prompt_card.dart:54">
P2: This card is rendered on Home without an `OmiCanvas` ancestor, so `cardOf(context)` still returns `surface1` and the intended canvas-card color never appears. Provide the canvas marker around the Home/Conversations page.</violation>
</file>
<file name="app/lib/ui/omi_tokens.dart">
<violation number="1" location="app/lib/ui/omi_tokens.dart:203">
P3: Light-mode glass controls render a uniform 9% border, not the top-lit fade described by `OmiGlassRim`, because both gradient stops are identical. Give `glassRim` a lower alpha.</violation>
</file>
<file name="app/test/widgets/home_flat_rows_test.dart">
<violation number="1" location="app/test/widgets/home_flat_rows_test.dart:107">
P2: This case never asserts the capture-gap time range despite naming it as part of the row contract, so removing that line would still pass. Assert that the rendered start–end range is present.</violation>
<violation number="2" location="app/test/widgets/home_flat_rows_test.dart:108">
P2: This only rules out `InkWell`; a `GestureDetector` with `onTap` still passes, so the test does not protect the stated non-interactive-row contract. Check that the row exposes no tap action.</violation>
</file>
<file name="app/lib/ui/components/omi_button.dart">
<violation number="1" location="app/lib/ui/components/omi_button.dart:260">
P2: `wrapLabel` cannot grow the button when callers use the supported `width` override: `fixedSize` still pins its height to `visualHeight`, so multiline labels overflow. Preserve the fixed width while allowing height to grow in this mode.</violation>
</file>
<file name="app/lib/ui/components/omi_grouped_page.dart">
<violation number="1" location="app/lib/ui/components/omi_grouped_page.dart:19">
P3: `OmiGroupedPage` has no app call sites, so this new scaffold never appears and its grouped-page behavior reaches no screen. Wire it into the intended Settings routes or defer adding it until they are migrated.</violation>
</file>
<file name="app/lib/pages/conversations/widgets/conversation_list_item.dart">
<violation number="1" location="app/lib/pages/conversations/widgets/conversation_list_item.dart:485">
P2: The new device attribution is invisible to assistive technology because `DeviceTile` excludes its glyph from semantics; expose the localized source name with a `Semantics` label here.</violation>
</file>
<file name="app/lib/ui/components/omi_glass.dart">
<violation number="1" location="app/lib/ui/components/omi_glass.dart:68">
P2: A tight parent size is lost for the non-positioned rim and child because `Stack` defaults to `StackFit.loose`, while the fill and shadow still cover the full box. Pass constraints through with `fit: StackFit.passthrough` so the rim and hit target match the glass bounds.</violation>
</file>
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
| @@ -0,0 +1,3 @@ | |||
| { | |||
| "kind": "none" | |||
There was a problem hiding this comment.
P2: This PR changes conversation rows and the detail page in user-visible ways, so kind: none incorrectly suppresses its release note. Replace it with a concise user-facing change sentence.
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 PR changes conversation rows and the detail page in user-visible ways, so `kind: none` incorrectly suppresses its release note. Replace it with a concise user-facing `change` sentence.</comment>
<file context>
@@ -0,0 +1,3 @@
+{
+ "kind": "none"
+}
</file context>
| "kind": "none" | |
| "change": "Conversation rows now show their device, with retry actions inline." |
| child: Stack( | ||
| alignment: Alignment.center, | ||
| children: [ | ||
| Opacity(opacity: busy ? 0 : 1, child: Text(label)), |
There was a problem hiding this comment.
P2: While retrying, this zero-opacity label is removed from the semantics tree and the unlabeled spinner leaves the button without an accessible name. Set alwaysIncludeSemantics: true so assistive technology continues to announce the retry action.
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/conversations/widgets/list_row_retry_button.dart, line 30:
<comment>While retrying, this zero-opacity label is removed from the semantics tree and the unlabeled spinner leaves the button without an accessible name. Set `alwaysIncludeSemantics: true` so assistive technology continues to announce the retry action.</comment>
<file context>
@@ -0,0 +1,37 @@
+ child: Stack(
+ alignment: Alignment.center,
+ children: [
+ Opacity(opacity: busy ? 0 : 1, child: Text(label)),
+ if (busy) const OmiSpinner(size: OmiSpinnerSize.small),
+ ],
</file context>
| Opacity(opacity: busy ? 0 : 1, child: Text(label)), | |
| Opacity(opacity: busy ? 0 : 1, alwaysIncludeSemantics: true, child: Text(label)), |
| key: const Key('speaker_tag_prompt_card'), | ||
| decoration: BoxDecoration( | ||
| color: OmiColors.surface1, | ||
| color: OmiCanvas.cardOf(context), |
There was a problem hiding this comment.
P2: This card is rendered on Home without an OmiCanvas ancestor, so cardOf(context) still returns surface1 and the intended canvas-card color never appears. Provide the canvas marker around the Home/Conversations page.
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/conversations/widgets/speaker_tag_prompt_card.dart, line 54:
<comment>This card is rendered on Home without an `OmiCanvas` ancestor, so `cardOf(context)` still returns `surface1` and the intended canvas-card color never appears. Provide the canvas marker around the Home/Conversations page.</comment>
<file context>
@@ -51,7 +51,7 @@ class _SpeakerTagPromptCardState extends State<SpeakerTagPromptCard> {
key: const Key('speaker_tag_prompt_card'),
decoration: BoxDecoration(
- color: OmiColors.surface1,
+ color: OmiCanvas.cardOf(context),
borderRadius: const BorderRadius.all(Radius.circular(OmiRadius.xl)),
),
</file context>
|
|
||
| expect(tile(tester).missing, isTrue); | ||
| expect(tile(tester).icon, Icons.event_busy); | ||
| expect(find.text('Design review with Priya'), findsOneWidget); |
There was a problem hiding this comment.
P2: This case never asserts the capture-gap time range despite naming it as part of the row contract, so removing that line would still pass. Assert that the rendered start–end range is present.
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/test/widgets/home_flat_rows_test.dart, line 107:
<comment>This case never asserts the capture-gap time range despite naming it as part of the row contract, so removing that line would still pass. Assert that the rendered start–end range is present.</comment>
<file context>
@@ -0,0 +1,110 @@
+
+ expect(tile(tester).missing, isTrue);
+ expect(tile(tester).icon, Icons.event_busy);
+ expect(find.text('Design review with Priya'), findsOneWidget);
+ expect(find.byType(InkWell), findsNothing);
+ });
</file context>
| expect(tile(tester).missing, isTrue); | ||
| expect(tile(tester).icon, Icons.event_busy); | ||
| expect(find.text('Design review with Priya'), findsOneWidget); | ||
| expect(find.byType(InkWell), findsNothing); |
There was a problem hiding this comment.
P2: This only rules out InkWell; a GestureDetector with onTap still passes, so the test does not protect the stated non-interactive-row contract. Check that the row exposes no tap action.
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/test/widgets/home_flat_rows_test.dart, line 108:
<comment>This only rules out `InkWell`; a `GestureDetector` with `onTap` still passes, so the test does not protect the stated non-interactive-row contract. Check that the row exposes no tap action.</comment>
<file context>
@@ -0,0 +1,110 @@
+ expect(tile(tester).missing, isTrue);
+ expect(tile(tester).icon, Icons.event_busy);
+ expect(find.text('Design review with Priya'), findsOneWidget);
+ expect(find.byType(InkWell), findsNothing);
+ });
+}
</file context>
| // blurred backdrop and its fill are clipped to the shape; the child sits on top, unclipped. | ||
| return DecoratedBox( | ||
| decoration: ShapeDecoration(shape: shape, shadows: floatShadows), | ||
| child: Stack( |
There was a problem hiding this comment.
P2: A tight parent size is lost for the non-positioned rim and child because Stack defaults to StackFit.loose, while the fill and shadow still cover the full box. Pass constraints through with fit: StackFit.passthrough so the rim and hit target match the glass bounds.
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_glass.dart, line 68:
<comment>A tight parent size is lost for the non-positioned rim and child because `Stack` defaults to `StackFit.loose`, while the fill and shadow still cover the full box. Pass constraints through with `fit: StackFit.passthrough` so the rim and hit target match the glass bounds.</comment>
<file context>
@@ -0,0 +1,126 @@
+ // blurred backdrop and its fill are clipped to the shape; the child sits on top, unclipped.
+ return DecoratedBox(
+ decoration: ShapeDecoration(shape: shape, shadows: floatShadows),
+ child: Stack(
+ clipBehavior: Clip.none,
+ children: [
</file context>
| child: Stack( | |
| child: Stack( | |
| fit: StackFit.passthrough, |
| "reason": "AppsPage left the shell (the catalog is Settings > Integrations), but protected spine oracles (app/test/spine/b1_surface_contract.dart) import it; remove with the B1 contract revision" | ||
| }, | ||
| { | ||
| "path": "app/lib/widgets/device_tile.dart", |
There was a problem hiding this comment.
P3: DeviceTile is already reachable, so this entry adds a stale-allowlist warning to every Flutter dead-code check. Remove the entry.
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 .github/scripts/dead_code/flutter.allowlist.json, line 56:
<comment>`DeviceTile` is already reachable, so this entry adds a stale-allowlist warning to every Flutter dead-code check. Remove the entry.</comment>
<file context>
@@ -51,6 +51,10 @@
"reason": "AppsPage left the shell (the catalog is Settings > Integrations), but protected spine oracles (app/test/spine/b1_surface_contract.dart) import it; remove with the B1 contract revision"
+ },
+ {
+ "path": "app/lib/widgets/device_tile.dart",
+ "reason": "v2 cleaner UX foundation (#20342): the device tile that #20328, #20717 and #20718 put on Home, conversation and recap rows; reachable once the first of them lands, then remove this entry"
}
</file context>
|
|
||
| /// One [OmiLineGlyph], drawn in [color] or the ambient [IconTheme] colour at [size] (default the | ||
| /// icon theme's size). Decorative: the row it sits in carries the label. | ||
| class OmiLineIcon extends StatelessWidget { |
There was a problem hiding this comment.
P3: Nothing in the repository instantiates OmiLineIcon, so this new icon set never appears in the UI. Wire it into the intended toolbar and Ask bar controls, or remove the unused implementation.
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_line_icon.dart, line 67:
<comment>Nothing in the repository instantiates `OmiLineIcon`, so this new icon set never appears in the UI. Wire it into the intended toolbar and Ask bar controls, or remove the unused implementation.</comment>
<file context>
@@ -0,0 +1,88 @@
+
+/// One [OmiLineGlyph], drawn in [color] or the ambient [IconTheme] colour at [size] (default the
+/// icon theme's size). Decorative: the row it sits in carries the label.
+class OmiLineIcon extends StatelessWidget {
+ const OmiLineIcon(this.glyph, {super.key, this.size, this.color});
+
</file context>
| // Ask bar and record button are frosted white with a white edge, a faint outline and a soft shadow. | ||
| glass: Color(0x8CFFFFFF), | ||
| glassEdge: Color(0x17000000), | ||
| glassRim: Color(0x17000000), |
There was a problem hiding this comment.
P3: Light-mode glass controls render a uniform 9% border, not the top-lit fade described by OmiGlassRim, because both gradient stops are identical. Give glassRim a lower alpha.
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_tokens.dart, line 203:
<comment>Light-mode glass controls render a uniform 9% border, not the top-lit fade described by `OmiGlassRim`, because both gradient stops are identical. Give `glassRim` a lower alpha.</comment>
<file context>
@@ -109,6 +192,23 @@ class OmiPalette {
+ // Ask bar and record button are frosted white with a white edge, a faint outline and a soft shadow.
+ glass: Color(0x8CFFFFFF),
+ glassEdge: Color(0x17000000),
+ glassRim: Color(0x17000000),
+ glassShadow: Color(0x0F000000),
+ floatGlass: Color(0x9EFFFFFF),
</file context>
| glassRim: Color(0x17000000), | |
| glassRim: Color(0x0F000000), |
| /// body: ListView(padding: OmiGroupedPage.padding, children: [OmiSettingsGroup(children: rows)]), | ||
| /// ) | ||
| /// ``` | ||
| class OmiGroupedPage extends StatelessWidget { |
There was a problem hiding this comment.
P3: OmiGroupedPage has no app call sites, so this new scaffold never appears and its grouped-page behavior reaches no screen. Wire it into the intended Settings routes or defer adding it until they are migrated.
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_grouped_page.dart, line 19:
<comment>`OmiGroupedPage` has no app call sites, so this new scaffold never appears and its grouped-page behavior reaches no screen. Wire it into the intended Settings routes or defer adding it until they are migrated.</comment>
<file context>
@@ -0,0 +1,98 @@
+/// body: ListView(padding: OmiGroupedPage.padding, children: [OmiSettingsGroup(children: rows)]),
+/// )
+/// ```
+class OmiGroupedPage extends StatelessWidget {
+ const OmiGroupedPage({
+ super.key,
</file context>
|
Thanks @Itaxh1 — reviewed this statically as part 8/9 of the v2 cleaner UX series (needs #20342 first). The work is cohesive: flat conversation rows with a device tile, inline retry, and the design foundation they sit on. No blockers found, but merge sequencing and design sign-off for the series belong to a human maintainer, so leaving this for maintainer review rather than approving. What I checked, file by file (the PR's own surface; ~21 of the 44 listed files belong to the stacked base #20342):
Two things to verify before merge:
Merge order for the 9-part sequence and final design sign-off are with the maintainers. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
|
Reviewed this head (part 8 of 9, stacked on #20342). The implementation is careful and well-documented — a few observations, then two things to settle before merge. What looks good
Two things before merge
No security, permissions, or data-handling surfaces touched; the Positive signal overall — leaving the series direction and merge-order decision with a human maintainer, with the CI-skipped tests as the one concrete thing to verify pre-merge. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
The list ran 5% above the type scale and each tile row had 14 pt above and below, which read as oversized next to the rest of Home. The list text is now 2.5% above the type scale and tile rows have 10 pt of air, so a row is 60 pt like the design.
The time and folder kept one line, but who spoke and the recordings chip always started a second row, so most pages showed two rows of chips under the title. All the chips now share one line: a long folder name or list of people is cut short past 45% of the line, and if the line still does not fit (large text on a small phone) every chip shrinks together, as the time and folder already did.
|
Follow-up on the two commits pushed since the earlier automated review (1d1cc20, c873a02) — the delta is clean and raises no new concerns.
Still outstanding from the earlier review, unchanged by these commits: the Dart/Android test suites are skipped in CI on this head, so the new chip-line tests have no CI signal until the rebase onto #20342; and the merge order for the 9-part series plus final design sign-off remain with a human maintainer. by AI on behalf of David |
kodjima33
left a comment
There was a problem hiding this comment.
feat(app) v2 cleaner UX part 8/9 - mobile feature; normalizing from prior 'ping_nik' to 'approve' for consistency with rest of the v2 UX series (parts 1-6 already approve-only; this is mobile/flutter area, not desktop, so ping_nik was inconsistent)
kodjima33
left a comment
There was a problem hiding this comment.
Itaxh1 v2 cleaner UX 8/9 -- feature, approve-only
kodjima33
left a comment
There was a problem hiding this comment.
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
|
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: Conversation rows lose their cards. Each row is flat on the page and shows the device it was recorded on, the title, and the time; the length moves to the conversation page. List text is 2.5% larger, and each row is 60 pt tall. The conversation page's chips sit on one line. A processing row has the same layout and keeps "Try again" at the row's end, level with "Processing", with the loader in its place, so nothing jumps; "Summary failed · Retry" works the same way. The conversation page gets the white canvas, one-line chips for when it started and its folder, and a glass Ask Omi bar. Part 8 of 9 of the v2 cleaner UX; it needs #20342 first.
What changed and why
Conversation rows (
conversation_list_item.dart):DeviceTilereplaces the emoji, and the title follows;kConversationListTextScale).Search snippets, selection, lock, multi-device sources and swipe-to-delete are unchanged.
Retry at the row's end (
list_row_retry_button.dart, new): "Try again" on a processing row that takes too long, and "Retry" on a failed summary, sit at the right end, level with the line they retry. While it runs, a spinner takes the label's place at the label's width, and the button absorbs the tap so the row doesn't open.The other rows share the layout:
Day labels: small, grey and semibold.
The conversation page (
conversation_detail/page.dart):Smaller pieces: the list skeleton, the capture recovery banner, the recording row and the speaker prompt card use the canvas card colour.
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). Here the rows sit on main's page colour; Home's page turns white in #20328. The fixture conversation has no folder, so the conversation page looks the same in both and isn't shown.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,676 passed, 14 skipped, 0 failed.scripts/pr-preflightwith this body: passed.Tests
test/widgets/home_flat_rows_test.dart(new):test/widgets/conversation_detail_header_chips_test.dart(new): when, folder and who spoke stay on one line, also with large text on a small phone (this fails on the oldWrap); nothing shrinks when there is room; a long folder name is cut short instead of pushing the time off the line.test/widgets/conversation_swipe_delete_test.dart: the long swipe is half the row's width instead of a fixed 340 px, because rows are wider and the threshold is 40% of the row.test/pages/conversations/day_conversations_page_test.dart: taller rows, so the test scrolls a row into view before tapping it.test/widgets/conversation_locked_preview_test.dart: the long-press lands on the row's tile, because at 60 pt the locked run's Upgrade button covers the title.Failure class (fixes)
Failure-Class: none