mirror of
https://github.com/Monkopedia/rouse-context.git
synced 2026-11-23 05:39:59 +00:00
The "Grant historical access" button is disabled until the base Health Connect permission lands, but the grant result navigated straight to the integration-setup screen — so the button was never in a pressable state and historical access was unreachable during onboarding. SETUP mode now stays put after the grant. The primary button becomes state-aware: "Grant All Health Access" while nothing is granted, "Continue" once at least one record type is, and Continue performs the navigation the grant result used to perform. SETTINGS mode, and Cancel's label and behaviour, are unchanged. So the post-grant state is correct on the first recomposition after the dialog returns (no flash of the pre-grant label), onPermissionsResult now publishes the granted record types synchronously and lets the async refresh reconcile. The permission-to-record-type mapping it needs moves into RecordTypeRegistry.namesForPermissions, shared with the repository that already did the same translation inline. Its Boolean return is dropped: nothing consumes it now that the caller no longer branches on it. Claude-Session: https://claude.ai/code/session_01YYSPuh9bZEJkrzvnEpY1QK Co-authored-by: Claude Opus 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| index.html | ||