feat(app): flag-gated "Setting up your Omi" onboarding page with store-rating pre-prompt

Merged
KO
2mo ago
+3015-68

What

A flag-gated "Setting up your Omi" onboarding page with a store-rating pre-prompt, modelled on the reference Nik sent (Noe's "Setting up your noe" screen).

  • New step between the Knowledge Graph step and "You're all set": a five-row personalization checklist that ticks every 750 ms (active row spinning), then advances once the knowledge-graph prebuild the flow already started has settled (capped at 5 s).
  • 1.2 s in, an adaptive alert (Cupertino on iOS, Material on Android): "While you wait, has Omi been nice to use?" / "Rating us 5 stars really helps us out ❤️". "Yes, I want to support you!" opens the native store review sheet via in_app_review; "Not really" closes it. The page holds until the alert is answered.
  • Gated client-side by PostHog flag onboarding-setup-rating-prompt (project 302298, flag id 935237, created at 0% rollout, fail-closed), read through AnalyticsManager.isFeatureEnabled and prefetched at the voice step. With the flag off the flow is exactly as today, so App Review never sees it. Turn it on by raising the rollout in PostHog. Debug builds can force it with --dart-define=OMI_ONBOARDING_SETUP_RATING_PROMPT=1.
  • Registered in config/feature-flags.yaml; two typed C7 analytics events (prompt shown / answered) wired into the mobile-instrumentation-presence consumer; 11 l10n keys in all 49 locales; changelog fragment added.

Verification

  • flutter test test/widgets/onboarding_setup_page_test.dart test/unit/onboarding_setup_rating_prompt_gate_test.dart → 12 passed (after the heart change too).
  • dart analyze clean on the new files; python3 app/scripts/l10n.py check → ok, 49 locales; event + feature-flag registry checks OK.
  • Driven live on the iPhone 16 Pro simulator (dev debug build, flag forced on): Knowledge Graph → Continue → setup page renders, checklist ticks, alert appears over it, "Yes" and "Not really" both release the page to "You're all set". Screenshots + recordings in ~/Downloads/omi-onboarding-setup-rating/ (1-setup-mid-animation-*.png, 2-setup-rating-dialog-*.png, 3-setup-all-ticked-dialog-holds-yes.png, 4-after-answer-yes.png, setup-yes.mov, setup-no.mov). The screenshots predate the heart glyph change (white heart rendered empty in the simulator; now ❤️).
  • UNVERIFIED: the native review sheet itself (requestReview() is a no-op on the simulator); needs a TestFlight build on a device.

Apple note

Pre-prompting before the native rating sheet is tolerated but discouraged by Apple's guidelines; that is why it ships dark behind the flag.

Product invariants affected

none