How risa-remaja-indonesia-sehat/risa-v3 works
RISA is a frontend learning platform: learners explore seven chapter microlearning modules and games, complete chapter-by-chapter progress, then take a post-test; guardians register, consent, create child profiles, and review progress. The map also covers child login and the Temanku community. Backend services and persistence are external and documented as authoritative; unsampled route implementations are represented only where supported by the tree and README, with uncertain links omitted.
Main entry points: client.ts Guardian API Client · chapters Chapter Games · HomeScreen.tsx Progress Home · child-client.ts Child API Client
Components 24
Learning Journey
- Progress Home
components/home/HomeScreen.tsx - Chapter Map
components/home/SunflowerProgressMap.tsx - Chapter Modules
components/modules/ChapterModulePage.tsx - Module Renderer
components/modules/ModuleRenderer.tsx - Chapter Routes
app/chapters - Chapter Games
app/chapters - Game Evaluators
lib/game/evaluate - Game Rules
lib/game/chapter-rules.ts - Progress Logic
lib/game/progress.ts - Guest Progress
lib/game/guest-progress.ts - Post-Test
app/post-test/PostTestContent.tsx
Accounts & Consent
- Guardian Routes
app/guardian - Consent Flow
app/guardian/consent/page.tsx - Child Setup
app/child/setup - Child Login
app/child/login - Child Session
hooks/useChildSession.ts
Guardian Tools
- Guardian Dashboard
app/guardian/dashboard/GuardianDashboardContent.tsx
Child Community
- Temanku Community
app/temanku/TemankuContent.tsx
API Integrations
- Guardian API Client
lib/api/client.ts - Supabase Auth
lib/supabase/client.ts - Child API Client
lib/api/child-client.ts - RISA Backend
Other components
- Learner
- Guardian
Connections 31
- Learner → Progress Home: opens
- Progress Home → Chapter Map: shows progress
- Chapter Map → Chapter Routes: selects chapter
- Chapter Routes → Chapter Modules: renders lessons
- Chapter Modules → Module Renderer: renders blocks
- Chapter Routes → Chapter Games: opens games
- Chapter Games → Game Evaluators: evaluates answers
- Chapter Games → Game Rules: checks rules
- Chapter Games → Progress Logic: updates progress
- Chapter Games → Guest Progress: stores guest score
- Progress Home → Guest Progress: reads guest status
- Progress Home → Post-Test: opens after completion
- Post-Test → Child API Client: loads and submits
- Child API Client → RISA Backend: sends cookie requests
- Guardian → Guardian Routes: registers or logs in
- Guardian Routes → Supabase Auth: authenticates
- Guardian Routes → Guardian API Client: requests guardian actions
- Guardian API Client → Supabase Auth: reads access token
- Guardian API Client → RISA Backend: sends bearer requests
- Guardian Routes → Consent Flow: starts consent
- Consent Flow → Guardian API Client: validates consent
- Consent Flow → Child Setup: continues when valid
- Child Setup → Guardian API Client: creates child profile
- Child Login → Child API Client: logs in child
- Child Session → Child API Client: checks and ends session
- Child Session → Progress Home: provides child progress
- Guardian → Guardian Dashboard: views family progress
- Guardian Dashboard → Guardian API Client: loads dashboard
- Learner → Temanku Community: shares and reads
- Temanku Community → Child Session: checks child session
- Temanku Community → Child API Client: manages community content