Skip to content

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', …)) if OPENROUTER_API_KEY is 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 parent role; the child is resolved via parent_students.