📅 Sessions & Teachers
The weekly schedule and session generation
0 مشاهدة
How it works
On the subscription page, define the weekly schedule: day + time + duration per slot (e.g., Thursday 5:00 PM — 60 minutes). On save, the system generates the actual sessions for the next 8 weeks and keeps extending them automatically.
📸 Screenshot needed: The weekly-schedule section inside a subscription page: one slot row (day/time/duration) and the “Save schedule & regenerate sessions” button.
Conflict prevention
Before saving, the system checks every week of the horizon: is the teacher busy on any of those weeks? Does the student already have another session? On a clash you get a message with the full date of the conflicting session — and for teacher clashes the teacher's schedule opens directly on that day.
📸 Screenshot needed: A conflict toast showing the clashing session's full date, with the teacher-schedule dialog open behind it on that same day.
Smart rules
- Back-to-back sessions (one ends exactly when the next starts) are allowed — not a conflict.
- Pausing a subscription frees its slots: its future sessions are removed so the teacher's calendar opens up; resuming regenerates the schedule automatically (skipping any slot that was booked meanwhile).
- Changing the subscription's teacher cascades to all upcoming sessions automatically.