Skip to content

feat(app): v2 cleaner UX 1/9 — design foundation (no visible change) - #20342

Closed
Itaxh1 wants to merge 1 commit into
BasedHardware:mainfrom
Itaxh1:combo/settings-tasks-home
Closed

Itaxh1 wants to merge 1 commit into
BasedHardware:mainfrom
Itaxh1:combo/settings-tasks-home

Conversation

@Itaxh1

@Itaxh1 Itaxh1 commented Oct 2, 2026 •

Copy link
Copy Markdown
Collaborator

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

# PR What it changes Code + tests (no translations)
1 this PR Design foundation: tokens, canvas, glass, grouped page, Settings components 21 files, +1,377 / −29
2 #20331 Settings home: a full-screen page, seven labelled groups, icon tiles, Instrument Sans, Account 17 files, +684 / −264
3 #20714 Every page inside Settings on the grouped page 63 files, +1,758 / −1,228
4 #20715 Offline Sync: recordings grouped by day, All / Pending / Synced, the storage sheet 19 files, +812 / −1,366
5 #20329 Tasks: Overdue first, Completed folded under the list, one ⋯ menu 17 files, +1,660 / −351
6 #20328 Flat Home: white canvas in light mode, glass header, a sheet for a dropped pendant 13 files, +488 / −88
7 #20716 Ask anything bar and a glass record button (a tap still records, as on main) 7 files, +235 / −158
8 #20717 Conversation rows show their device; Try again stays level with Processing 19 files, +578 / −245
9 #20718 Daily Recaps: flat rows, and counts that open that day's conversations and tasks 10 files, +322 / −309

Merging

  • Each of PRs 2–9 is this PR's commit plus one commit of its own. Until this PR merges, each of them also lists these 21 files; each body links a compare view that shows only its own commit.
  • I merged all 8 onto this branch in one go: they merge cleanly in any order, with one exception. feat(app): v2 cleaner UX 5/9 — Tasks: Overdue first, Completed folded, one ⋯ menu #20329 (Tasks) and feat(app): v2 cleaner UX 7/9 — Ask anything bar and glass record button #20716 (Ask bar) edit neighbouring lines in home/page.dart, so whichever lands second needs a one-line rebase. I'll do that rebase.
  • Merged together, the 9 branches match the previous combined branch line for line, apart from:
    • import order in two files;
    • where the new translation keys sit (next to related keys, so the PRs don't conflict);
    • nine translation strings in fr, it, he, kn and te that the combined branch had reverted to older text while merging main. These PRs keep main's text.
  • All 9 merged together pass the full app suite: 4,756 passed, 14 skipped, 0 failed.
  • Each of the 9 also merges cleanly into the latest main (f58371750d), checked with git merge-tree, and each passes the full app suite on its own (numbers in each PR).
  • All 9 merged together were built with the production config and installed on an iPhone 15 Pro Max.

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.

  • Type: Instrument Sans (bundled, SIL OFL 1.1, licence in app/assets/fonts/).
    • OmiTypeface sets a screen in it.
    • OmiSettingsTypeface also makes Settings lists 10% smaller.
    • Scripts the font doesn't cover fall back to the system font glyph by glyph.
  • Colours (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.
  • Canvas and glass:
    • OmiCanvas marks a screen drawn on the canvas (a white page in light mode); widgets read OmiCanvas.pageOf / cardOf.
    • OmiGlass paints a translucent fill and a rim, with a blur only for controls that float over a list.
  • The Settings frame:
    • OmiGroupedPage is a circled back button, a centred title and the grouped page colour. Inside it (OmiGroupedScope), OmiSettingsGroup defaults to the outlined card.
    • New pieces: 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) and OmiSettingsAvatar.
  • Also new:
    • 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.
  • Existing components only change inside the new contexts; elsewhere they are as on main:
    • OmiButton: an opt-in wrapLabel; 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:), and HeaderCircleButton.
  • Docs: app/docs/ux-contract.md gets rows for the new components.

Screenshots

Before is main (4bdcc56d0d), after is this branch. Rendered by app/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.

Before (main) After (this branch)
Language Before: Language After: Language
Notification preferences Before: Notification preferences After: Notification preferences

Product invariants affected

none

How it was verified

  • flutter analyze: no errors or warnings. The 89 infos are all on main already.
  • dart format --line-length 120 on the changed Dart files: no changes.
  • Full app suite (flutter test) on this branch: 4,669 passed, 14 skipped, 0 failed.
  • Visual audit, main against this branch, on Language, Notification preferences and Transcription: identical PNGs.
  • The merge check above, with the full suite run on the merged result.
  • scripts/pr-preflight with this body: passed.

Tests

test/widgets/ui/omi_canvas_test.dart (new):

  • Canvas: white page and grouped-grey cards in light; in dark, the usual page and card. The search field takes the card colour.
  • Glass: fill and lit rim, blur only when asked; light glass follows the v8 mock, dark glass is unchanged; a tint replaces the fill.
  • Filled icon circles: glass on the canvas, their own fill elsewhere. The header badge ring and the locked row's veil take the page colour.
  • DeviceTile:
    • every source has a drawn glyph, and an unknown source gets the conversation bubble;
    • the 40 pt tile is decorative;
    • the recap tile holds its emoji;
    • missing, faded and status-dot variants.

Failure class (fixes)

Failure-Class: none

Review in cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

1 issue found across 260 files

Confidence score: 5/5

  • KnowledgeGraphApi in app/lib/backend/http/api/knowledge_graph_api.dart still 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

Comment thread app/lib/ui/components/omi_glass.dart Resolved
Comment thread app/lib/ui/components/omi_glass.dart Resolved
Comment thread app/lib/l10n/app_localizations_be.dart Resolved
Comment thread app/docs/ux-contract.md Resolved
Comment thread app/lib/backend/http/api/dev_api.dart Resolved

@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 (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.

@Git-on-my-level

Copy link
Copy Markdown
Member

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:

  • app/lib/pages/settings/settings_drawer.dart — Settings moves from a modal sheet to a pushed full-screen page (SettingsDrawer.show → routeToPage), regrouped into six labelled groups with an exhaustive settingsGlyph() switch (a new destination must pick a row, good). app/contracts/addressability/catalog.json (reach kind sheet→push) is consistent with the ADDRESSABILITY.md update, and the e2e SKILL.md map matches.
  • app/lib/pages/action_items/task_page.dart — new per-task page: unsaved-edit guard via PopScope.canPop, optimistic completion reconciled against the provider's record after the server answers, locked tasks routed to UsagePage instead of an unwritable page. Solid.
  • app/lib/pages/action_items/task_export.dart — single-task export reuses the selection-bar provider path (ensureLoaded, selected-app-first fallback), so the connect nudge and skip-if-exported behave the same.
  • app/lib/providers/action_items_provider.dart — the _stateMutationTokens guard against stale toggles and _adoptServerRecord server-timestamp adoption fix real races; selectAllTasks now excludes locked items so a bulk export/delete can't fail on a 402.
  • app/lib/pages/home/page.dart + app/lib/ui/omi_canvas.dart — OmiCanvas InheritedWidget with updateShouldNotify: false (correct for a constant marker) switching page/card colours; _buildChatBar is replaced by HomeAskOmiButton.
  • app/lib/backend/http/api/{dev,knowledge_graph,mcp}_api.dart — static final _baseUrl → getter; behavior-neutral outside tests/local dev, and the stubs map added to fixture_backend.dart is test-only.
  • Fonts: Instrument Sans TTFs ship with the OFL 1.1 text (assets/fonts/InstrumentSans-OFL.txt) and the pubspec.yaml weight mappings look right. No new packages, no CI/workflow changes.

Three things I'd want maintainer eyes on before merge (product calls, not bugs):

  1. Locked (paywalled) tasks are now hidden entirely from the Tasks list and its counts (_withoutLocked in action_items_page.dart), and Clear leaves them — paywalled data becomes invisible rather than shown-locked. Deliberate monetization/UX trade-off.
  2. The mic shortcut inside the Ask bar is gone (_openChat drops the voice variant; HomeAskOmiButton has a single tap target), so voice entry to chat is only via the record flow now.
  3. Settings information architecture is restructured (Integrations under "Features", Notifications & Display under "Preferences"), consistent with the updated docs/ux-contract.md and e2e SKILL.md.

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 need human response.

@Git-on-my-level

Copy link
Copy Markdown
Member

Reviewed the combined branch on head cbaf94c. The static review found no blocking issues, and the implementation quality holds up across the significant files:

  • settings_drawer.dart — the sheet-to-pushed-page conversion keeps every information-architecture ruling cited in its comments (one tap to plan/referrals, Memories/Goals), and the sheet→push change is consistently reflected in contracts/addressability/catalog.json, docs/ux-contract.md and e2e/SKILL.md.
  • task_page.dart / task_export.dart — the per-task page guards unsaved-edit discard with PopScope, disables the row while a completion toggle is in flight, and routes paywalled tasks to the plan page instead of an edit UI that would 402; single-task export reuses the bulk-export provider path so the connect nudge and outcome snackbar behave identically.
  • action_items_provider.dart — the per-item mutation tokens mean a stale toggle response can no longer clobber a newer one, and provisional completion timestamps get reconciled with the server record. selectAllItems excluding paywalled tasks from bulk writes is the right call given the backend refuses writes on them.
  • dev_api.dart / knowledge_graph_api.dart / cp_api-style mcp_api.dart — the static final _baseUrl → getter change is benign and test-enabling; no endpoints, auth, or headers changed.
  • pubspec.yaml — Instrument Sans registration only; no new package dependencies, and the OFL 1.1 license file is bundled with the fonts.

Two non-blocking observations:

  1. The l10n sweep normalizes a handful of pre-existing ALL-CAPS labels (yourApiKey, keyNameLabel, permissionsLabel, …) to sentence case across locales. That matches the new design, but it slightly widens the diff beyond the three redesigns — fine to keep, just noting it's intentional churn for reviewers of the singles.
  2. recordOptionsTip is removed in all locales while the record button now opens a chooser — the tip text is genuinely obsolete, so this is correct; flagging only so localization reviewers don't hunt for a missed string.

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 need human response.

@Itaxh1
Itaxh1 force-pushed the combo/settings-tasks-home branch from 75c6fb9 to 01006a0 Compare October 5, 2026 08:50
@Itaxh1
Itaxh1 marked this pull request as ready for review October 5, 2026 08:54

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

7 issues found across 27 files

Confidence score: 3/5

  • In omi_button.dart, wrapLabel still gets a fixed height when width is 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 loose Stack constraints 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, OmiTypeface changes 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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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 {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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(

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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>
Suggested change
child: Stack(
child: Stack(
fit: StackFit.passthrough,

child: CupertinoSlidingSegmentedControl<T>(
groupValue: value,
backgroundColor: OmiColors.iconTile,
thumbColor: OmiColors.active == OmiPalette.light ? OmiColors.groupedCard : OmiColors.surface3,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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(

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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>

Comment thread app/lib/ui/ui.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';

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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>

@Git-on-my-level

Copy link
Copy Markdown
Member

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:

  • omi_tokens.dart: the dark canvas/glass values reuse the existing greys (canvas = surface0, canvasCard = surface1, glassShadow/floatOutline clear), so dark mode genuinely does not move; light values are new only where the canvas look is new.
  • omi_settings.dart: OmiGroupedSlice/_SlicePainter draws the 1pt outline as a foregroundPainter so a pressed row's highlight can't cover it - nice detail. OmiSettingsIconTile re-colors icons via IconTheme rather than forcing them, and correctly carries a destructive row's red into the tile.
  • omi_glass.dart: shadows go null when the shadow color's alpha is 0, avoiding a wasted shadow layer in dark mode.
  • device_tile.dart: honest dead-code allowlist entry - confirmed nothing in app/lib references it yet, and the entry names the follow-up PRs that make it reachable plus the removal condition.
  • Fonts: Instrument Sans is SIL OFL 1.1, the license file ships alongside, and no Reserved Font Name is declared, so bundling is compliant; the four weights are registered correctly in pubspec.yaml.
  • app/test/widgets/ui/omi_canvas_test.dart: 13 hermetic widget tests with a tearDown resetting OmiColors.active - good coverage of the canvas/glass/tile behavior. Caveat: the Dart lanes are skipped on this fork PR, so these tests have not actually run in CI on this head, and the earlier approval was on a previous commit. Before merge, please make sure the suite runs once on this head (maintainer re-run or ci:full).

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 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.

Mobile feature (v2 UX 1/9, design foundation, no visible change). Approve-only per area rule; mergeStateStatus UNKNOWN so not merged.

@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 1/9 -- 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

Superseded by #20835. Closing; please follow that PR.

@github-actions

Copy link
Copy Markdown
Contributor

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:

  • Project standards — Ensuring consistency across the codebase
  • User needs — Making sure changes align with what our users need
  • Code best practices — Maintaining code quality and maintainability
  • Project direction — Keeping aligned with our product principles and locked invariants

Before your next PR, please skim:

  • PRODUCT.md — product north star
  • Product invariants — locked rules (shared chat, memory tiers, agent control plane, integrations, brand)

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!

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.

4 participants