Skip to content

πŸ‘¨β€πŸ‘©β€πŸ‘¦ Parent journey

The parent never goes to /dashboard: they land on the portal /parent (determined by their role).

flowchart TD
  A[Login parent] --> B["/parent"]
  B --> C{Child selector}
  C --> D["Card: attention / participation / comfort"]
  D --> E[Individual timeline]
  E --> F[LLM parent summary]
  B --> G[Lesson selector]
  B --> H[Messages with the teacher]
  1. Login: [email protected] (2 children β†’ selector visible).
  2. Card: the child's engagement + 3 indicators (Attention πŸ‘, Participation βœ‹, Comfort 😊) with Good / Variable / Needs attention keywords.
  3. Timeline: the child's engagement curve over the selected lesson.
  4. Parent summary: LLM text readable by a non-specialist (parent_summary), if the OpenRouter key is configured.
  5. Messages: talk with the teacher (the Messages topbar button is hidden for the parent role, but the messaging is available in the portal).

The portal is URL-driven: /parent?child=S001&lesson=islam_march_01.mp4 β€” useful to test a specific scenario.

To check in tests

  • [ ] parent.test1 sees 2 children; parent.test2/3 see 1.
  • [ ] Without OPENROUTER_API_KEY, the summaries show a clear β€œdisabled” state.
  • [ ] The parent cannot access /dashboard (403/redirect).