Files
2026-07-26 18:11:57 +02:00

43 lines
1.5 KiB
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Teilaufgabe 04 Kalenderregeln (Schule / Ferien / Feiertage)
Lies zuerst `prompts/00-MASTER.md`. Dann setze genau diese Aufgabe um.
## Regeln (verbindlich)
| Situation | Ergebnis |
|-----------|----------|
| Montag, Mittwoch, Freitag | Betrieb |
| Dienstag, Donnerstag | Berufsschule |
| Tag liegt in BW-Schulferien | **Betrieb** (auch Di/Do) |
| Gesetzlicher Feiertag BW | Feiertag |
| Samstag, Sonntag | überspringen |
## Daten
Pflege in `web/src/data/holidays-bw.ts` (oder gleichwertig):
- Osterferien, Pfingstferien, Sommerferien, Herbstferien, Weihnachtsferien (mind. 20262027)
- Feiertage: Neujahr, Hl. Drei Könige, Karfreitag, Ostermontag, 1.5., Himmelfahrt, Pfingstmontag, Fronleichnam, 3.10., Allerheiligen, 25./26.12.
## Auswirkungen auf App
1. Wochen-Pills zeigen korrekten Typ
2. Vorschlags-Pool: Ferienwoche → nur Betrieb; Schulwoche → Betrieb + Schule
3. Export Berufsschule-Feld: `Ferien` oder echte Schulthemen
4. Feiertag im Tätigkeitsblock wie Originale: z.B. `Freitag Feiertag`
5. Wochennummer relativ zu Heft 78 / Start 79 korrekt
## Abnahme
- [x] Woche 79 (`06.04.10.04.2026`): Ostermontag Feiertag, Rest Betrieb (Osterferien)
- [x] Eine normale Schulwoche nach Ferien: Di/Do = Schule
- [x] Unit-/Smoke-Checks oder kurze manuelle Verifikation dokumentieren
### Verifikation
```bash
cd web && npm run test:calendar
```
Abgedeckt in `web/scripts/verify-calendar.mjs`: Woche 79, Schulwoche 13.04.2026, Ferien→Betrieb, Feiertag-Zeile, Vorschlags-Pool, Wochennummern 78/79/80.