feat(#53): Stundenplan als Dashboard#54
Merged
Merged
Conversation
Backend: - RepeatType + WeekVariant Enums in libs/domain - TimetableEntryDto, CreateTimetableEntryDto, UpdateTimetableEntryDto - TimetableEntry Entity (timetable_entries Tabelle) - TimetableService mit Ownership-Prüfung - TimetableController (GET/POST/PUT/DELETE /timetable) - TimetableModule registriert in AppModule - Migration 1773610000000-AddTimetableEntries (IF NOT EXISTS + Indizes) Frontend: - TimetableService (/api/timetable) - week.utils.ts (getMondayOfWeek, filterEntriesForWeek, repeatLabel, ...) - TimetableEntryFormComponent (Slide-in Panel, alle 4 Wiederholungstypen) - TimetableComponent (Wochenraster Mo–Fr, Wochennavigation, A/B-Woche) - Route /app → TimetableComponent (ehemaliges Dashboard → /app/klassen-uebersicht) - Sidebar: Dashboard → Stundenplan mit Kalender-Icon
13 tasks
…-validator Dekoratoren Die Domain-DTOs haben keine @IsString/@IsUUID-Dekoratoren, weshalb ValidationPipe(whitelist+forbidNonWhitelisted) alle Properties ablehnte. Lösung: eigene Validation-DTOs im Server (gleiches Muster wie Note/Assessment).
Zustand 1 (keine Klassen): 3-Schritte-Führung statt leerem Grid. Schritt 1 → Schüler anlegen Schritt 2 → Fächer anlegen (Einstellungen) Schritt 3 → Klasse anlegen + Stundenplan einrichten (primary) Zustand 2 (Klassen da, kein Stundenplan): Leeres Grid sofort sichtbar. Topbar aktiv, + Stunde eintragen klickbar, Hover-Zellen mit +. Kein Banner, kein erklärender Text. Zustand 3 (Stundenplan aktiv): Unverändert – reines Grid. Technisch: load() wird erst nach classSvc.getAll() aufgerufen um Flicker zwischen Onboarding und Grid zu vermeiden.
Desktop (>768px): unverändertes Wochenraster Mo–Fr Mobile (<768px): - Tagesansicht zeigt einen Tag auf einmal - Tag-Navigation mit Pfeiltasten (Mon→Di→...→Fr→Mon nächste Woche) - Langer Stundenblock mit Fach, Klasse, Raum, Rhythmus - Wochennavigation bleibt, Schuljahr-Select ausgeblendet - 'Heute'-Button setzt auch activeMobileDay zurück - Wochenende → zeigt Montag
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backend:
Frontend: