From 14d80fc903a35e57a24d3ddd659ae5b177f8594c Mon Sep 17 00:00:00 2001 From: Lars Date: Fri, 27 Mar 2026 06:17:57 +0100 Subject: [PATCH] =?UTF-8?q?docs:=20zentrale=20TODO-Liste=20f=C3=BCr=20Goal?= =?UTF-8?q?=20System=20erstellt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tracking-Dokument für alle offenen Punkte: - Phase 0b Tasks (120+ Platzhalter) - v2.0 Redesign Probleme - Gitea Issues Referenzen - Timeline & Roadmap Verhindert dass wichtige Punkte vergessen werden. Co-Authored-By: Claude Opus 4.6 --- docs/TODO_GOAL_SYSTEM.md | 144 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 144 insertions(+) create mode 100644 docs/TODO_GOAL_SYSTEM.md diff --git a/docs/TODO_GOAL_SYSTEM.md b/docs/TODO_GOAL_SYSTEM.md new file mode 100644 index 0000000..6eda38e --- /dev/null +++ b/docs/TODO_GOAL_SYSTEM.md @@ -0,0 +1,144 @@ +# Goal System - TODO & Offene Punkte + +**Erstellt:** 27. März 2026 +**Status:** Aktiv +**Zweck:** Zentrale Tracking-Liste für Goal System Entwicklung + +--- + +## ✅ Erledigt (27.03.2026) + +### Phase 0a: Minimal Goal System (26.03.2026) +- ✅ Migration 022 (goal_mode, goals, training_phases, fitness_tests) +- ✅ Backend Router goals.py (490 Zeilen) +- ✅ Frontend GoalsPage (570 Zeilen) +- ✅ Navigation Integration (Dashboard + Analysis) + +### Phase 1: Quick Fixes (27.03.2026) +- ✅ goal_utils.py Abstraction Layer +- ✅ Primary Goal Toggle Fix +- ✅ Lean Mass Berechnung +- ✅ VO2Max Spaltenname Fix + +--- + +## 🔲 Nächste Schritte (Priorität) + +### Phase 0b: Goal-Aware Placeholders (NEXT - 16-20h) + +**Status:** 🔲 OFFEN +**Priorität:** HIGH (strategisch kritisch) +**Aufwand:** 16-20h +**Blockt:** Intelligente KI-Analysen + +**Tasks:** +- [ ] 18 KÖRPER Platzhalter (weight_7d_rolling_median, fm_28d_delta, lbm_28d_delta, recomposition_score, etc.) +- [ ] 15 ERNÄHRUNG Platzhalter (protein_g_per_kg, nutrition_adherence_score, energy_availability_status, etc.) +- [ ] 25 AKTIVITÄT Platzhalter (activity_quality_avg_28d, activity_strain_28d, ability_balance_score, etc.) +- [ ] 12 RECOVERY Platzhalter (recovery_score, sleep_regularity_index, sleep_debt_hours, etc.) +- [ ] 8 KORRELATIONEN Platzhalter (corr_energy_weight_lag, plateau_detected, etc.) +- [ ] 6 META Platzhalter (goal_mode, data_quality_score, profile_age_years, etc.) +- [ ] Score-Gewichtung pro goal_mode (SCORE_WEIGHTS Dictionary) +- [ ] Baseline-Berechnungen (7d/28d/90d Referenzwerte) +- [ ] Integration in bestehende Prompts + +**Vorteile:** +- System wird "intelligent" (kein Datensammler mehr) +- Ziele werden tatsächlich genutzt +- Basis für automatische Trainingsphasen-Erkennung + +**Dokumentation:** `docs/NEXT_STEPS_2026-03-26.md` (Zeile 116-300) + +--- + +### v2.0 Redesign (SPÄTER - 8-10h) + +**Status:** 📋 KONZEPTION +**Priorität:** MEDIUM (nach Phase 0b & User-Feedback) +**Aufwand:** 8-10h (dank Abstraction Layer) + +**Probleme zu lösen:** +1. ❌ Primärziel zu simplistisch (nur 1 erlaubt) +2. ❌ Goal Mode zu simpel (nur 1 Modus wählbar) +3. ✅ Fehlende Current Values (ERLEDIGT in Phase 1) +4. ❌ Abstrakte Zieltypen (strength, flexibility) +5. ❌ Blutdruck braucht 2 Werte (systolisch/diastolisch) +6. ❌ Keine Guidance für User (Richtwerte fehlen) + +**Lösung:** +- Migration 023: focus_areas Tabelle mit Gewichtungssystem +- UI: Slider für 6 Fokus-Bereiche (Summe = 100%) +- Backend: `get_focus_weights()` V2 Implementierung (eine Funktion!) +- Compound Goals für BP +- Konkrete Test-basierte Goals (Cooper, Plank, etc.) +- Richtwerte & Normen in UI + +**Dokumentation:** `docs/GOAL_SYSTEM_REDESIGN_v2.md` + +**Entscheidung:** ⏳ Wartet auf User-Feedback nach Phase 0b + +--- + +## 🔗 Verwandte Issues + +### Gitea (http://192.168.2.144:3000/Lars/mitai-jinkendo/issues) +- **#49:** Prompt-Zuordnung zu Verlaufsseiten (6-8h, Quick Win) +- **#47:** Wertetabelle Optimierung (4-6h, Polishing) +- **#50:** Phase 0a Goal System (✅ CLOSED) + +### Interne Docs +- `docs/issues/issue-50-phase-0a-goal-system.md` (✅ Completed) +- `docs/issues/issue-51-prompt-page-assignment.md` (#49 Spec) + +--- + +## 📊 Roadmap-Übersicht + +| Phase | Was | Status | Aufwand | +|-------|-----|--------|---------| +| **Phase 0a** | Minimal Goal System | ✅ DONE | 3-4h | +| **Phase 1** | Quick Fixes + Abstraction | ✅ DONE | 4-6h | +| **Phase 0b** | Goal-Aware Placeholders | 🔲 NEXT | 16-20h | +| **Issue #49** | Prompt Page Assignment | 🔲 OPEN | 6-8h | +| **v2.0** | Redesign (Focus Areas) | 📋 LATER | 8-10h | + +**Total Roadmap:** ~37-48h bis vollständiges intelligentes Goal System + +--- + +## 💡 Wichtige Notizen + +### Abstraction Layer (Keine Doppelarbeit!) +**Datei:** `backend/goal_utils.py` + +```python +get_focus_weights(conn, profile_id) +``` + +- **V1 (jetzt):** Mappt goal_mode → Gewichte +- **V2 (v2.0):** Liest focus_areas Tabelle +- **Vorteil:** 120+ Phase 0b Platzhalter müssen NICHT umgeschrieben werden + +### Testing Checklist (nach jedem Deploy) +- [ ] Goal Mode ändern → Gewichtung korrekt? +- [ ] Primäres Ziel setzen → Andere auf false? +- [ ] Lean Mass Ziel → Current Value berechnet? +- [ ] VO2Max Ziel → Kein Server Error? +- [ ] Mehrere Ziele → Progress korrekt? + +--- + +## 📅 Timeline + +| Datum | Event | +|-------|-------| +| 26.03.2026 | Phase 0a Complete | +| 27.03.2026 | Phase 1 Complete (Quick Fixes) | +| 28.03.2026 | **Phase 0b Start (geplant)** | +| 02.04.2026 | Phase 0b Complete (geschätzt bei 4h/Tag) | +| 04.04.2026 | v2.0 Redesign (wenn validiert) | + +--- + +**Letzte Aktualisierung:** 27. März 2026 +**Nächste Aktualisierung:** Nach Phase 0b Completion