ResumeStatusWidget
Component Detail
User Interface
medium complexity
frontendmobile
0
Dependencies
0
Dependents
1
Entities
0
Integrations
Description
A self-service UI control that allows a paused peer mentor to resume active status with a single action. It displays the mentor's current paused state and presents a clear resume button. Upon confirmation it triggers the resume flow and reflects the updated active status immediately.
resume-status-widget
Sources & reasoning
The pause-resume lifecycle is a single conceptual requirement from §2.3. Resume is the explicit return path; without it, pause is a one-way door and the retention goal is not met. The blueprint assigns [v1.0] matching Fase 2, consistent with the pause feature. The low complexity reflects that it reuses the same status service and notification infrastructure as pause.
-
docs/source/likeperson.md · line 80Likepersoner skal kunne sette seg på pause (midlertidig deaktivering) uten å melde seg ut. Koordinator må varsles.
Responsibilities
- Display current paused status with visual indicator
- Render resume action button and handle mentor confirmation
- Reflect updated active status after successful resumption
- Disable or hide resume action when mentor is already active
Interfaces
renderPausedState(isPaused: boolean): void
onResumeConfirmed(): void
showSuccessFeedback(): void