Coordinator Manually Updates a Peer Mentor's Availability Status
Coordinators have administrative oversight over peer mentors within their organisation. When a mentor reports unavailability via phone or in person, the coordinator should be able to update that mentor's status directly without waiting for the mentor to act. The Pause Management Service applies different Row Level Security: coordinators can update any mentor record within their organisation, while mentors can only update their own. The coordinator accesses this action from the mentor's profile detail screen or the member overview. The action requires the same optional reason and resume date fields available to mentors, and triggers notification to the mentor (informing them their status was updated by their coordinator). The coordinator also receives confirmation that the change was saved.
User Story
Acceptance Criteria
- Given I am a coordinator viewing a peer mentor's profile, when the mentor is active, then I can see a 'Set as Paused' action available to me
- Given I initiate a pause on behalf of a mentor, when I confirm the action, then the Pause Management Service applies the change with coordinator-level RLS permissions
- Given I pause a mentor on their behalf, when the status is saved, then the mentor receives a push notification informing them that their coordinator has updated their availability status
- Given I am a coordinator, when I attempt to update a mentor belonging to a different organisation, then the operation is rejected by RLS policy and an error is shown
- Given I set a mentor's status to active, when the save succeeds, then the mentor appears again in active matching pools and assignment dispatch queues
- Given I update any mentor's status, when the operation completes, then a coordinator notification to the relevant coordinator (which may be myself) is sent as per the standard notification flow
Business Value
Not all peer mentors will consistently use the app, particularly older volunteers or those with limited digital confidence. Coordinators must be able to maintain accurate availability data regardless of mentor app adoption levels to prevent sending assignments to unavailable mentors — a direct service quality risk. Coordinator-initiated status management ensures data integrity during the gradual onboarding period described in the workshop requirements.
Components
- Pause Management Service service
- Availability Repository data
- Coordinator Notification Service service