Manage Peer Mentor Location Consent for Map Visibility
The map's value depends on how many peer mentors have consented to share their approximate location. Coordinators need visibility into consent status across their chapter roster and a mechanism to encourage opt-in without applying pressure. The location-consent-dialog is shown to peer mentors when they first access the map feature or from their profile settings; coordinators cannot grant consent on behalf of mentors. The coordinator sees a summary banner on the map screen showing 'X of Y mentors visible on map' with a button to send an in-app notification inviting non-consenting mentors to review their privacy settings. Location data is stored at municipality precision only (configurable via location-privacy-config), never exact GPS coordinates. The consent model complies with GDPR and the organisation's data processing agreements.
User Story
Acceptance Criteria
- Given the coordinator opens the map view, when the screen loads, then a summary indicator shows the count of mentors visible on the map vs. total mentors in the chapter
- Given the coordinator taps the 'X mentors not on map' indicator, when the action sheet opens, then they see options to view the list of non-consenting mentors or send a bulk opt-in invitation notification
- Given the coordinator sends an opt-in invitation, when the action completes, then a confirmation toast confirms the notification was queued and the action cannot be repeated for the same mentors within 7 days to prevent harassment
- Given a peer mentor has not consented to location sharing, when the coordinator views their profile from the list fallback, then a clear label states 'Not visible on map — location sharing not enabled' without revealing their actual location
- Given the location-privacy-config is set to municipality-level precision, when mentor locations are rendered on the map, then markers are placed at the municipality centroid, not the mentor's exact address
- Given a peer mentor revokes location consent, when the change is synced, then their marker is removed from the map within 60 seconds via Supabase realtime subscription without requiring a manual refresh
Business Value
The organisations involved serve users with disabilities who have heightened privacy concerns and, in some cases, safety needs. Building strong, transparent consent controls into the map feature is non-negotiable for GDPR compliance and for maintaining trust with peer mentors who volunteer their time. A poorly handled consent model could cause mentors to leave the platform entirely. Conversely, a well-designed consent flow that maximises opt-in rates directly improves the coordinator's matching capability and the organisation's operational effectiveness.
Components
- Map View Screen ui
- Location Consent Dialog ui
- Mentor Location Service service
- Location Consent Service service
- Mentor Location Repository data
- Location Privacy Configuration infrastructure
- Supabase Realtime Subscription Service infrastructure