# User Progress Frontend Integration ## Purpose User progress follows the frontend three-layer architecture for sign language progress and dashboard zone check-ins. ```text View -> Business Logic -> API/Data Access -> Backend ``` ## Files View layer: - `frontend/src/components/frameworks/SignLanguage.tsx` - `frontend/src/components/sign-language/SignLanguageProgressPanel.tsx` - `frontend/src/components/sign-language/SignLanguageVideoModal.tsx` - `frontend/src/components/frameworks/Dashboard.tsx` - `frontend/src/components/dashboard/DashboardZoneCheckIn.tsx` - `frontend/src/components/frameworks/ZonesOfRegulation.tsx` - `frontend/src/components/zones-of-regulation/ZonesOfRegulationView.tsx` Business logic layer: - `frontend/src/business/dashboard/hooks.ts` - `frontend/src/business/dashboard/selectors.ts` - `frontend/src/business/sign-language/hooks.ts` - `frontend/src/business/sign-language/selectors.ts` - `frontend/src/business/user-progress/hooks.ts` - `frontend/src/business/user-progress/mappers.ts` - `frontend/src/business/user-progress/types.ts` API/data access layer: - `frontend/src/shared/api/userProgress.ts` - `frontend/src/shared/types/userProgress.ts` Constants: - `frontend/src/shared/constants/userProgress.ts` ## Behavior - Learned sign IDs load from `GET /api/user_progress?progress_type=sign_learned`. - Marking a sign learned uses `POST /api/user_progress`. - Unmarking a sign uses `DELETE /api/user_progress/by-item`. - The sign language page combines user progress with backend content catalog records in `useSignLanguagePage`. - Dashboard zone check-in uses `item_id=current` and `progress_type=zone_checkin`; dashboard page composition lives in `useDashboardPage`. - The zones of regulation page currently renders content catalog records only. It does not persist check-ins; adding that interaction requires a dedicated UX task. - Views render explicit backend errors from React Query state. - User progress ownership is derived by the backend from the authenticated session. ## Remaining Related Work Other module progress types should reuse this API only when the data is truly current-user progress. Aggregate director reporting should use separate backend summary endpoints.