findfamily: document pairing and map chrome after UI changes
- Commit
23dbc53350b2fa7400743ee1c541881f1944cf17- Author
- Vayun Mathur <[email protected]>
- When
- 2026-12-06 02:46 UTC (1 hour ago)
- Parents
17ebcf5
AGENTS.md now describes the current state only: invites carry no key-fingerprint check (legacy k= ignored), Route has no SecurityCodeDialog, PersonSheet hosts detail plus the history scrubber, Find Nearby is in the transparent top bar with its back button, the history FAB replaces the plus FAB, and SecurityCodeDialog is no longer a key file. No behaviour change in this commit. Verified: ./gradlew :findfamily:lint :findfamily:lintVitalRelease :findfamily:testDevUnitTest and :findfamily:compileDevScreenshotTestKotlin pass on the preceding commits. The :findfamily:metadata task renders but its lexicographic file ordering would renumber every tracked store screenshot (pre-existing, unrelated to these screens), so the tracked metadata_data images were left untouched rather than committing a shuffled listing.
Diff
findfamily/AGENTS.md
diff --git a/findfamily/AGENTS.md b/findfamily/AGENTS.mdindex d6b1bd39fa..9d2d53e459 100644--- a/findfamily/AGENTS.md+++ b/findfamily/AGENTS.md@@ -16,12 +16,12 @@ WebSocket relay host: `wss://api.maproj.org/api/ws` (Cloudflare FIRST_PARTY pins ## Overview **Purpose:** End-to-end encrypted location sharing for family and friends — no emails, phone numbers, or personal info required. Requires internet. **Key features:**-- `findfamily://add/<base26>` invites with key-fingerprint check, and temporary links; the people page offers no per-person hide/sharing toggle, no delete-person action, and no overflow menu icon (pause sharing via the Quick Settings tile)+- `findfamily://add/<base26>` invites (pairing performs no security-code or invite-fingerprint verification; a legacy `k=` query is ignored), and temporary links; the people page offers no per-person hide/sharing toggle, no delete-person action, and no overflow menu icon (pause sharing via the Quick Settings tile) - Saved places (waypoints) with enter/leave notifications plus no-show alerts driven by `domain/NoShowPolicy` - Live battery, speed, and dwell-time per person; UWB precision ranging where hardware supports it - Powered-off finding (BLE beacons) and a Quick Settings tile to stop sharing instantly **Architecture / data-flow:** Single `MainPage` UI + `platform/FindFamilyViewModel` over `data/FindFamilyRepository` (Room: users, waypoints, links, no-show alerts); live location flows through `util/LocationTracking*` foreground service + `tracker/` BLE protocol and `uwb/` ranging, relayed E2EE via `:library:e2ee-p2p` (`util/Networking*`). `onCreateBeforeContent`: parse the add-invite deep link, then `NetworkClient.init(FIRST_PARTY)`.-**Entry points + reading order:** `Route` (`MainPage` / `PersonSheet` / `WaypointSheet` / `FirstRunSheet` / `AddPersonDialog` / `AddLinkDialog` / `AddTrackerDialog` / `MissingFeaturesDialog` / `SecurityCodeDialog` / `NoShowAlertDialog` / `PermissionUpgradeDialog` / `UwbRangingPage`) → `Navigation.kt` → `ui/MainPage.kt` → `platform/FindFamilyViewModel.kt` → `data/FindFamilyRepository.kt`. Dialogs are routes: screens push `Route.…Dialog` and the entry renders the stateless `…Content` under `ui/dialogs/` unconditionally (all `DialogPage()`); `PersonDetailSheet` only requests the no-show dialog via its `onShowNoShowAlert` callback. Person/waypoint selection is also route-driven but is not a dialog: `PersonSheet` / `WaypointSheet` entries render `MainPage`, whose bottom panel (phone `BottomSheetScaffold` sheet, expanded side panel) swaps from the family list to that route's person/waypoint content, so the map stays reachable to move a saved place by dragging it; back returns the panel to the family list. Every route has a deterministic capture in `src/screenshotTest` (`MetadataPreviews`, `<n>-<route-kebab>`).+**Entry points + reading order:** `Route` (`MainPage` / `PersonSheet` / `WaypointSheet` / `FirstRunSheet` / `AddPersonDialog` / `AddLinkDialog` / `AddTrackerDialog` / `MissingFeaturesDialog` / `NoShowAlertDialog` / `PermissionUpgradeDialog` / `UwbRangingPage`) → `Navigation.kt` → `ui/MainPage.kt` → `platform/FindFamilyViewModel.kt` → `data/FindFamilyRepository.kt`. Dialogs are routes: screens push `Route.…Dialog` and the entry renders the stateless `…Content` under `ui/dialogs/` unconditionally (all `DialogPage()`); `PersonDetailSheet` only requests the no-show dialog via its `onShowNoShowAlert` callback. Person/waypoint selection is also route-driven but is not a dialog: `PersonSheet` / `WaypointSheet` entries render `MainPage`, whose bottom panel (phone `BottomSheetScaffold` sheet, expanded side panel) swaps from the family list to that route's person/waypoint content, so the map stays reachable to move a saved place by dragging it; back returns the panel to the family list. Every route has a deterministic capture in `src/screenshotTest` (`MetadataPreviews`, `<n>-<route-kebab>`). **Gotchas:** - Location permission spec must request fine AND coarse together (Android 12+ Precise/Approximate choice; fine alone is ignored), plus background location and `BLUETOOTH_SCAN` — the powered-off-finder scanner starts then dies without it - `singleTop` warm-start invites/UWB taps arrive via `onNewIntent`, not a fresh `onCreate`@@ -148,10 +148,11 @@ location sharing never starts there. - com/vayunmathur/findfamily/ui/MainMapSlot.kt - com/vayunmathur/findfamily/ui/MainSheetContent.kt - com/vayunmathur/findfamily/ui/MapView.kt-- com/vayunmathur/findfamily/ui/MainFabOverlay.kt+- com/vayunmathur/findfamily/ui/MainFabOverlay.kt — history FAB over the map (selected person, present mode only; enters history mode)+- com/vayunmathur/findfamily/ui/MainPageOverlays.kt — transparent `TopAppBarOverlay` over the map: back button for a selection plus the Find Nearby action for a selected non-self UWB person and the GPS warning - com/vayunmathur/findfamily/ui/FamilyListSheet.kt - com/vayunmathur/findfamily/ui/PersonDetailSheet.kt-- com/vayunmathur/findfamily/ui/PersonSheet.kt — bottom-panel person content for `Route.PersonSheet` (detail + Find Nearby/verify/history), hosted by `MainPage`'s panel, not a dialog+- com/vayunmathur/findfamily/ui/PersonSheet.kt — bottom-panel person content for `Route.PersonSheet` (detail + history scrubber in history mode), hosted by `MainPage`'s panel, not a dialog; Find Nearby is an action in the map's transparent top bar and entering history is the history FAB over the map - com/vayunmathur/findfamily/ui/WaypointSheet.kt — bottom-panel saved-place editor for `Route.WaypointSheet` (name/range/delete; place moves with the map centre), hosted by `MainPage`'s panel, not a dialog - com/vayunmathur/findfamily/ui/UserCard.kt - com/vayunmathur/findfamily/ui/UserPicture.kt — face icons via `peopleFaceRequest`: stable SHA-256 memory+disk cache keys and explicit decode size through `:library:image`, so scrolling the people list does not refetch/re-decode faces@@ -165,7 +166,6 @@ location sharing never starts there. - com/vayunmathur/findfamily/ui/dialogs/GpsFallbackWarningDialog.kt - com/vayunmathur/findfamily/ui/dialogs/KeyMismatchDialog.kt - com/vayunmathur/findfamily/ui/dialogs/OutdatedPeerDialog.kt-- com/vayunmathur/findfamily/ui/dialogs/SecurityCodeDialog.kt — stateless `SecurityCodeContent` for previews ### util/ — ViewModel, tracking service, networking - com/vayunmathur/findfamily/util/FindFamilyViewModel.kt - com/vayunmathur/findfamily/util/FindFamilyUiContract.kt