Repository navigation
Conversation
There was a problem hiding this comment.
1 issue found across 260 files
Confidence score: 5/5
KnowledgeGraphApiinapp/lib/backend/http/api/knowledge_graph_api.dartstill has the stale-field pattern, so its base URL may not reflect later environment changes. Apply the same fix there if that API needs to track changes.
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/lib/backend/http/api/dev_api.dart">
<violation number="1" location="app/lib/backend/http/api/dev_api.dart:9">
P3: The stale-field pattern this change fixes here still exists in `KnowledgeGraphApi` (`app/lib/backend/http/api/knowledge_graph_api.dart:10`): `static final String _baseUrl = '${Env.apiBaseUrl}v1/knowledge-graph';` is evaluated once on first use, so `rebuildKnowledgeGraph()` keeps targeting the first-evaluated URL after `Env.overrideApiBaseUrl()`. `getKnowledgeGraph()` in the same class already interpolates `Env.apiBaseUrl` per call, so the behavior is inconsistent between the two methods. Convert `KnowledgeGraphApi._baseUrl` to the same `static String get` form for consistency with `DevApi`/`McpApi`.</violation>
</file>
Note: This PR contains a large number of files. cubic selects up to 200 of the highest-priority eligible files for this review, so some files may not have been reviewed.
Re-trigger cubic
kodjima33
left a comment
There was a problem hiding this comment.
Feature (Settings/Tasks/Home redesign combined) — all 262 files under app/ (Flutter mobile), no desktop/ paths. Mobile area, not a bug fix -> approve-only per policy.
|
Reviewed on the current head (cbaf94c). This consolidation of #20331 + #20329 + #20328 plus the shared-design commit is coherent as one unit — the whole change is the design unification — so I reviewed it as a whole rather than asking for a split. What I verified in the diff:
Three things I'd want maintainer eyes on before merge (product calls, not bugs):
Also noting the mobile suites (Dart Analyze & Tests, Android/iOS compile) show as skipped on this PR, so the new task-page/completed-section tests haven't run in CI on this head — Formatting, Hygiene, Mobile Release Eligibility and the backend merge gate do pass. Product-direction sign-off is needed for the three behavior changes above (especially hiding paywalled tasks); @kodjima33 approved an earlier commit, but the commits after it — the current head — haven't had a human pass. Leaving for human maintainer review before merge. This is AI-generated maintainer feedback on behalf of the Omi maintainers. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
|
Reviewed the combined branch on head
Two non-blocking observations:
What's left for a maintainer before merge:
Thanks for the unusually thorough branch — the merge-order verification and per-branch review fixes make this easy to reason about despite its size. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
cbaf94c to
75c6fb9
Compare
… Settings components
75c6fb9 to
01006a0
Compare
There was a problem hiding this comment.
7 issues found across 27 files
Confidence score: 3/5
- In
omi_button.dart,wrapLabelstill gets a fixed height whenwidthis set, so long localized labels can overflow instead of wrapping. Let the button grow vertically in this combination. - In
omi_glass.dart, the blur variant’s looseStackconstraints can shrink children that expect the parent’s tight size, leaving the content smaller than the glass. Preserve the parent’s constraints in the blur variant. - In
omi_settings.dart,OmiTypefacechanges only Cupertino’s body text style, so buttons, navigation titles, pickers, and tab labels can use a different font. Apply the family across the Cupertino text theme. - In
omi_segmented_control.dart, the selected thumb has very low contrast against the track in light mode, making the selected segment hard to distinguish. Increase the contrast between the selected and unselected states.
You’re at about 91% 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/lib/ui/components/omi_sheet.dart">
<violation number="1" location="app/lib/ui/components/omi_sheet.dart:38">
P3: The new `surface` parameter on `showOmiSheet` is undocumented, and the doc comment above it still states unconditionally that "The shell: [OmiColors.surface1]". Add a sentence noting callers can pass `surface` to keep a sheet on a different colour (e.g. `OmiColors.surface0`) while still using the standard title/close header, mirroring the explanation `showOmiSurfaceSheet` already carries.</violation>
</file>
<file name="app/lib/ui/components/omi_button.dart">
<violation number="1" location="app/lib/ui/components/omi_button.dart:260">
P2: When `wrapLabel` is combined with the existing `width` escape hatch, `fixedSize` still pins the button height to `visualHeight`, so long localized labels overflow instead of growing as this option promises. Preserve the requested width with min/max constraints and allow an unbounded height whenever `wrapLabel` is true.</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">
P2: OmiLineIcon has no widget test: the only test file added in this PR is omi_canvas_test.dart, and neither it nor omi_components_test.dart references OmiLineIcon or OmiLineGlyph. The 15 glyphs are hand-written SVG strings that flutter_svg only parses at build/paint time, so a malformed path compiles and ships silently. Add a smoke test that pumps every OmiLineGlyph, especially since the PR description claims widget tests for the new components.</violation>
</file>
<file name="app/lib/ui/ui.dart">
<violation number="1" location="app/lib/ui/ui.dart:46">
P3: The new exports were appended after `omi_search_field.dart`, so `omi_grouped_page.dart` (g) and `omi_line_icon.dart` (l) break the alphabetical order this barrel keeps. Move `omi_grouped_page.dart` next to `omi_glass.dart` and `omi_line_icon.dart` next to `omi_icon_button.dart`.</violation>
</file>
<file name="app/lib/ui/components/omi_glass.dart">
<violation number="1" location="app/lib/ui/components/omi_glass.dart:68">
P2: The blur variant can change the child's layout: the default loose `Stack` constraints shrink children that rely on the parent's tight size, leaving the rim/content smaller than the blurred glass. Use `StackFit.passthrough` so the blur wrapper preserves the non-blur layout contract.</violation>
</file>
<file name="app/lib/ui/components/omi_segmented_control.dart">
<violation number="1" location="app/lib/ui/components/omi_segmented_control.dart:26">
P2: In light mode the selected thumb is #FFFFFF on the #FAF8F4 iconTile track — 1.06:1 contrast — so the chosen segment is visually indistinguishable from the unselected ones (dark mode is only 1.53:1, #3A3A3C on #1B1A17). CupertinoSlidingSegmentedControl paints the thumb behind the child and keeps all labels the same color, so this contrast is the entire selection affordance, contradicting the dartdoc's claim that the thumb 'stands out'. No page uses this yet, but all nine follow-up redesigns will inherit the invisible selected state. Pick a track/thumb pair with real contrast, or distinguish the selected label (color/weight) instead.</violation>
</file>
<file name="app/lib/ui/components/omi_settings.dart">
<violation number="1" location="app/lib/ui/components/omi_settings.dart:111">
P2: `OmiTypeface` changes only Cupertino's body `textStyle`, so iOS buttons, navigation titles, pickers, and tab labels do not consistently use Instrument Sans. Apply the family to every Cupertino text-theme style when constructing the override.</violation>
</file>
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
| ); | ||
|
|
||
| Widget label = Text(widget.label, style: textStyle, maxLines: 1, overflow: TextOverflow.ellipsis); | ||
| Widget label = widget.wrapLabel |
There was a problem hiding this comment.
P2: When wrapLabel is combined with the existing width escape hatch, fixedSize still pins the button height to visualHeight, so long localized labels overflow instead of growing as this option promises. Preserve the requested width with min/max constraints and allow an unbounded height whenever wrapLabel is true.
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>When `wrapLabel` is combined with the existing `width` escape hatch, `fixedSize` still pins the button height to `visualHeight`, so long localized labels overflow instead of growing as this option promises. Preserve the requested width with min/max constraints and allow an unbounded height whenever `wrapLabel` is true.</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>
|
|
||
| /// 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.
P2: OmiLineIcon has no widget test: the only test file added in this PR is omi_canvas_test.dart, and neither it nor omi_components_test.dart references OmiLineIcon or OmiLineGlyph. The 15 glyphs are hand-written SVG strings that flutter_svg only parses at build/paint time, so a malformed path compiles and ships silently. Add a smoke test that pumps every OmiLineGlyph, especially since the PR description claims widget tests for the new components.
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>OmiLineIcon has no widget test: the only test file added in this PR is omi_canvas_test.dart, and neither it nor omi_components_test.dart references OmiLineIcon or OmiLineGlyph. The 15 glyphs are hand-written SVG strings that flutter_svg only parses at build/paint time, so a malformed path compiles and ships silently. Add a smoke test that pumps every OmiLineGlyph, especially since the PR description claims widget tests for the new components.</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>
| // 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: The blur variant can change the child's layout: the default loose Stack constraints shrink children that rely on the parent's tight size, leaving the rim/content smaller than the blurred glass. Use StackFit.passthrough so the blur wrapper preserves the non-blur layout contract.
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>The blur variant can change the child's layout: the default loose `Stack` constraints shrink children that rely on the parent's tight size, leaving the rim/content smaller than the blurred glass. Use `StackFit.passthrough` so the blur wrapper preserves the non-blur layout contract.</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, |
| child: CupertinoSlidingSegmentedControl<T>( | ||
| groupValue: value, | ||
| backgroundColor: OmiColors.iconTile, | ||
| thumbColor: OmiColors.active == OmiPalette.light ? OmiColors.groupedCard : OmiColors.surface3, |
There was a problem hiding this comment.
P2: In light mode the selected thumb is #FFFFFF on the #FAF8F4 iconTile track — 1.06:1 contrast — so the chosen segment is visually indistinguishable from the unselected ones (dark mode is only 1.53:1, #3A3A3C on #1B1A17). CupertinoSlidingSegmentedControl paints the thumb behind the child and keeps all labels the same color, so this contrast is the entire selection affordance, contradicting the dartdoc's claim that the thumb 'stands out'. No page uses this yet, but all nine follow-up redesigns will inherit the invisible selected state. Pick a track/thumb pair with real contrast, or distinguish the selected label (color/weight) instead.
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_segmented_control.dart, line 26:
<comment>In light mode the selected thumb is #FFFFFF on the #FAF8F4 iconTile track — 1.06:1 contrast — so the chosen segment is visually indistinguishable from the unselected ones (dark mode is only 1.53:1, #3A3A3C on #1B1A17). CupertinoSlidingSegmentedControl paints the thumb behind the child and keeps all labels the same color, so this contrast is the entire selection affordance, contradicting the dartdoc's claim that the thumb 'stands out'. No page uses this yet, but all nine follow-up redesigns will inherit the invisible selected state. Pick a track/thumb pair with real contrast, or distinguish the selected label (color/weight) instead.</comment>
<file context>
@@ -0,0 +1,47 @@
+ child: CupertinoSlidingSegmentedControl<T>(
+ groupValue: value,
+ backgroundColor: OmiColors.iconTile,
+ thumbColor: OmiColors.active == OmiPalette.light ? OmiColors.groupedCard : OmiColors.surface3,
+ onValueChanged: (next) {
+ if (next != null) onChanged(next);
</file context>
| textTheme: theme.textTheme.apply(fontFamily: family), | ||
| primaryTextTheme: theme.primaryTextTheme.apply(fontFamily: family), | ||
| cupertinoOverrideTheme: cupertino.copyWith( | ||
| textTheme: CupertinoTheme.of(context).textTheme.copyWith( |
There was a problem hiding this comment.
P2: OmiTypeface changes only Cupertino's body textStyle, so iOS buttons, navigation titles, pickers, and tab labels do not consistently use Instrument Sans. Apply the family to every Cupertino text-theme style when constructing the override.
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_settings.dart, line 111:
<comment>`OmiTypeface` changes only Cupertino's body `textStyle`, so iOS buttons, navigation titles, pickers, and tab labels do not consistently use Instrument Sans. Apply the family to every Cupertino text-theme style when constructing the override.</comment>
<file context>
@@ -72,7 +77,138 @@ class OmiSectionHeader extends StatelessWidget {
+ textTheme: theme.textTheme.apply(fontFamily: family),
+ primaryTextTheme: theme.primaryTextTheme.apply(fontFamily: family),
+ cupertinoOverrideTheme: cupertino.copyWith(
+ textTheme: CupertinoTheme.of(context).textTheme.copyWith(
+ textStyle: CupertinoTheme.of(context).textTheme.textStyle.copyWith(fontFamily: family),
+ ),
</file context>
| bool useRootNavigator = false, | ||
| EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: OmiSpacing.md), | ||
| RouteSettings? routeSettings, | ||
| Color Function()? surface, |
There was a problem hiding this comment.
P3: The new surface parameter on showOmiSheet is undocumented, and the doc comment above it still states unconditionally that "The shell: [OmiColors.surface1]". Add a sentence noting callers can pass surface to keep a sheet on a different colour (e.g. OmiColors.surface0) while still using the standard title/close header, mirroring the explanation showOmiSurfaceSheet already carries.
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_sheet.dart, line 38:
<comment>The new `surface` parameter on `showOmiSheet` is undocumented, and the doc comment above it still states unconditionally that "The shell: [OmiColors.surface1]". Add a sentence noting callers can pass `surface` to keep a sheet on a different colour (e.g. `OmiColors.surface0`) while still using the standard title/close header, mirroring the explanation `showOmiSurfaceSheet` already carries.</comment>
<file context>
@@ -35,9 +35,11 @@ Future<T?> showOmiSheet<T>({
bool useRootNavigator = false,
EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: OmiSpacing.md),
RouteSettings? routeSettings,
+ Color Function()? surface,
}) {
return showOmiSurfaceSheet<T>(
</file context>
| export 'components/omi_permission_row.dart'; | ||
| export 'components/omi_row_menu.dart'; | ||
| export 'components/omi_search_field.dart'; | ||
| export 'components/omi_grouped_page.dart'; |
There was a problem hiding this comment.
P3: The new exports were appended after omi_search_field.dart, so omi_grouped_page.dart (g) and omi_line_icon.dart (l) break the alphabetical order this barrel keeps. Move omi_grouped_page.dart next to omi_glass.dart and omi_line_icon.dart next to omi_icon_button.dart.
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/ui.dart, line 46:
<comment>The new exports were appended after `omi_search_field.dart`, so `omi_grouped_page.dart` (g) and `omi_line_icon.dart` (l) break the alphabetical order this barrel keeps. Move `omi_grouped_page.dart` next to `omi_glass.dart` and `omi_line_icon.dart` next to `omi_icon_button.dart`.</comment>
<file context>
@@ -42,6 +43,9 @@ export 'components/omi_partial_notice.dart';
export 'components/omi_permission_row.dart';
export 'components/omi_row_menu.dart';
export 'components/omi_search_field.dart';
+export 'components/omi_grouped_page.dart';
+export 'components/omi_segmented_control.dart';
+export 'components/omi_line_icon.dart';
</file context>
|
Reviewed the design foundation in an isolated worktree (static review - no Flutter toolchain on this box, so I did not execute the new tests). The no-visible-change claim checks out where it matters: OmiCanvas and OmiGroupedScope are opt-in InheritedWidget markers, and I traced each modified shared component back to its old value off-canvas/off-scope - omi_search_field.dart falls back to surface1 via OmiCanvas.cardOf, omi_locked_preview.dart keeps its surface1 veil, header_circle_button.dart keeps the surface0 badge ring and the surface1 default fill, and omi_icon_button.dart keeps the surface1 circle. One small exception: omi_settings.dart narrows the OmiSettingsRow value maxWidth from 60% to 50% of the row, which does change ellipsize behavior on existing Settings pages (the doc comment says this is deliberate, for "Hardware Revision" staying on one line). Worth a sentence in the PR body since the claim is "pixel for pixel". Other observations, sampling the most significant files:
Quality of the docs (ux-contract.md rows, doc comments) is genuinely good, and the 9-PR split makes each piece independently reviewable without hiding behavior in churn. Leaving the merge decision to a human maintainer: this PR fixes the visual vocabulary the eight follow-up PRs build on, and its tests need one verified CI run on the current head. Automated maintainer feedback on behalf of the Omi maintainers. AI-generated; human review pending. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
kodjima33
left a comment
There was a problem hiding this comment.
Mobile feature (v2 UX 1/9, design foundation, no visible change). Approve-only per area rule; mergeStateStatus UNKNOWN so not merged.
kodjima33
left a comment
There was a problem hiding this comment.
Itaxh1 v2 cleaner UX 1/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: The v2 cleaner UX is now 9 small PRs instead of one large one, and this is the first: the shared design pieces the other 8 build on (Instrument Sans, the canvas and glass colours,
OmiGroupedPage, outlined Settings groups, icon tiles,DeviceTile). On its own it changes nothing on screen: main's pages render pixel for pixel the same with it (screenshots below). Merge this one first. The other 8 each need only this one and merge in any order.The 9 PRs
Merging
home/page.dart, so whichever lands second needs a one-line rebase. I'll do that rebase.main. These PRs keepmain's text.main(f58371750d), checked withgit merge-tree, and each passes the full app suite on its own (numbers in each PR).What changed and why
The new design needed a few shared pieces before any screen could use them. This PR adds them and touches no page.
app/assets/fonts/).OmiTypefacesets a screen in it.OmiSettingsTypefacealso makes Settings lists 10% smaller.OmiColors): grouped page, card and border; icon tile; canvas page and card; canvas blend; glass and floating glass; device tile. The light values are new. The dark values equal today's dark surfaces, so dark mode doesn't change.OmiCanvasmarks a screen drawn on the canvas (a white page in light mode); widgets readOmiCanvas.pageOf/cardOf.OmiGlasspaints a translucent fill and a rim, with a blur only for controls that float over a list.OmiGroupedPageis a circled back button, a centred title and the grouped page colour. Inside it (OmiGroupedScope),OmiSettingsGroupdefaults to the outlined card.OmiGroupedCard,OmiGroupedSlice(one row of a long lazy list drawn as part of one card),OmiSettingsIconTile(main's own icon in a 44 pt warm tile) andOmiSettingsAvatar.OmiSegmentedControl;OmiLineIcon, a small set of header glyphs: search, more, sync, settings, mic and a few others;DeviceTile: the device a row was recorded on.OmiButton: an opt-inwrapLabel; quiet fills take the tile colour inside Settings.OmiIconButton.filled: glass on the canvas.OmiSearchField: the card colour of its page.OmiLockedPreview: the veil is the page colour.showOmiSheet(surface:), andHeaderCircleButton.app/docs/ux-contract.mdgets rows for the new components.Screenshots
Before is
main(4bdcc56d0d), after is this branch. Rendered byapp/scripts/visual_audit.sh(real widgets, flutter-tester, 390×844 at 2×, fixture data, dark theme). The PNGs are byte-for-byte identical, which is the point of this PR: nothing moves until a screen opts in.main)Product invariants affected
none
How it was verified
flutter analyze: no errors or warnings. The 89 infos are all onmainalready.dart format --line-length 120on the changed Dart files: no changes.flutter test) on this branch: 4,669 passed, 14 skipped, 0 failed.scripts/pr-preflightwith this body: passed.Tests
test/widgets/ui/omi_canvas_test.dart(new):Failure class (fixes)
Failure-Class: none