diff --git a/docs/alicia-aufgaben-phase4.md b/docs/alicia-aufgaben-phase4.md new file mode 100644 index 0000000..196e897 --- /dev/null +++ b/docs/alicia-aufgaben-phase4.md @@ -0,0 +1,83 @@ +# BSN-Chatsystem — Phase 4: Produktionsreife + +> **Für Alicia (Qwen 3.6, 256K Context)** +> **Stand:** 24.06.2026 — 12 Issues offen +> **Repo:** `git@git.datenhimmel.work:danielkrause/BSN-Chatsystem.git` + +--- + +## Übersicht + +| Issue | Aufgabe | Bereich | Prio | +|---|---|---|---| +| [#1](../../issues/1) | 26: WhatsApp-Webhook E2E | Intake | 🔴 | +| [#2](../../issues/2) | 27: Public Frontend DB | Frontend | 🟡 | +| [#3](../../issues/3) | 28: Admin Dashboard Tabelle | Admin | 🔴 | +| [#5](../../issues/5) | 30: Imagen-Editor Thumbnails | Bilder | 🟡 | +| [#6](../../issues/6) | 31: Public Frontend Cards | Frontend | 🟡 | +| [#7](../../issues/7) | 32: Admin Paginierung & Stats | Admin | 🔴 | +| [#8](../../issues/8) | 33: Telegram Commands | Telegram | 🔴 | +| [#9](../../issues/9) | 34: Bild-Generator Integration | API | 🟡 | +| [#10](../../issues/10) | 35: Deploy-Checkliste & E2E | DevOps | 🟢 | +| [#11](../../issues/11) | 36: Logging & Fehler | Infra | 🔴 | +| [#12](../../issues/12) | 37: Admin Basic-Auth | Security | 🔴 | +| [#13](../../issues/13) | 38: CORS & API-Sicherheit | API | 🟡 | + +> 🔴 = Blockierend für Produktion | 🟡 = Wichtig für UX | 🟢 = Abschluss/QA + +--- + +## Bearbeitungsreihenfolge + +### Batch 1: Infrastruktur (🔴 Fundament) +**Issues:** #11, #13, #12 + +1. **#11 Logging & Fehlerbehandlung** — structlog integrieren, Error-Handler +2. **#13 CORS & API-Sicherheit** — Cross-Origin für beide Server +3. **#12 Admin Basic-Auth** — Zugriffsschutz + +### Batch 2: Intake-Pipeline (🔴 Kernfunktion) +**Issues:** #1, #8 + +4. **#1 WhatsApp E2E** — Webhook → Queue → Worker → DB +5. **#8 Telegram Commands** — /start, /hilfe, /status, /neu + +### Batch 3: Admin & Frontend (🟡 UX) +**Issues:** #3, #7, #2, #6 + +6. **#3 + #7** — Admin Dashboard (Tabelle + Paginierung, ⚠️ zusammen bearbeiten!) +7. **#2 Public Frontend DB** — Echte Daten statt Dummy +8. **#6 Public Frontend Cards** — Masonry-Layout mit BSN-Blau + +### Batch 4: Bilder & Integration (🟡 Media) +**Issues:** #5, #9 + +9. **#5 Imagen-Editor** — Thumbnails & Auto-Assign +10. **#9 Bild-Generator Integration** — Submission-Zuordnung + +### Batch 5: Abschluss (🟢 QA) +**Issues:** #10 + +11. **#10 Deploy-Checkliste** — E2E-Test, Checkliste abhaken + +--- + +## Qualitätsregeln (JEDER Commit) + +```bash +ruff check . --fix && ruff format . && pytest -v +``` + +- **Vor jedem Push:** Alle 3 Checks müssen grün sein +- **Commit-Messages:** Conventional Commits (`feat:`, `fix:`, `test:`, `docs:`) +- **Keine `print()`** im Produktionscode → structlog +- **BSN-Blau:** `#20228a` für UI-Elemente + +--- + +## Wichtige Hinweise + +1. **Issues #3 und #7 zusammen bearbeiten** — sie ergänzen sich (Tabelle + Paginierung) +2. **Issue #4 ist geschlossen** (Duplikat von #8) +3. **Port-Kontext:** Chatbot=5002, Article-Server=8890, DB=`bsn_intake.db` +4. **Bei Fragen:** Issue kommentieren, Cody prüft regelmäßig