rouse-context/api
Jason Monk b86fea6e45 Fix #69: Move notification mode to global onboarding
Adds a one-time NotificationPreferences step between the Welcome screen
and Home so users pick their audit notification mode (Summary / Each
usage / Suppress) once during onboarding rather than being re-prompted
in every per-integration setup. The setting remains editable from the
global Settings screen, and both surfaces now read/write through a
shared NotificationSettingsProvider backed by DataStore.

Per-integration setup screens (Notification, Outreach, Usage, Health
Connect) never surfaced the mode in the first place, so no UI removal
is required there — they keep their integration-specific options only.

- Adds NotificationSettingsProvider.setPostSessionMode() and implements
  persistence in DataStoreNotificationSettingsProvider.
- Wires SettingsViewModel.setPostSessionMode to actually persist (was a
  no-op TODO).
- Adds NotificationPreferencesViewModel seeded from the provider so the
  previously-chosen option is pre-selected if the screen is revisited.
- Adds Routes.NOTIFICATION_PREFERENCES as an onboarding route; Welcome
  "Get Started" now navigates there, and Continue on the preferences
  screen kicks off relay registration before popping to HOME.
- Covers new flow with ViewModel tests, SettingsViewModel persistence
  tests, and BackStack/NavigationBarVisibility tests for the new route.

Closes #69.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-12 12:53:30 -04:00
..
src Fix #69: Move notification mode to global onboarding 2026-04-12 12:53:30 -04:00
build.gradle.kts Fix #18: Update Gradle wrapper and dependencies to latest stable 2026-04-11 17:36:46 -04:00