Skip to content

fix(app): keep voice introduction below onboarding navigation - #20388

Merged
Git-on-my-level merged 3 commits into
BasedHardware:mainfrom
apoorvdarshan:fix/onboarding-header-spacing
Oct 3, 2026
Merged

Git-on-my-level merged 3 commits into
BasedHardware:mainfrom
apoorvdarshan:fix/onboarding-header-spacing

Conversation

@apoorvdarshan

@apoorvdarshan apoorvdarshan commented Oct 2, 2026 •

Copy link
Copy Markdown
Collaborator

The first prompt on “Let Omi get to know you” starts under onboarding's floating back button and progress dots, covering the title. Reserve a host-owned header above the voice introduction's scroll viewport and consume the top safe-area inset once. Other onboarding steps retain their floating navigation; Settings already supplies an AppBar.

Before and after

Native Release captures from the production voice-introduction page and host layout, with inert voice I/O and no sign-in or account reset. “Before” recreates the original floating-header arrangement; “after” uses the reserved header. These are layout checks, not recording or enrollment tests.

Platform Before After
iOS · iPhone 16 ios before: title overlapped by back button and progress dots ios after: title below reserved navigation header
Android · LAVA LZG411 android before: title overlapped by back button and progress dots android after: title below reserved navigation header

Validation

  • Full TZ=UTC bash app/test.sh --concurrency=4 --reporter expanded: 3,911 tests passed, exit code 0.

  • Focused onboarding tests: all 16 passed. Covers iOS and Android, standard and small viewports, 2× text, header/title separation, a single top safe-area inset, back action, scroll clipping, reachable Start speaking, and unchanged full-screen bottom-card content.

  • Pinned Flutter 3.44.5 / Dart 3.12.2 analyzer ratchet passed, with no baseline changes.

  • agent-flutter read the fixed Android page and tapped Try another prompt; the native UI changed to “My favorite food is ___.”

  • Native Release screenshot fixture built and ran on the connected iPhone 16 and Android LAVA LZG411. Installed over existing apps, with no uninstall or data clearing. Normal Release apps were rebuilt with the matching production profile and installed over both existing apps as Omi 1.0.553 (1326). Android reached the signed-in Home screen; the iPhone boot journal recorded completed auth, owner binding, BLE setup, service startup and full boot, with no startup configuration error or recovery boot. The initial personal install used a mismatched local build profile; that install configuration was corrected without changing this UI patch or clearing app data.

  • The actual generated production environment passed a separate startup-routing and Firebase-project check for both platforms.

  • make preflight: all 25 selected checks passed. Full repository pre-push gate passed.

Failure class

Failure-Class: new

The host overlaid its app-owned chrome without allocating content space; SafeArea only protects against system insets. OnboardingStepLayout owns the allocation, and onboarding_header_spacing_test.dart executes the real layout with the production page rather than checking source strings. The regression covers the composition of the guided introduction (#14514) and shared navigation/progress controls (#18436).

Product invariants affected

none

Failure-Class: new

Keep the first-run back and progress controls in a host-owned header above the voice introduction scroll viewport. Preserve floating chrome for bottom-card steps and consume the top safe area once.

Validation: 3,911 app tests passed, including iOS/Android small-screen and large-text layout regressions; pinned Dart analyzer ratchet passed. A native Release screenshot fixture is included for before/after evidence without account reset.

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

All reported issues were addressed across 7 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

@Git-on-my-level

Copy link
Copy Markdown
Member

Verified a real overlap bug and a clean fix. The new OnboardingStepLayout (app/lib/pages/onboarding/widgets/onboarding_step_layout.dart) reserves a host-owned 60px header row (OmiSpacing.md + kOmiMinTapTarget, both confirmed design tokens) inside a single top SafeArea for the voice-introduction step, and the MediaQuery.removePadding call correctly prevents the page's own SafeArea from double-consuming the inset.

Going file by file:

  • app/lib/pages/onboarding/wrapper.dart — reserveHeader: index == kSpeechProfilePage is the only behavioral change; back button and progress dots wiring is equivalent to the deleted inline code, and the onboarding_back key is preserved. Blast radius is limited to the speech-profile step.
  • app/test/widgets/onboarding_header_spacing_test.dart — this is exactly how a layout regression test should look: iOS and Android, a 320×568 viewport with 2× text, and concrete geometry assertions (title below the header with ~20px gap, no back-button overlap, scroll clipped below the header, reachable Start button). Reusing FakeVoiceIO from the controller test is good isolation.
  • app/integration_test/onboarding_header_capture.dart — the fixture's _InertVoiceIO matches the GuidedVoiceIO interface member-for-member, both marionette_flutter and path_provider are existing dependencies, and it writes only to app-local storage with no sign-in or data reset.
  • app/changelog/unreleased/onboarding-header-spacing.json — follows the app/changelog/README.md fragment convention.
  • .github/failure-classes/FC-onboarding-chrome-overlaps-content.json — matches the existing failure-class corpus format, and the referenced evidence PRs (14514, 18436) are real.
  • .github/agent-docs/mobile-voice-enrollment.md — the added layout-contract and fixture notes check out against the code, and the updated flutter test command includes the new test.

One note before merge: the fork run skipped Dart Analyze & Tests in CI, so the local 3,911-test pass is unverified here — please confirm the full mobile suite runs green (e.g. via ci:full) before merging. Thanks for the thorough before/after captures and for documenting the layout contract.


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 positive-signal Automation verified a genuine fix/quality contribution flutter flutter work labels Oct 3, 2026
@Git-on-my-level
Git-on-my-level merged commit 8de8f03 into BasedHardware:main Oct 3, 2026
41 of 42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

flutter flutter work positive-signal Automation verified a genuine fix/quality contribution

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants