Flows by role
This section describes the real user journeys as implemented in the code
(web/src/routes/*, dashboard components). Useful to test a specific
scenario.
flowchart LR
L["/login"] --> R{role}
R -- admin --> D["dashboard + ⚙ Admin"]
R -- director --> D2["dashboard (without Admin)"]
R -- teacher --> D3["dashboard<br/>(messages ok)"]
R -- parent --> P["/parent (portal)"]
| Teacher | Director | Admin | Parent | |
|---|---|---|---|---|
| Route | /dashboard |
/dashboard |
/dashboard |
/parent |
| See all lessons | no (own) | yes | yes | own children |
| Messages tab | ✅ | ✅ | ✅ | via portal |
| Admin tab | ❌ | ❌ | ✅ | ❌ |
| Video upload / pipeline | ❌ | ❌ | ✅ | ❌ |
* the teacher filter is
sessions.teacher_id(the demo sessions all belong to the same technical user, so a teacher account will practically see few sessions in the DB — the dashboard list, however, is driven by the lake and stays complete).
The following pages detail each journey step by step: