feat: automatic training type mapping for Apple Health import and bulk categorization
Deploy Development / deploy (push) Successful in 48s
Build Test / lint-backend (push) Successful in 0s
Build Test / build-frontend (push) Successful in 13s

- Add get_training_type_for_apple_health() mapping function (23 workout types)
- CSV import now automatically assigns training_type_id/category/subcategory
- New endpoint: GET /activity/uncategorized (grouped by activity_type)
- New endpoint: POST /activity/bulk-categorize (bulk update training types)
- New component: BulkCategorize with two-level dropdown selection
- ActivityPage: new "Kategorisieren" tab for existing activities
- Update CLAUDE.md: v9d Phase 1b progress

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Opus 4.6 committed 2026-03-21 15:08:18 +01:00
1 parent 08cead49fe
commit 96b0acacd2
5 files changed
+325 -9

No files matched your search

+11 -5
View File
@@ -95,17 +95,23 @@ frontend/src/
### Auf develop (nicht deployed) 📦
- ✅ **TrialBanner mailto:** "Abo wählen" → mailto:mitai@jinkendo.de (Vorbereitung für zentrales Abo-System)
- ✅ **Apple Health Mapping:** Automatische Trainingstyp-Zuordnung beim CSV-Import (23 Workout-Typen)
- ✅ **Bulk-Kategorisierung:** Nachträgliche Typ-Zuweisung für bestehende Aktivitäten
- ✅ **ActivityPage Integration:** TrainingTypeSelect + "Kategorisieren"-Tab
- ✅ **Dashboard Integration:** TrainingTypeDistribution Chart (28 Tage)
- 📚 Dokumentation: `.claude/docs/technical/CENTRAL_SUBSCRIPTION_SYSTEM.md`
### v9d – Phase 1 ✅ (Deployed 21.03.2026)
- ✅ **Trainingstypen Basis:** DB-Schema, 23 Typen, API-Endpoints
- ✅ **Logout-Button:** Im Header neben Avatar, mit Bestätigung
- ✅ **Components:** TrainingTypeSelect, TrainingTypeDistribution (noch nicht eingebunden)
- ✅ **Components:** TrainingTypeSelect, TrainingTypeDistribution
### v9d – Phase 1b 🔲 (Integration)
- 🔲 ActivityPage: TrainingTypeSelect einbinden
- 🔲 Dashboard: TrainingTypeDistribution Chart
- 🔲 History: Typ-Badge bei Aktivitäten
### v9d – Phase 1b ⏳ (In Progress)
- ✅ ActivityPage: TrainingTypeSelect eingebunden
- ✅ Dashboard: TrainingTypeDistribution Chart eingebunden
- ✅ Apple Health Import: Automatisches Mapping
- ✅ Bulk-Kategorisierung: UI + Endpoints
- 🔲 History: Typ-Badge bei Aktivitäten (ausstehend)
### v9d – Phase 2+ 🔲 (Später)
- 🔲 Ruhetage erfassen (rest_days Tabelle)