Skip to content

fix(app): mobile ergonomics pass — tab bar sits on the system inset, 44pt touch targets, single-counted insets - #14312

Merged
Git-on-my-level merged 5 commits into
mainfrom
fix/mobile-bottom-ergonomics
Sep 17, 2026
Merged

Git-on-my-level merged 5 commits into
mainfrom
fix/mobile-bottom-ergonomics

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

What

One mobile ergonomics pass, prompted by the bottom tab bar sitting far too high on iPhone after the latest release.

1. Bottom tab bar: one gap under the icons, not two (the reported bug)

#12858 reserved the window's bottom view padding under the home tab bar. That was the right fix for Android's 3-button bar, but it added the inset beneath a 100pt bar that already carried ~27pt of empty space under its icons. On an iPhone the two stack: icon centers sit ~74pt above the screen edge (measured from a device screenshot), versus ~59pt for a platform tab bar such as LinkedIn's.

The bar is now a 20pt fade plus a 52pt tab row that ends exactly where the system inset begins, so the inset is the only space under the row on every device: 34pt home indicator, 16–48dp Android gesture pill / 3-button bar, or zero. Icon centers land at ~60pt on an iPhone 17 Pro simulator.

Everything that was tuned to the old 100 literal now derives from the bar (bottomNavBarClearance, bottomNavChatBarOffset, homeChatBarClearance): the home chat bar, the Tasks FAB, and the trailing scroll spacers on all four tabs. Those literals ignored the system inset entirely, so on an inset device the last list row ended 34–48pt under the bar, and the apps search results (bottom: 64) under-cleared it on every device.

2. Touch targets under 44pt in the home shell

Apple's HIG asks for 44×44pt and Material for 48dp. Each of these had a target exactly as small as the shape it painted:

Control Before After
7 header buttons (settings, search, date filter, sync, export, show-completed, create-app), phone-call button 36×36, 8pt apart 44×44, touching
Device / connect pill 36 tall 44 tall
Folder "+" and Goals "+" (both tabs) 32×32 44×44
Conversation filter chips 36 tall 44 tall
"Clear completed" ✕ on a task section (destructive) 14×14 ≥44×36
Task section collapse chevrons ~19 tall, dead gaps 36 tall, opaque
Chat bar mic (a near miss opened text chat) 42×42 56×62

Nothing moves on screen: HeaderCircleButton keeps the painted circle and centers it in the larger target, and surrounding margins shrink by the overhang. Task section headers top out at 36pt because a task row starts 4pt below them.

3. Screen-reader labels

The four bottom tabs are bare icons whose label strings only ever went to analytics, so VoiceOver/TalkBack announced nothing for the app's primary navigation. Tabs now carry a localized label plus button/selected state, and every control converted in (2) gets a label from existing keys. One new key, home, translated in all 49 locales.

4. Bottom inset counted twice

Seven onboarding cards and both bottom bars on the transcription settings page added MediaQuery.padding.bottom to their own padding and wrapped their content in SafeArea(top: false). Nothing above consumes the inset, so the primary button floated over 2×34+8 = 76pt of dead space on iPhone (104dp on Android 16 with a 3-button bar). The SafeArea now owns it alone.

5. Android

The conversation detail page floats its bar at a literal bottom: 32 over an extendBody Scaffold. Android 16 enforces edge-to-edge (targetSdk 36) and draws a 3-button bar up to 48dp tall over that strip, covering the lower 16dp of the bar's buttons. The bar now never sits lower than the reported inset (iPhone moves 2pt; smaller/zero insets do not move).

Otherwise Android needs no special-casing for this change: the tab bar reads viewPadding, which already distinguishes gesture pill, 3-button bar, and the Android 15 opt-out (zero inset). Audited and left alone, with reasons:

  • Back navigation is healthy: 0 WillPopScope, 14 PopScope, predictive back is on by default at targetSdk 36.
  • windowOptOutEdgeToEdgeEnforcement=true is dead on Android 16 (honored only through API 35), so Android 15 and 16 run two different inset regimes. Removing it would turn Android 15 edge-to-edge too and needs its own device QA; not in this PR.
  • No SystemUiOverlayStyle is set anywhere, so nav-bar icon brightness and the contrast scrim are platform defaults. On a near-black UI this is likely fine; unverified on a device.
  • DismissDirection.horizontal on task rows may lose startToEnd swipes to the left-edge back gesture. Needs a device check.

Product invariants affected

none

Failure class (fixes)

Failure-Class: FC-bottom-control-under-system-inset

The class's contract is that bottom-anchored chrome reserves the window's bottom view padding and that anything positioned against it carries the same inset "so the pair stays in step". This PR repairs both directions of that boundary: content positioned against the bar that did not carry the inset (tab-page spacers, the Tasks FAB, the conversation bar on Android 16), and chrome that reserved it on top of slack it already had (the tab row) or reserved it twice (onboarding, transcription bars). The guard artifact app/test/widgets/bottom_nav_bar_test.dart now also pins that the row ends exactly at the inset and that the derived clearances follow the row.

Tests changed alongside the code they assert

bottom_nav_bar_test.dart is extended, not rewritten: the three #12858 assertions (icons clear the inset, lift by exactly the inset, viewPadding not padding) are unchanged and still pass. The new expected values come from platform documentation, not from the implementation: UITabBar's 49pt content row on the 34pt home-indicator safe area (Apple HIG, Tab bars / Layout), Material bottom navigation's 56dp row, and the 44pt / 48dp minimum targets (Apple HIG Buttons; Material Accessibility → Touch targets).

Verification

Repository BasedHardware/omi, branch fix/mobile-bottom-ergonomics off origin/main 492c62f764, Flutter 3.44.5 (the CI pin).

  • Unit/widget (hermetic): bash app/test.sh — 2021 passed, 5 skipped, 1 failed. The failure is test/unit/search_rank_grouping_test.dart ("same-day search hits…"), which this branch does not touch: it assumes 12:00 and 18:00 UTC fall on one local day, and the verifying host is UTC+07. It passes under TZ=UTC (CI's zone); flagged separately.
  • Journeys (hermetic, real pages over a loopback fixture backend): scripts/dev-harness/mobile-verify.sh fast --all — 20 executed, 20 passed (j1 conversation detail, j2 chat, j3 memories, j4 session recovery, j5 capture). The selector fell back to the full suite for this diff.
  • PR contracts: scripts/pr-preflight --lane local --pr-body-file … — 14 checks passed.
  • Mutation checks: the geometry test fails with kBottomNavRowHeight restored to 80 (Actual: <80.0>); the onboarding inset test fails with the old padding restored (Expected: 34.0, Actual: <68.0>).
  • Analyzer: bash app/scripts/analyze_ratchet.sh — passed, no rule above baseline.
  • l10n: flutter gen-l10n reports the same two untranslated keys as main (memoryAllowUse, memoryDontUse) and none from this PR.
  • Rendered on an iPhone 17 Pro simulator (iOS 26.5, 34pt inset): the real BottomNavBar, HeaderCircleButton and FolderTabs mounted in a local preview entrypoint (gitignored, no auth/backend). Confirmed icon centers ~60pt from the screen edge, the last list row scrolling fully clear of the bar, the FAB riding on the bar, header circles still on the 16pt margins, and — with debugPaintSizeEnabled — 44pt targets touching and tab targets ending at the inset.
  • Not exercised: the full signed-in app on a device or emulator, and nothing on Android hardware. The Android 16 3-button behavior is reasoned from the platform contract and covered by the inset-parameterized tests, not observed.

🤖 Generated with Claude Code

Review in cubic

Git-on-my-level and others added 5 commits September 17, 2026 13:28
#12858 reserved the window's bottom view padding under the home tab bar, which
was right for Android's 3-button bar, but it added the inset beneath a 100pt
bar that already kept ~27pt of empty space under its icons. On an iPhone the
two gaps stack: the icons sit ~74pt above the screen edge, against ~59pt for a
platform tab bar (UITabBar is a 49pt row on the 34pt safe area).

Split the bar into a 20pt fade and a 52pt tab row that ends exactly where the
inset begins, so the inset is the only space under the row on every device
(34pt home indicator, 16-48dp Android gesture pill / 3-button bar, or zero).
The gradient's fade stop is now derived from the fade height instead of a
fraction of a height that grows with the inset.

Everything tuned to the old 100pt literal now derives from the bar: the home
chat bar offset, the home/conversations/tasks/apps trailing scroll spacers and
the Tasks FAB. Those literals ignored the system inset entirely, so on an
inset device the last list row ended 34-48pt under the bar, and the apps
search results (bottom: 64) under-cleared it on every device.

Failure-Class: FC-bottom-control-under-system-inset

Verified: flutter test test/widgets/bottom_nav_bar_test.dart (6 passed); the
new geometry test fails with kBottomNavRowHeight restored to 80.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
The four home tabs are bare icons, and their label strings were only ever sent
to analytics, so VoiceOver and TalkBack read nothing for the app's primary
navigation. Give each tab a localized label with button and selected state.
Conversations, Tasks and Apps reuse existing keys; Home is a new key,
translated in all 49 locales (gen-l10n reports the same two pre-existing
untranslated keys, memoryAllowUse / memoryDontUse, and no new ones).

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Apple's HIG asks for 44x44pt hit targets and Material for 48dp. The home
shell's most-used controls were well under both, because each one's touch
target was exactly the small shape it painted:

- all seven header buttons (settings, search, date filter, sync, task export,
  show-completed, create-app): 36x36, 8pt apart
- the "+" buttons for folders and goals (both tabs): 32x32
- conversation filter chips: 36pt tall
- the "clear completed" x on a task section: a bare 14pt icon, and the
  smallest target in the app guards a destructive action
- the section collapse chevrons: ~19pt tall with dead gaps between icon and
  label
- the chat bar's mic: 42pt, nested in the chat bar's own target, so a near
  miss opened text chat instead of voice

HeaderCircleButton keeps the painted circle and centers it in a 44pt target;
surrounding margins shrink by the overhang so nothing moves on screen. Chips
pad themselves inside a 44pt strip that still occupies 52pt. Task section
headers move their vertical padding inside each child so the tappable ones own
the header's full 36pt height (a task row starts 4pt below, so there is no
room for 44) and reach sideways into the Spacer. The mic owns the chat bar's
full height and rounded end.

Every converted control also gets a localized screen-reader label from
existing keys; none had one.

Verified: flutter test test/widgets/header_circle_button_test.dart
test/widgets/folder_tabs_tap_target_test.dart
test/widgets/goals_widget_performance_test.dart (all passed).

Co-Authored-By: Claude Fable 5.1 <[email protected]>
…on bars

Seven onboarding cards (sign-in, AI consent, name, language, permissions,
permissions checker, speech profile) and both bottom bars on the transcription
settings page added MediaQuery.padding.bottom to their own padding and then
wrapped their content in SafeArea(top: false), which adds the same inset again.
Nothing above them consumes it, so on an iPhone the primary button floated over
2 x 34 + 8 = 76pt of dead space; on Android 16 with a 3-button bar, 104dp.

Drop the manual term and let the SafeArea own the inset. Devices that report no
inset lay out exactly as before.

Failure-Class: FC-bottom-control-under-system-inset

Verified: flutter test test/widgets/onboarding_bottom_inset_test.dart passes;
with the name card's old padding restored it fails with 68.0 where 34.0 is
expected.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
…on bar

The conversation detail page floats its tab/play bar at a literal bottom: 32
over an extendBody Scaffold. That clears the iPhone home indicator, but Android
16 enforces edge-to-edge (targetSdk 36) and draws a 3-button navigation bar up
to 48dp tall over the same strip, covering the lower 16dp of the bar's buttons.
The bar now never sits lower than the bottom inset the window reports. iPhone
moves by 2pt (32 -> 34); devices with a smaller or zero inset do not move.

Failure-Class: FC-bottom-control-under-system-inset

Verified: flutter test test/unit/detail_floating_bar_offset_test.dart passes.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@Git-on-my-level
Git-on-my-level merged commit d7837b0 into main Sep 17, 2026
41 checks passed
@Git-on-my-level
Git-on-my-level deleted the fix/mobile-bottom-ergonomics branch September 17, 2026 09:57
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