29 — Family Help Board Module
Version: 1.3
Status: Backend + page + More menu; calendar integration partial
Last Updated: 2026-06-02 11:11:55
Master requirements: 02-REQUIREMENTS.md §3.12, §7.38 (REQ-HELP-01–12). Tier matrix: 23-SUBSCRIPTION-TIER-ENTITLEMENTS-MATRIX.md §2.
Module slug: family_help
Tier: Family, Complete
Route: /help-requests
Purpose
Section titled “Purpose”Lets care circle members ask for help with household, school, errand, and respite tasks — and lets others volunteer (“I’ll do this”). Reduces carer isolation by making latent family capacity visible.
Implementation status
Section titled “Implementation status”| Layer | State | Notes |
|---|---|---|
| Migrations | Done | V080 — help_request_types, family_help_requests; V093 alert channel; V094 subscription CHECK |
| API | Done | routers/help_requests.py — types, CRUD, take, complete, cancel |
| Service / repo | Done | help_requests_service.py, repositories/help_requests.py |
| Care alerts | Done | new_help_request on create; take resolves new_help_request:{id} + help_request_taken; channel toggle Family help board (V093, /admin/alerts). Completion acknowledgement alert — not yet (REQ-HELP-07) |
| Page UI | Done | HelpRequests.tsx — Needs help / In progress / Done tabs |
| More menu | Done | More.tsx — Family help board when module enabled |
| Primary nav tab | Deferred | Not on bottom bar; discover via More |
| Calendar integration | Partial | Filter pill “Help” in Calendar.tsx — UI only, does not filter or render help entries |
| Release ownership | Future | REQ-HELP-06 — 4-hour un-volunteer rule |
API surface
Section titled “API surface”| Method | Path | Purpose |
|---|---|---|
| GET | /api/help-requests/types | Type catalogue for picker |
| GET | /api/patients/{id}/help-requests | List (optional status filter) |
| POST | /api/patients/{id}/help-requests | Create request |
| POST | /api/patients/{id}/help-requests/{id}/take | Volunteer |
| POST | /api/patients/{id}/help-requests/{id}/complete | Mark done |
| DELETE | /api/patients/{id}/help-requests/{id} | Cancel (originator) |
Gate: require_module("family_help") via _help in main.py.
Auth: Patient routes use require_patient_access / require_carer_role. GET /api/help-requests/types is tenant-global — require_tenant_member only (not require_carer_role, which would wrongly require ?patient_id=). Shipped production deploy-20260602-1110. Regression: tests/test_alerts.py::test_help_request_types_without_patient_id_query.
Request lifecycle
Section titled “Request lifecycle”Key files
Section titled “Key files”| File | Role |
|---|---|
backend/routers/help_requests.py | HTTP layer |
backend/services/help_requests_service.py | Alerts + status transitions |
backend/repositories/help_requests.py | SQL |
frontend/src/pages/HelpRequests.tsx | Main UI |
frontend/src/lib/api.ts | helpRequestsApi |
Remaining work
Section titled “Remaining work”- Add nav entry (More page + mobile bottom nav when
family_helpenabled). - Render help requests on calendar; wire
calFilter === 'help'inCalendar.tsx. - Implement release-ownership flow (REQ-HELP-06).
- Agenda sections per REQ-CAL-16 (“Help needed” grouping on
/schedule).