Add subject options and redesign TV dashboard layout

Subject options:
- New subject_options table (auto-created on startup)
- SubjectOut now includes options list; all eager-loading chains updated
- Admin: Options panel per subject with add, inline edit, and delete
- WS broadcast and dashboard API include options in block subject data

TV dashboard:
- Three equal columns: Timer | Activities | Schedule
- Activities column shows current subject's options in large readable text
- Activities area has subject-colored border and tinted background
- Subject name and label displayed correctly using embedded subject data

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This commit is contained in:
derekcandClaude Sonnet 4.6 committed 2026-02-28 11:18:55 -08:00
1 parent c12f07daa3
commit c9441a9c9a
11 files changed
+375 -51

No files matched your search

+2
View File
@@ -1,5 +1,6 @@
from datetime import time
from pydantic import BaseModel
from app.schemas.subject import SubjectOut
class ScheduleBlockCreate(BaseModel):
@@ -25,6 +26,7 @@ class ScheduleBlockUpdate(BaseModel):
class ScheduleBlockOut(BaseModel):
id: int
subject_id: int | None
subject: SubjectOut | None = None
time_start: time
time_end: time
duration_minutes: int | None