Peer Mentor Profile Service
Component Detail
Service Layer
medium complexity
mobile
0
Dependencies
0
Dependents
4
Entities
0
Integrations
Description
Riverpod provider-based service that computes the derived status of a peer mentor by combining availability and certification data with real-time Supabase subscriptions. Handles status computation logic (active, paused, expired) and provides the domain model consumed by UI components.
peer-mentor-profile-service
Responsibilities
- Compute mentor status from availability and certification data
- Subscribe to real-time Supabase updates for availability changes
- Expose reactive PeerMentor domain model to UI via Riverpod
- Integrate with pause management feature for current status accuracy
- Validate WCAG contrast requirements for status badge selection
Interfaces
getMentorProfile(mentorId)
watchMentorStatus(mentorId)
computeStatus(availability, certifications)
getMentorAssignmentHistory(mentorId)
getMentorCertifications(mentorId)
invalidateCache(mentorId)
Related Data Entities (4)
Data entities managed by this component