PeerMentorSelectorWidget
Component Detail
User Interface
medium complexity
mobilefrontend
0
Dependencies
0
Dependents
1
Entities
0
Integrations
Description
Inline selector component that loads and displays the coordinator's managed peer mentor roster. Supports search and selection of a single peer mentor before the proxy registration form is opened. Fetches only mentors within the coordinator's assigned scope to prevent cross-organisation proxy submissions.
peer-mentor-selector-widget
Sources & reasoning
Lines 83-84 define proxy reporting as a shared coordinator need for NHF, HLF, and Barnekreftforeningen, explicitly motivated by peer mentors who will not or cannot use the app. Line 151 places the requirement at SHOULD HAVE in Phase 2 (Fase 2), which maps to v1.0 by ordinal position. The blueprint also assigns [v1.0] to this feature, confirming the target release.
-
docs/source/likeperson.md · line 83-84Koordinatorer må ha mulighet til å registrere aktivitet på vegne av sine likepersoner, enten enkeltvis eller samlet for faste aktiviteter (f.eks. ukentlig trening med mange deltakere).
-
docs/source/likeperson.md · line 151| Bulkregistrering / proxy-rapportering | ✓ | ✓ | - | ✓ | ✓ | SHOULD HAVE | 2 |
Responsibilities
- Fetch the list of peer mentors assigned to the currently authenticated coordinator
- Render a searchable, scrollable list of mentors with name and status indicators
- Emit a selection event with the chosen mentor's ID and display name
- Show an empty state when no mentors are assigned to the coordinator
- Disable selection and show a loading indicator while the roster is being fetched
Interfaces
loadRoster(coordinatorId: string): Promise<PeerMentor[]>
onMentorSelected(mentor: PeerMentor): void
filterRoster(query: string): PeerMentor[]