Skip to content

πŸ‘©β€πŸ« Teacher journey

Main scenario: analyze your lesson, target struggling students, act and follow up.

1. Login & navigation

  1. /login β†’ [email protected] / demo1234 β†’ redirected to /dashboard.
  2. Topbar: Post-Lesson (default), History, Stats, Messages, Follow-Up.

2. Select a lesson

  1. Class selector (class β€œMarch 2026”).
  2. Course button (remembers the class) β†’ PlanningModal (month/day view).
  3. Click a day β†’ detail β†’ Open this lesson β†’.
  4. The dashboard loads: class metrics + timeline + students table.

Intermediate states

  • No course selected β†’ β€œNo lesson selected” screen + β€œChoose a lesson →” button.
  • Selection persisted in localStorage; the URL ?class=&session= takes priority.

3. Read the lesson

  • Metrics row (7 tiles, see metrics) β€” hover the β€œ?”.
  • Engagement chart per minute (colored segments).
  • Students table sorted by score; flags ⚠/🚨, trend β–²/β–Ό.

4. Dive into a student

  1. Click the row β†’ student panel (right).
  2. 6 domains, Attention metrics (6 tiles), Cumulative record (5 lessons), interpretation (advisory/priority), Tomorrow's recommendation.
  3. Actions:
  4. + Save to plan β†’ the student appears in Follow-Up.
  5. 🎯 Generate IEP β†’ individual intervention plan (LLM, OPENROUTER_API_KEY required).
  6. βœ‰ Parent report β†’ parent summary (LLM).
  7. ↓ Full report β†’ full report (PDF via textToPdf).

5. Review the video

β–Ά Watch video β†’ player; selecting a student filters the synchronized timeline; seek works (HTTP Range).

6. Follow up

  • Follow-Up tab: the list of planned students (add/remove).
  • Messages tab: talk to parents per student (or from the student panel).
  • History / Stats: class context over the last lessons / the month.

Journey diagram

flowchart TD
  A[Login teacher] --> B[Dashboard]
  B --> C{Choose a lesson}
  C -->|PlanningModal| D[Lesson loaded]
  D --> E[Metrics + timeline]
  E --> F[Click student]
  F --> G[Profile: domains + attention + cumulative]
  G -->|Save to plan| H[Follow-Up]
  G -->|IEP/report| I[LLM modal or PDF]
  G -->|Watch video| J[Player + synced timeline]

To check in tests

The teacher β€œown lessons” filter applies to the session list in the DB; the Post-Lesson view stays complete (lake). Know this discrepancy if you test a teacher account before the import.