feat(android): first-run onboarding wizard with backup permission step #1386
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/android-onboarding-wizard"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary\n- First-run wizard after login: welcome screen → backup permission step (spec: docs/superpowers/specs/2026-10-25-android-onboarding-backup-wizard-design.md)\n- Backup step explains background backup and requests media access, EXIF location, and notification permissions inline via real system dialogs; deny/soft-skip never blocks — the backup tab keeps its existing lazy re-request as the retry path\n- Install-level
onboardingCompletedflag in SettingsStore (survives logout, survives reinstall=false → shown once per install)\n- Permission request sequence extracted from BackupScreen into sharedrememberBackupPermissionState()helper so tab and wizard cannot drift; BackupScreen behavior unchanged (regression suite green)\n- Bottom nav hidden on onboarding routes; de/en/da strings in parity\n\n## Verification\n-./gradlew :app:testDebugUnitTest :core:test :app:assembleDebug→ BUILD SUCCESSFUL (app: 784 tests, core: 173 tests, 0 failures)\n- New tests: SettingsStore flag persistence (Robolectric), permission grant/deny matrix SDK 25/29/33 (21), RoutesTest (4)Design 2026-10-25 §4.2 + §3 final integration: MemoriesApp receives the SettingsStore, gates the start destination and the post-login redirect on settings.onboardingCompleted (null session → login; session + pending flag → onboarding/welcome; else photos), adds both onboarding routes with popUpTo(start){inclusive} completion navigation, and hides the bottom NavigationBar on wizard routes via Routes.isOnboarding (forced-choices flow). The flag is read directly from the store at every gate — not cached — so a logout can never serve a stale 'wizard pending' to the next account, and logout never resets it (install-level by design). Wizard completion is the only writer; BackupScreen and its lazy permission asks stay as merged. Also fixes a broken merge in OnboardingBackupScreen (missing material3 Icon import — compile error, no behavior change).