Skip to content

feat(app): Omi v2 restyle in light and dark, with fixes for 16 app issues and 5 scoped features - #19249

Closed
Itaxh1 wants to merge 32 commits into
BasedHardware:mainfrom
Itaxh1:design/v2-step0-tokens
Closed

Itaxh1 wants to merge 32 commits into
BasedHardware:mainfrom
Itaxh1:design/v2-step0-tokens

Conversation

@Itaxh1

@Itaxh1 Itaxh1 commented Sep 26, 2026 •

Copy link
Copy Markdown
Collaborator

What changed and why

This is the Omi v2 restyle of the Flutter app, in light and dark. It also fixes 16 app bugs found while testing it
on an iPhone and adds 5 scoped features. The design handoff pack is in design/omi-flutter-v2/: START_HERE.md,
and SCREEN_MAP.md (each screen mapped to its render). The PR is large, about 950 files: mostly restyled pages,
49 locale files, the design pack and icons. It can be split into smaller PRs once the direction is agreed.

  • Theme: runtime light/dark tokens (OmiColors, OmiType, spacing, motion, haptics) with shared components,
    and an Appearance setting.
  • Navigation: a floating tab bar with Today · Conversations · To do · Apps. Tapping the Omi mark opens Ask;
    holding it opens Memories.
  • Capture: Start, then Mute/Unmute and Stop. The controls are the same on the Home card, the Live page, and
    the Lock Screen / Dynamic Island Live Activity (from feat(app): recording Live Activity on the Lock Screen and Dynamic Island #18887).
  • Today: a greeting, the capture card, Up next with upcoming tasks, and This week.
  • Onboarding: one button line on every step, a square sign-in card, and a sample knowledge map. Voice setup is
    a new account's first To do task.
  • iOS: Home Screen widgets (also sent on their own as feat(app): iOS Home Screen widgets: Battery for every wearable, Up next and Latest #19252). A pendant restored by iOS state restoration
    now shows as connected again.
  • Tooling: a visual audit and layout lint harness (integration_test/visual_audit), and an optional
    OMI_AUTH_CALLBACK_SCHEME for preview builds.

Bugs:

Features:

Refs (partly addressed; each links the issue covering the part done here):

Screenshots

Hermetic renders from app/integration_test/visual_audit (390×844 pt, sample data, no network images).

Light and dark:

Today in dark and light, and Appearance

Capture card, one shape in every state (#19255, #19256):

Idle, listening and stopped capture card

Today: Up next with upcoming tasks, and This week (#19258):

Up next and This week

Onboarding: the square sign-in card and the sample knowledge map (#19237):

Sign in and the knowledge map

Conversations, Ask, To do, Apps:

Conversations, Ask, To do and Apps

Settings, with search opening in place (#19241):

Settings and search

Product invariants affected

  • INV-CUTOVER-1
  • INV-DATA-1
  • INV-MEM-1

How it was verified

  • TZ=UTC bash app/test.sh: 138 + 3485 tests passed.
  • bash app/scripts/analyze_ratchet.sh: passed, no new diagnostics.
  • python3 app/scripts/l10n.py check: ok: 49 locales, 3537 keys.
  • make mobile-verify ARGS="fast --all": 23 of 23 hermetic journeys passed.
  • scripts/pr-preflight --pr-body-file against main at 32c2ed2: all 34 selected manifest checks passed. This is
    make preflight with --base upstream/main, because origin is the fork here.
  • Layout lint over every audit screen at 375×667 @1.3 and 360×740 @1.0: 0 layout errors.
  • Real user path: profile builds were installed on an iPhone and used as a user. That covered a new account,
    onboarding and sign-in, and capture Start/Mute/Stop from Home, the Live page, the Dynamic Island and the Lock
    Screen. It also covered chat, To do, Settings search, share and the widgets.
  • Each upstream bug was reproduced on main at 32c2ed2, with a probe test or from the code path cited in its
    issue.
  • main at 8ee1e8c has been merged since; it has no app changes.
  • Not verified: an Android device run (Android is covered only by the hermetic tests and journeys), and iPad.

Tests

Each bug fix has the test that would have caught it:

Issue Test
#19232 message_provider_first_message_test.dart
#19233 c3_action_items_production_wiring_test.dart, c3_production_wiring_test.dart
#19234, #19235, #19255 capture_pause_sticks_test.dart, process_now_conversations_tab_test.dart
#19236 device_tutorial_retired_test.dart
#19237 onboarding_knowledge_step_test.dart
#19238 apps_category_section_text_scale_test.dart
#19239 ai_suggestion_strip_test.dart
#19240 developer_section_header_test.dart
#19241 settings_structure_test.dart
#19242 conversation_share_test.dart
#19243 conversation_audio_partial_test.dart
#19244 env_auth_callback_scheme_test.dart
#19245 quick_actions_mute_feedback_test.dart
#19246 memory_graph_user_label_test.dart
#19247 conversation_provider_merge_watch_test.dart
#19256 capture_home_ui_test.dart
#19257 capture_system_surface_test.dart
#19258 home_up_next_pick_test.dart, home_this_week_test.dart
#19259 todo_voice_setup_task_test.dart

With the old layout or logic put back, the tests for #19238, #19239 and #19240 fail.

Line-Count-Exception: app/lib/pages/action_items/action_items_page.dart | 1508 -> 1566 | Keeps the To do header, search and designed empty state in every API phase (#19233) and adds the voice-setup first task.
Line-Count-Exception: app/lib/providers/conversation_provider.dart | 1951 -> 2052 | Settles merges without the push by probing the merging rows (#19247) and adds the Rev 3 source filter.
Line-Count-Exception: app/lib/services/capture/capture_controller.dart | 3812 -> 4040 | Adds single-flight Stop, the persisted stopped state and one pause-aware clock behind the existing coordinator boundary.

Failure class (fixes)

Failure-Class: none

…rols, spec)

Restyle guide for the existing Flutter app, iOS and Android:
- 132 screen renders (dark, light, Rev 3 multi-device wires)
- token values for the existing OmiColors/OmiRadius/OmiMotion names
- OmiRingLogo (eight-dot ring, still/breathe/chase/orbit) and Pause/End controls with widget tests
- screen map to current app files, interaction spec, 107 SVG icons

Tested locally on Flutter 3.44.5: analyze clean (standalone and inside app/), 7 widget tests pass,
UX contract (INV-UI-3) check clean.
The working tree at 23:20 (refs/backup/v2-pre-upstream-sync): tokens, icons,
Liquid Dock, Home, Conversations, Settings, Apps and onboarding restyled.
The working tree at 00:24 (refs/backup/v2-pre-upstream-sync-2).
The working tree at 01:00 on upstream ea2647c
(refs/backup/v2-pre-upstream-sync-3).
Brings in BasedHardware#18946 (capture coordinator); the 01:00 work carried onto it.
…ixes

Today's work up to the 09:33 phone build: Start/Stop + Mute on every capture
surface, Home Screen widgets, Ask over the whole screen, hold for Memories,
two-hour greetings, Settings theme and sheet fixes, liquid-glass header,
locked conversation rows, weekly card and merge refresh fixes.
Opened from the Dynamic Island, the Live page's Stop waited its turn behind a
transcription reconnect (each try can take 15 s while the server's speech
service is failing), looked dead, took a second tap, and then both taps closed
a page: the second closed Home too, leaving a black, stuck screen (IMG_1148-1150).

- The Live page closes at once (Conversations if something was heard, else
  Today), closes only its own route, and ignores further taps; a failed stop
  says so on Home.
- CaptureController.stopCapture is single-flight: a second Stop joins the one
  on its way. isStopping lets the Home card, the idle card and the island show
  it stopped from the tap; Start waits for the pending Stop so it is never
  undone by it.
Share on a conversation (detail page and the row's long-press menu) no longer
asks "Share Conversation? Anyone with the link can view" first (IMG_1146): the
iOS / Android share sheet opens at once. A private conversation still becomes
link-visible for the sheet and goes back to private when the sheet is dismissed
without sharing.
Starting a search swapped the whole header (title and capsule for a search
row with other padding) through a cross-fade, so every row jumped up and the
field sat 4 pt off the cards (IMG_1147). The search field now stays in place
under the title, lined up with the cards, at one fixed height; only Cancel
slides in beside it. The list can scroll its last results above the keyboard.
…ct share

Share from a conversation row now reaches the visibility call at once, so a
failure there is caught and reported ("could not be shared") instead of
escaping the menu action. The analytics and row-action tests no longer answer
the removed "Share Conversation?" question.
"Start with this phone, or connect a device to listen all / day." took a line
more than "Pendant · Ready", so the card and everything under it jumped when
the pendant connected or dropped (IMG_1151/1152).

- OmiBalancedText: short UI copy wraps into even lines (no word alone on the
  last line) and can hold the height of the tallest copy it may show.
- The idle card's subtitle reserves the taller of its two lines at any width
  and text size; a test checks one height at 320-430 pt and 1.0/1.35 text.
- Visual audit: OMI_AUDIT_VIEWPORT, OMI_AUDIT_TEXT_SCALE and OMI_AUDIT_LINT
  (errors, orphan words and cut-short text of every capture to layout.json),
  so every screen can be checked at several phone and text sizes.
The live card's transcript line appeared with the first words and grew to
three lines, so Today shifted under the reader during a recording. Its two
lines' room is now there from the start (Transcribe Later has none), and the
Home slot eases between the idle and live cards instead of jumping.
The layout lint (every audit screen at 360-440 pt and larger text) found copy
leaving one word alone and short titles squeezed onto two lines:

- OmiBalancedText is a render box now: it measures the real paragraph (same
  font settings), works inside intrinsic layouts, and never narrows text that
  is capped or cut short.
- Balanced: settings rows' titles and subtitles, section titles and footers,
  empty and error states, onboarding headers, the welcome and Ask empty
  titles, usage cards, leave-flow copy, consent and "all set" tips,
  permission rows, the appearance note and the Recording from sheet.
- A settings title keeps its line beside a value: the value truncates first,
  down to 48 pt. A section header's buttons drop under its title when both do
  not fit, and the Developer API / MCP buttons wrap instead of overflowing.
- Tests at 320-440 pt with the real fonts.
Opening Ask starts the history load ("Reading your memories…"); a message
sent before it landed was wiped when the load replaced the list, leaving only
Omi's greeting (IMG_1159). The load now keeps what was sent meanwhile and the
reply streaming to it (without repeating a message the server already
returned), and a finished reply replaces its own placeholder by identity
rather than by an index the load may have shifted.
…reen

A new account's empty To do showed only "No Tasks Yet" in plain white on the
light background, with no title or search, so it read as a blank, scrolled
page (IMG_1158); Conversations showed the same white line (IMG_1157).

- The API's "empty" phase shows each page's designed empty state (icon, what
  to do, Create for To do), still keyed omi.*.empty for the C3 contract; the
  typed status line is kept for errors and is themed (no more white text).
- To do keeps its title and search in every state: loading, empty, error.
The voice setup was a card squeezed above the Conversations search
(IMG_1157). It is now the first item in To do, drawn like a task (open ring,
title, "So Omi knows it's you · about a minute" in 49 languages), shown while
the voice profile is missing; a tap opens the voice setup as its other entry
points do, and it leaves once the profile exists. The old card is removed.
…rand card

- Every first-run step's buttons sit at the same place: 16 pt from the sides,
  8 pt above the bottom safe area (the step layout). "You're all set", the
  voice step, the Apple Watch permission page and the device tutorial used
  24-32 pt sides and 12-24 pt bottoms, so their buttons jumped between steps.
  The voice step's content also started under the progress bar in first run.
- "Here is what I know about you" shows a sample map (design Knows): the
  reader's name at the centre with the pendant's blue light, four topics
  joined by thin lines that draw in once, labels on pads so lines pass behind.
  It uses the step layout, so Continue sits where it does everywhere.
- Welcome / Sign in: the Omi mark on a 1:1 square card, like an app icon
  (IMG_1153); it stays square on a short phone.
- Visual audit: onboarding-knows scenario; in lint mode full-width buttons'
  bottom gaps and side insets are recorded to compare a journey's buttons.
The layout lint across every audit screen (360-440 pt, 1.0 and 1.3 text)
found five overflows, now fixed and re-checked at those sizes:

- Apps: category rows and title band were a fixed 85 / 60 pt; they now
  follow the text size (cards keep their width).
- Today: the week chart's row was a fixed 74 pt; it now fits the day letter
  at the reader's text size.
- AI app generator: the suggestion strip grows with the text size.
- Appearance: the phone previews scale down when three options share a
  360 pt screen.
- Sign in: no LayoutBuilder under the page's fill-remaining sliver (crash).

Also: balanced text measures with a painter on the paragraph's own settings
(dry layout and layout agree), and the audit's lint records each error's
source line.
…ays, and says when audio is partial

A 5m 49s conversation with 3 s of stored audio showed "0:03 / 0:02" and looked
like a broken recording (IMG_1160). The server stored only part of that
conversation's audio (it keeps live audio in ~60 s batches, separate from the
live transcript); the app now:

- shows a length no shorter than the audio file or the playing position;
- says "0:03 of 5:49 audio saved" under the player when the saved audio
  covers under half of a conversation of 30 s or more (49 languages).
IMG_1162-1164: the review stacked two titles ("Let Omi get to know you" over
"Here is what I heard"), content was cut off hard under the back button and
the buttons, answers had square checkboxes, and the footer carried three lines.

- The page is "Introduce yourself" (49 languages); the review shows only its
  own title.
- Each answer is drawn like a To do task: the round tick keeps it, an empty
  ring leaves it out (and the text dims); "Memory" / "My goal" sit over the
  editable text. "Use original wording" is a small undo under the goal.
- Content fades at the top and bottom edges instead of being cut; the footer
  is one button and one way out.
- Copy breaks evenly; "Try another prompt" lines up with the text.
…oves nothing

The live card had grown two empty transcript lines while the idle card stayed
short, so Start / Stop made Today jump ~80 pt and the live card looked half
empty (IMG_1166/1167). The idle card is now the live card's twin row for row:
orb and state, the (still) wave, two lines of text where the live card shows
the words, then the two capsules. Before the first word the live card says
"Words appear here as you speak"; the idle card says how to start (new line in
49 languages). A test holds all four states (no device, pendant ready,
listening, hearing) to one height at 320-430 pt and 1.0/1.35 text, with the
real fonts (shared test helper).
"Speak Into Your Omi" (the interactive device tutorial) opened by itself when
a new account's pendant connected (IMG_1169) and confused new accounts;
getting Omi to know you is To do's first task now. Home no longer opens it and
Device settings no longer lists it; its code stays archived, unreachable, and a
test keeps anything from opening it again.
The week chart only ever showed the week's total (IMG_1168). Tapping a day
now shows that day's captured time in the header ("Friday · 12m captured")
and highlights its bar; tapping it again goes back to the week. Days still to
come are not tappable; each bar reads its day and time to VoiceOver.
A preview build (its own bundle id) pointed at the production servers used
omi://auth/callback, which the App Store app also registers, so iOS opened
the App Store app after sign-in and it showed an error (IMG_1170/1171).
OMI_AUTH_CALLBACK_SCHEME lets such a build return through its own scheme
(omi-beta, which the server accepts like any custom app scheme). Without the
define nothing changes.
52 upstream commits. Conflicts resolved:
- OmiBleManager.swift: upstream announces "ready" once per connection
  (readyNotified); ours moved the announcement into announceReady() so a
  state-restored pendant can be re-announced. The discovery callback keeps
  upstream's once-only guard; the explicit re-announce records itself in
  readyNotified.
- app_summary.dart: our v2 stats already show the real install count
  (compact), which is what upstream's fix asks for.
- sync_page.dart / auto_sync_page.dart: upstream's new uploadRejected state
  in our themed colours.

Analyzer ratchet and the full suite (138 + 3451) pass.
)

The Home Screen quick actions called pauseCapture/resumeCapture without
awaiting them; since capture commands throw when their effect fails, a
failure was an unhandled future and the user saw nothing. The quick action
now awaits and shows the same "Something went wrong" as the Live page.
…asedHardware#19246)

With no given name the knowledge graph labelled the reader's node with the
English word "Me" in all 49 languages; it now uses the localized "You".
…asedHardware#19236

The tutorial no longer opens by itself or from Device settings; its files stay
until maintainers decide to retire it or offer it on demand.
, BasedHardware#19240 and BasedHardware#19244

Each fixed bug now has the test that would have caught it; each test fails
with the old layout or logic put back.

- Apps category rows fit at 1.0-1.5x text with real fonts (BasedHardware#19238).
- The AI app generator's suggestion strip is its own widget (AiSuggestionStrip),
  tested at 1.0-1.5x text, and Try it hands its suggestion back (BasedHardware#19239).
- Developer API and MCP share one header (DeveloperSectionHeader) whose Docs
  and Create Key buttons wrap on a 320 pt phone at larger text (BasedHardware#19240).
- The sign-in return scheme is a small function (resolveAuthCallbackScheme):
  the profile's scheme unless OMI_AUTH_CALLBACK_SCHEME is set (BasedHardware#19244).
@Itaxh1
Itaxh1 marked this pull request as ready for review September 26, 2026 19:30
@Itaxh1
Itaxh1 requested a review from mdmohsin7 as a code owner September 26, 2026 19:30
@Itaxh1
Itaxh1 force-pushed the design/v2-step0-tokens branch from 66fc1e9 to 9b593ec Compare September 26, 2026 20:19
@Git-on-my-level

Copy link
Copy Markdown
Member

Thanks @Itaxh1 — this is a serious, well-documented piece of work. The design pack (START_HERE.md / SCREEN_MAP.md), per-fix test table, and the explicit "not verified" list (Android device run, iPad) make it easy to review. I sampled the riskier surfaces:

  • app/lib/env/env.dart — OMI_AUTH_CALLBACK_SCHEME as a build-time define for preview builds is a clean fix for Production-profile builds with their own bundle id can't finish sign-in when the App Store Omi is installed #19244; no runtime secret handling.
  • app/ios/Runner/Ble/OmiBleConnectPolicy.swift + OmiBleManager.swift — turning the old "already connected, skipping" early-return into a re-announce/rediscover policy for state-restored peripherals is the right shape, and the ruby harness test in checks-manifest.yaml compiles the policy standalone. Nice.
  • app/ios/Runner/LiveActivity/LiveActivityManager.swift — MainActor serialization, owner-scoped publish/detach, payload validation, and iOS 16.1 guards all look careful.
  • app/lib/core/app_shell.dart — the new omi://app/<route> link handling is behind an explicit route allowlist; no open routing surface.
  • app/lib/providers/message_provider.dart — _withSentWhileLoading (with identity-based placeholder replacement) is a sound fix for Chat: a message sent while the history is still loading disappears, and the reply overwrites a row #19232.
  • app/lib/backend/http/api/conversations.dart — the multi-source status=completed fallback deserves a backend maintainer's confirmation that the documented server quirk is real.

What this PR needs before merge is a product decision, not more code: the v2 visual direction, the floating tab bar navigation model, light mode, and the capture-state vocabulary are app-wide calls that a maintainer should sign off on. There's also a merge-order question to settle — the Home Screen widgets are also in #19252 and the Live Activity plumbing traces to #18887 — so please don't rebase away that overlap; a maintainer will pick the order.

Given the size and that this is your first PR here, leaving the formal review to a human maintainer; from the automation side this is a positive signal.


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 Git-on-my-level added needs-maintainer-review Needs a human maintainer to sign off before merge positive-signal Automation verified a genuine fix/quality contribution flutter flutter work labels Sep 27, 2026

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

Large mobile app restyle + fixes/features — approve only, not merging (feature-classified, non-trivial scope; area=mobile).

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

Large Flutter app restyle + bug fixes + new features, mixed scope, mergeStateStatus DIRTY. Not owner-override eligible (mobile, not desktop) and mixes features -> approve-only, re-confirmed per current policy; flagging scale (950 files, ~70k+11k lines) for Nik's manual review given needs-maintainer-review label.

@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 (Omi v2 full-app restyle, ~950 files) — mobile/flutter area, approve-only per policy; mergeStateStatus DIRTY and needs-maintainer-review, needs a dedicated manual pass before any merge.

@Itaxh1 Itaxh1 removed flutter flutter work needs-maintainer-review Needs a human maintainer to sign off before merge positive-signal Automation verified a genuine fix/quality contribution labels Oct 1, 2026
@Itaxh1 Itaxh1 closed this Oct 2, 2026
@github-actions

github-actions Bot commented Oct 2, 2026

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