All checks were successful
Deploy Development / deploy (push) Successful in 39s
Test Suite / pytest-backend (push) Successful in 36s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 12s
Test Suite / playwright-tests (push) Successful in 56s
- Added new API endpoints for managing training modules, including listing, creating, updating, and deleting modules. - Implemented the ability to apply training modules to training units, allowing users to copy module content into specific sections. - Enhanced the frontend with new pages for managing training modules and integrated modal functionality for applying modules within the training planning page. - Updated version to 0.8.97 and adjusted database schema version accordingly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2.2 KiB
2.2 KiB
Umsetzungsplan: Trainingsmodule & Kombinationsübungen
Bezug: functional/Shinkan Trainingsmodule Kombinationsuebungen Spezifikation V2.md (Kopf „V3“, Stand 2026-05-12)
Technische Entwurfsspezifikation: technical/TRAINING_MODULES_AND_COMBINATION_EXERCISES_SPEC.md
Stand dieses Dokuments: 2026-05-12
Ziele
Umsetzung der MVP-Punkte aus der Fachspezifikation ohne die bestehende Planung zu destabilisieren: schrittweise Migrationen, bestehende Sektions-/Item-Struktur (training_unit_sections, training_unit_section_items) beibehalten, Kopiersemantik bei Übernahmen.
Phasenüberblick
| Phase | Inhalt | Status |
|---|---|---|
| 1 | Trainingsmodule (Bibliothek): Tabellen training_modules, training_module_items; REST CRUD mit Governance wie andere Bibliotheken; Übernahme in eine bestehende Einheit per POST /api/training-units/{id}/apply-training-module (Anfügen ans Ende eines Abschnitts via section_order_index); optionale Lineage-Spalte source_training_module_id auf Planungsitems; UI: Liste/Editor unter /planning/training-modules, Link von der Planung, Modal „Modul übernehmen“ |
umgesetzt (MVP Schritt 1) |
| 2 | Kombinationsübungen: exercise_kind/combination_*, Slots, Pools, Haupt-/Nebenmethoden-M:N, Archetyp + Ablaufprofil |
geplant |
| 3 | Planungsblöcke: Gruppierung, Auflösen, „als Modul speichern“, erweiterter Übernahmemodus (Zwischenposition) | geplant |
| 4 | Coaching-Ansicht: Archetyp-spezifische Darstellung für MVP-Archetypen | geplant |
| 5 | Rahmenprogramm: Modulübernahme UX in Slot-Blueprint-Editor konsolidieren | geplant |
Phase 1 (technische Notizen)
- Governance:
visibility/club_id/created_byanalogtraining_plan_templates; Listenfilterlibrary_content_visibility_sql. - Übernahme: Keine Live-Verknüpfung; Items werden kopiert;
source_training_module_iddokumentiert Herkunft. - Schnittstelle Übernahme:
section_order_indexentspricht der Reihenfolge der Abschnitte in der gespeicherten Einheit (0-basiert), konsistent zur Planungs-API.
Pflege nach Merge
DATABASE_SCHEMA.mdbei größeren Schema-Erweiterungen ergänzen.ACCESS_LAYER_ENDPOINT_AUDIT.mdbei neuen mandantenbezogenen Endpunkten fortpflegen.