Add student administration view (studio-admin) #24
Reference in New Issue
Block a user
Delete Branch "feature/student-administration"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implements #22 — a read-only studio-admin Students area.
What's included
Auth\StudentController(gated onmanage_students):us_studentusers with name, email, registered date, and quick counts (upcoming lessons, active group enrolments); each row links to the detail page.?student_id=) — account info, Upcoming and Past lessons (offering, instructor, status), and group-class enrolments.Auth\StudentSchedule::partition()— pure, unit-tested upcoming/past split (upcoming ascending, past descending; rows without a slot time fall to past).BookingRepository::countUpcomingForStudent,EnrollmentRepository::countActiveForStudent(tested).templates/admin/students.php,templates/admin/student-detail.php.AdminMenu(noPluginchange; the repos were already available there).Notes
manage_students.Tests
tests/Unit/Auth/StudentScheduleTest.php+ the two repo count tests.composer test(127 tests),composer cs, PHPStan level 6, and no-debug all pass.Refs #22
🤖 Generated with Claude Code