Skip to content

Mobile: simplify the app shell — one Home feed, Ask Omi sheet, global search - #19730

Merged
Git-on-my-level merged 10 commits into
mainfrom
lane/mobile-simple-ui
Sep 29, 2026
Merged

Git-on-my-level merged 10 commits into
mainfrom
lane/mobile-simple-ui

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Sep 29, 2026 •

Copy link
Copy Markdown
Member

What

A radical simplification of the mobile app shell (Flutter, app/), plus the backend search routes it needs.

  • Home = one feed. The Home and Conversations tabs are merged: the live capture / Processing row, Daily Recaps, then the endless conversation list. There is no bottom tab bar; a Home | Tasks switcher sits at the top. Folder chips, the conversation-map button and the Today-tasks widget left Home.
  • Ask Omi is one sheet everywhere. It rises over a blurred, dimmed page with the greeting "Hi {name}, ask anything", starter chips, and a rounded composer card (attach menu, "Omi ▾" app chip that opens the chat-apps drawer, mic/send). Tool steps show as quiet single lines (the current one shimmers) and fold to one line after the answer; tapping opens an Activity timeline sheet. One thread, no history (v1).
  • Global search drops from the top. Browse tiles with counts (Starred, each folder, Recaps, Memories, People, Places, New folder), recent searches, and grouped results for conversations, recaps, tasks and memories. Long-press a folder tile to edit/delete it; Places opens the map.
  • Apps tab → Settings › Integrations (connected services on top, catalog below). Memories and Goals are rows on the Settings sheet. Mind map moved to the top of Memories. The Home Screen settings page and its four toggles are deleted.
  • Light is the default theme; Settings › Appearance still offers Light / Dark / System.
  • Backend: GET /v1/search/overview (tile counts; a failed count is null, so the tile shows no number rather than a false 0) and GET /v1/users/daily-summaries/search, with route-policy entries, regenerated app-client OpenAPI and Dart/TS/Swift clients.

Rollout — read before merging

  • No feature flag. This ships to everyone.
  • Backend must be deployed to prod before the app release. The app tolerates the overview route being absent (tiles show no numbers), but recap search needs its route.
  • UX contract D1 changed (app/docs/ux-contract.md): chat is a sheet from every entry point, not a pushed page.
  • Spine oracles are untouched (app/test/spine/). The protected B1 catalog oracle still requires omi.home.tab_conversations; since conversations now live on Home, that key is placed on the Home tab (tapping it really does reach the conversation list). Catalog tab indices follow the two-page shell.
  • Cost to watch: recap search reads up to 365 daily-summary docs per query (client debounces 300 ms), and opening search runs ~5 + (number of folders) Firestore count aggregations. Worth a look at Firestore reads after rollout.

Verification (worktree lane/mobile-simple-ui, Flutter 3.44.5)

Check Result
bash app/test.sh (spine + all unit/widget) spine 138/138; then 3,544 passed, 5 skipped, 0 failed (head 2a3b475a46)
make mobile-verify ARGS="fast --all" 23/23 hermetic journeys passed
app/scripts/analyze_ratchet.sh passed
python3 app/scripts/l10n.py check 49 locales, consistent
scripts/check_app_addressability.py 0 errors
.github/scripts/check_mobile_ux_contract.py no hand-rolled UI increase
scripts/check_mobile_boundaries.py (api-result, capture) 0 errors
scripts/check_spine_contracts.py unchanged pending markers
Backend unit (selector over changed files, 1,371 files) green after fixes. Two listen_* files hit the CPU-time guard while a render job was loading the machine; both pass in isolation
OpenAPI export / Dart / TS / Swift generators --check; app-client compatibility fresh; compatible

Not verified: nothing has run on a device or simulator, and no backend deploy has happened. The screenshots are flutter-tester renders of the production widgets (app/scripts/visual_audit.sh, 390×844 @2×, light), not device captures.

What changed during verification (on top of the handoff commit)

  • Search API client moved to executeApi / ApiResult with generated DTOs. The search page now says "Some results couldn't load · Try Again" instead of showing a failed kind as "no results".
  • Accessibility: the Home/Tasks switcher exposes its tap action to screen readers (excludeSemantics had swallowed it). Chat starters wrap under large text instead of scrolling off screen.
  • ConversationsPage cancels its deferred timers on dispose. It mounts with Home now, so the old uncancellable Future.delayed leaked.
  • Light default: the white Omi logo in the header Connect pill and on onboarding permissions was invisible on light surfaces; it is now tinted.
  • Polish: the recap cards have a date eyebrow, a bolder headline, and an overview (or stats) body instead of a mostly empty card. The Memories mind-map preview is a quiet card with no dead Try Again button (the preview ignores pointers). The misleading "Connected" header above un-connected services on Integrations is gone.
  • Failure-class records that pointed at deleted tests now point at their replacements.
  • Tests updated to the two-page shell, the Memories/Goals settings rows, and the light default.

Screenshots

Before (main 6cff62d02b, main's own audit suite) and after (this branch), both light. They were rendered with:

OMI_AUDIT_BRIGHTNESS=light app/scripts/visual_audit.sh --head WORKTREE   # run in each checkout

Scenario ids to compare: home-feed, tasks-in-shell, chat-sheet, chat-steps, search-browse, search-results, search-partial, search-folder, apps-integrations, settings-sheet, settings-goals, memories-swipe-delete. Screenshots are not committed.

Follow-ups (not in this PR)

  • The visual audit's before side cannot compile main's pages with this branch's suite. A compat/pre-simple-ui/ suite would restore two-sided runs across this change.
  • showConversationDateRangePicker (lib/widgets/calendar_date_picker_sheet.dart) and ChatPage.isPivotBottom are now unused.

Product invariants affected

  • INV-MEM-1 — backend/database/memories.py gains a read-only count() for the Memories tile: active canonical memory_items, falling back to the legacy collection. It includes Archive-tier items in the number (documented as an approximation). No memory content is read, and no default access policy changes.

Failure-Class: none

Line-Count-Exception: backend/database/conversations.py | 3175 -> 3191 | count helpers for the search overview belong beside the existing conversation count queries
Line-Count-Exception: backend/database/memories.py | 1576 -> 1605 | default-visible memory count sits next to count_memories_created and shares its dual-store rules
Line-Count-Exception: backend/database/users.py | 2361 -> 2369 | people count beside the people collection accessors
Line-Count-Exception: backend/routers/users.py | 2490 -> 2510 | recap search route sits with the other daily-summaries routes it must precede

🤖 Generated with Claude Code

Review in cubic

Git-on-my-level and others added 10 commits September 29, 2026 13:06
…obal search)

- Home and Conversations merge: capture row, Daily Recaps, then every
  conversation. The bottom tab bar is gone; Home | Tasks switch at the top.
- Chat opens as a sheet over a blurred Home; greeting + starter chips,
  composer card with attach / Omi app chip / mic; tool steps as quiet lines
  that fold into one, with an Activity sheet timeline.
- Search overlay drops from the top: browse tiles with counts (starred,
  folders, recaps, memories, people, places, new folder), grouped results for
  conversations, recaps, tasks and memories.
- Apps tab folds into Settings > Integrations; Memories and Goals get rows on
  the Settings sheet; the mind map leads Memories.
- Light is the default appearance for users who never picked one.
- Home Screen settings page and its four toggles are removed.
- Backend: GET /v1/users/daily-summaries/search and GET /v1/search/overview,
  with regenerated OpenAPI and clients.

WIP handoff commit: pre-commit and pre-push checks not run.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Addressability: Home/Tasks switcher carries the catalogued tab keys;
  catalog sources and tab indices follow the two-tab shell
- Spine fixture: inert device provider answers the capture row's reads
- UX contract: folder options sheet and search emoji use tokens
- Memories: mind-map preview is a quiet card, no dead retry button
- Integrations: drop the misleading Connected header
- Home recaps: date eyebrow, bolder headline, overview or stats body
- Analyzer: const in search audit scenarios

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Search API returns ApiResult (executeApi + generated DTOs); the search
  page says when a kind of result failed instead of showing it as none
- Home/Tasks switcher exposes its tap to screen readers
- ConversationsPage cancels its deferred timers on dispose (it mounts
  with Home now)
- Chat starters wrap under large text instead of scrolling off screen
- Tests follow the two-page shell and the Memories/Goals settings rows
- Regenerated app-client OpenAPI and TS/Swift clients

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The app already shows a tile without a number for null; returning 0 on a
failed aggregation would show 'Memories 0' to someone with hundreds.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ines fit

- The header Connect pill and the onboarding permissions screen used a
  white logo that vanished on the light surfaces
- Recap overview shows as many whole lines as fit, ending on an ellipsis
- Audit: tasks-in-shell scenario shows Tasks under the Home | Tasks switcher

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…he spine

Speaker filtering moved to search's People tile. AppsPage stays while the
protected B1 spine oracle imports it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@mintlify

mintlify Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
omi 🟢 Ready View Preview Sep 29, 2026, 7:11 AM

💡 Tip: Enable Automations to automatically generate PRs for you.

@Git-on-my-level
Git-on-my-level marked this pull request as ready for review September 29, 2026 09:44
@Git-on-my-level
Git-on-my-level merged commit deff354 into main Sep 29, 2026
66 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/mobile-simple-ui branch September 29, 2026 09:45
apoorvdarshan added a commit to apoorvdarshan/omi that referenced this pull request Sep 29, 2026
Upstream BasedHardware#19730 removed bottom_nav_bar.dart. Point readers to the current Home owner and identify the old tab plan as historical. Validation: agent documentation references checked by final preflight.
apoorvdarshan added a commit to apoorvdarshan/omi that referenced this pull request Sep 29, 2026
Upstream BasedHardware#19730 removed bottom_nav_bar.dart. Point readers to the current Home owner and identify the old tab plan as historical. Validation: agent documentation references checked by final preflight.
apoorvdarshan added a commit to apoorvdarshan/omi that referenced this pull request Sep 29, 2026
Upstream BasedHardware#19730 removed bottom_nav_bar.dart. Point readers to the current Home owner and identify the old tab plan as historical. Validation: agent documentation references checked by final preflight.
apoorvdarshan added a commit to apoorvdarshan/omi that referenced this pull request Sep 29, 2026
Upstream BasedHardware#19730 removed bottom_nav_bar.dart. Point readers to the current Home owner and identify the old tab plan as historical. Validation: agent documentation references checked by final preflight.
apoorvdarshan added a commit to apoorvdarshan/omi that referenced this pull request Sep 29, 2026
Upstream BasedHardware#19730 removed bottom_nav_bar.dart. Point readers to the current Home owner and identify the old tab plan as historical. Validation: agent documentation references checked by final preflight.
Git-on-my-level added a commit that referenced this pull request Sep 29, 2026
agent-doc-references failed in Hygiene because main's app-shell
simplification (#19730) deleted app/lib/widgets/bottom_nav_bar.dart
while msd-ui-b2-remaining-surfaces.md still names it as an owner. The
v5 import pulls AGENTS.md docs into scope, so this PR's Hygiene lane
runs the check against the merged tree. Reworded the three references
to the home tab surface and noted the removal; no other pointer changed.
Verified: python3 .github/scripts/check_agent_doc_references.py OK on
the merged tree (merge-tree probe of HEAD + origin/main).
kodjima33 added a commit that referenced this pull request Sep 30, 2026
…esolves (#19885)

## What

The palette token set started as `OmiPalette.dark` until the appearance
provider's first build resolved it, so anything painted before that
frame (and any test that never sets it) rendered dark even though the
product default has been Light since #19730. The initial palette is now
light; Dark and System still apply the moment the provider resolves.

## Verification

- `flutter test test/unit/appearance_test.dart
test/visual_audit/visual_audit_smoke_test.dart
test/widgets/header_sync_button_test.dart` (Flutter 3.44.5): 101 passed,
including the new assertion that `OmiColors.active` starts light.
- Stored preference default is unchanged (`appearanceMode` defaults to
`'light'`; `AppearanceProvider.parse` maps unknown → light;
`boot_persisted_state_test` pins it).

## Product invariants affected

none

## Failure class (fixes)

Failure-Class: none


<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/19885?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="Review in cubic"
src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->
mdmohsin7 added a commit that referenced this pull request Oct 3, 2026
…e cache (#20497)

## Summary

The app catalog under **Settings → Integrations** shows nothing below
the search bar for anyone who has used apps before.

- **Cause:** #19730 moved the old Apps tab's catalog onto Integrations
and gated its load on `appProvider.apps.isEmpty`. The old Apps tab
called `getApps()` on every open.
- **Why the gate skips:** start-up fills `apps` from the local cache
(`app_shell.dart`, `setAppsFromCache()`), so `getApps()` never runs.
- **Result:** `groupedApps`, the only thing the catalog draws, stays
empty and the page is blank.

## Change

- **`AppProvider.ensureCatalogLoaded()`** owns the decision now. It
fetches the catalog when `groupedApps` is empty, keyed on the data the
catalog actually draws rather than `apps`. It also loads popular apps
when that list is empty, as before.
- **`IntegrationsPage`** calls it instead of the `apps.isEmpty` check.
- **No duplicate fetches:** `getApps()` already coalesces concurrent
loads.

## Product invariants affected

none

## Failure class

Failure-Class: none

## Verification

- New test in `test/providers/app_provider_load_test.dart` sets up the
failing state: `apps` filled from the cache, `groupedApps` empty. It
asserts that `ensureCatalogLoaded()` fetches the catalog once and fills
the groups.
- `flutter test test/providers/app_provider_load_test.dart
test/providers/app_provider_enabled_fetch_failure_test.dart`: 6 tests
pass.
- `flutter analyze` on the changed files: only the two `avoid_print`
infos already on `main`.
- `scripts/pr-preflight --pr-body-file <this body>`: passes.
- Not yet checked in the running app.

🤖 Generated with [Claude Code](https://claude.com/claude-code)


<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/20497?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="Review in cubic"
src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->
shuoYun114 pushed a commit to shuoYun114/omi that referenced this pull request Oct 4, 2026
…e cache

BasedHardware#19730 moved the Apps tab catalog onto Settings > Integrations and gated
its load on `appProvider.apps.isEmpty`. Start-up fills `apps` from the
local cache (app_shell setAppsFromCache), so for anyone who had used apps
before, getApps() never ran, `groupedApps` stayed empty, and the catalog
under the search bar was blank. The old Apps tab called getApps() on
every open.

AppProvider.ensureCatalogLoaded() now owns that decision and keys it on
`groupedApps`, the data the catalog draws; Integrations calls it.
Duplicate loads are already coalesced by getApps().

Verification:
- flutter test test/providers/app_provider_load_test.dart
  test/providers/app_provider_enabled_fetch_failure_test.dart: 6 pass,
  including the new cached-apps case.
- flutter analyze on the changed files: only the two existing avoid_print
  infos already on main.

Failure-Class: none

This branch was successfully deployed

1 active deployment
staging - docs — 36c296c1 Deployed Sep 29, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant