Parent portal
Route /parent — the parent sees the progress of their child(ren): summary,
levels, timeline and plain-language LLM report.
Features (routes/parent/+page.server.ts):
- Child selector if multiple linked children (parent.test1 has 2).
- Summary: card with engagement level, attention, participation, comfort — keywords “Good / Variable / Needs attention” according to the 65 / 45 % thresholds.
- Individual timeline: the child's engagement curve over the chosen lesson.
- Generated parent summary (LLM via
getReport('parent_summary', …)) ifOPENROUTER_API_KEYis configured — otherwise a clear “IEP disabled” message. - Lesson selector (among the 15); URL links
?child=…&lesson=…. - Messages with the teacher are available from the portal (parent role).
Access restricted to the
parentrole; the child is resolved viaparent_students.