Add Syllabus (Ders Programı) with station filtering and weekly auto-refresh
This commit is contained in:
parent
8acc77e441
commit
d0fd394fbd
10 changed files with 1196 additions and 3 deletions
|
|
@ -45,6 +45,31 @@ export interface DashboardStats {
|
|||
bySubject: Record<string, SubjectStat>;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------
|
||||
// Syllabus (Ders Programı) Types
|
||||
// ----------------------------------------------------
|
||||
export interface Lesson {
|
||||
period: string; // e.g. "1. Ders"
|
||||
periodNumber: number; // e.g. 1
|
||||
subject: string; // e.g. "TYT Kimya"
|
||||
teacher: string; // e.g. "ÜLKÜ ESEN"
|
||||
teacherPhoto: string | null; // image url
|
||||
startTime: string; // "09:30"
|
||||
endTime: string; // "10:05"
|
||||
time: string; // "09:30 - 10:05"
|
||||
station: string | null; // "İst1", "İst2", ..., null for whole-class
|
||||
day: number; // 1 = Pazartesi ... 5 = Cuma
|
||||
dayName: string; // "Pazartesi" ... "Cuma"
|
||||
}
|
||||
|
||||
export interface SyllabusStore {
|
||||
weekId: string; // e.g. "2026-W43"
|
||||
weekRange: string; // e.g. "19.10.2026 - 23.10.2026"
|
||||
selectedStation: string | null; // e.g. "İst-4" or null/all
|
||||
lastSynced: string | null;
|
||||
schedule: Record<number, Lesson[]>; // day (1..5) -> raw lessons
|
||||
}
|
||||
|
||||
export interface StudentStore {
|
||||
studentId: string;
|
||||
lastSynced: string | null;
|
||||
|
|
@ -53,6 +78,7 @@ export interface StudentStore {
|
|||
password: string;
|
||||
};
|
||||
assignments: Record<string, Assignment>;
|
||||
syllabus?: SyllabusStore;
|
||||
}
|
||||
|
||||
export interface DatabaseSchema {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue