Commit Graph

1 Commits

Author SHA1 Message Date
Maxim Dolgolyov 977e46e75b refactor: split classroomController.js into 7 domain files (phase 2 of 2)
1618-line monolith split into:
  classroom/_shared.js     — GUEST_EVENTS, emitToSession, hasAccess, canDraw
  classroom/sessions.js    — lifecycle + guest tokens (12 functions)
  classroom/strokes.js     — CRUD + cursor + preview (7 functions)
  classroom/pages.js       — page CRUD + theme (8 functions)
  classroom/chat.js        — messages, reactions, attachments, export (7 functions)
  classroom/permissions.js — draw, hand, mute, screen, attendance (11 functions)
  classroom/sim.js         — simulation relay (5 functions)
  classroom/admin.js       — history, notes, templates, admin views (14 functions)

classroomController.js is now a 9-line re-export facade.
routes/classroom.js unchanged. All 65 exports verified. Tests pass.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-06 17:30:37 +03:00