Add Private Lessons (Özel Ders İstek) page and advisory teacher filtering in Syllabus
This commit is contained in:
parent
573a249580
commit
455baa6aa4
11 changed files with 1489 additions and 9 deletions
|
|
@ -66,10 +66,42 @@ 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
|
||||
advisoryTeacher?: string | null; // e.g. "CAN TÜRKOĞLU"
|
||||
lastSynced: string | null;
|
||||
schedule: Record<number, Lesson[]>; // day (1..5) -> raw lessons
|
||||
}
|
||||
|
||||
// ----------------------------------------------------
|
||||
// Private Lessons (Özel Ders & İstek) Types
|
||||
// ----------------------------------------------------
|
||||
export interface PrivateLesson {
|
||||
id: string; // deterministic ID or hash
|
||||
subject: string; // e.g. "Coğrafya", "Danışmanlık"
|
||||
teacherName: string; // e.g. "SEVDA KILIÇOĞLU"
|
||||
teacherPhoto: string; // photo URL
|
||||
date: string; // e.g. "26.10.2026"
|
||||
parsedDate: string; // e.g. "2026-10-26"
|
||||
isUpcoming: boolean; // true if border-success / active upcoming
|
||||
}
|
||||
|
||||
export interface PrivateLessonFormMeta {
|
||||
studentName: string;
|
||||
schoolName: string;
|
||||
className: string;
|
||||
photoUrl?: string;
|
||||
ogrenciDonemId: string;
|
||||
okulId: string;
|
||||
sinifId: string;
|
||||
courses: Array<{ id: string; name: string }>;
|
||||
}
|
||||
|
||||
export interface PrivateLessonsStore {
|
||||
lastSynced: string;
|
||||
lessons: PrivateLesson[];
|
||||
formMeta?: PrivateLessonFormMeta;
|
||||
detectedAdvisor?: string;
|
||||
}
|
||||
|
||||
export interface StudentStore {
|
||||
studentId: string;
|
||||
lastSynced: string | null;
|
||||
|
|
@ -79,6 +111,8 @@ export interface StudentStore {
|
|||
};
|
||||
assignments: Record<string, Assignment>;
|
||||
syllabus?: SyllabusStore;
|
||||
advisoryTeacher?: string | null;
|
||||
privateLessons?: PrivateLessonsStore;
|
||||
}
|
||||
|
||||
export interface DatabaseSchema {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue