All checks were successful
Deploy Development / deploy (push) Successful in 35s
Test Suite / pytest-backend (push) Successful in 24s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 6s
Test Suite / playwright-tests (push) Successful in 27s
- Added new documentation for media assets and lifecycle management, establishing a single source of truth in MEDIA_ASSETS_AND_ARCHIVE_SPEC.md. - Updated project status to reflect the addition of media archive and lifecycle governance. - Introduced a new API endpoint for platform media storage, allowing superadmin access for media management. - Enhanced exercise media handling with improved database integration for media assets, including deduplication and effective media root resolution. - Updated frontend API utilities to support new media storage functionalities, ensuring seamless integration with the backend. - Incremented version to 0.8.41, reflecting the latest changes and improvements in media handling.
162 lines
6.6 KiB
Markdown
162 lines
6.6 KiB
Markdown
# Shinkan Jinkendo - Projekt-Status
|
||
|
||
**Stand:** 2026-05-05
|
||
**Version (Code):** 0.8.10 (`backend/version.py`, APP_VERSION)
|
||
**DB-Schema-Version:** `20260505037`
|
||
**Branch:** develop
|
||
|
||
---
|
||
|
||
## Executive Summary
|
||
|
||
**Aktueller Meilenstein:** **Trainingsrahmenprogramm Bibliothek + Slot‑Blueprint** (DB **036–037**): Rahmenkopf nur als Vorlage mit Kontext‑Stammdaten; pro Slot genau eine **Blueprint‑`training_unit`** mit **`framework_unit_sections`/`_items`** wie die Planung; Kalenderliste blendet Blueprints aus; **`POST /api/training-units/from-framework-slot`** materialisiert Kopien mit **`origin_framework_slot_id`**. Parallel: **Progressionsgraph** (032–034) bleibt unterstützend (**`TRAINING_FRAMEWORK_SPEC.md`** §3–§4).
|
||
|
||
**Letzte dokumentierte Änderungen (Mai 2026):**
|
||
|
||
- ✅ Migration **036:** Rahmen nur Bibliothek; Fokus/Stil + M:N Trainingsarten/Zielgruppen; Entfall `plan_mode`/`group_id` am Kopf.
|
||
- ✅ Migration **037:** `training_units.framework_slot_id` / `origin_framework_slot_id`; Migration Entfall **`training_framework_slot_exercises`**.
|
||
- ✅ APIs: erweiterte Rahmen‑Hydration (`sections`, `exercises`, `blueprint_training_unit_id`); Planung siehe **`TRAINING_FRAMEWORK_SPEC.md`** §2.4.
|
||
- ✅ Frontend: `createTrainingUnitFromFrameworkSlot` in `api.js`.
|
||
|
||
**Referenz:** [`library/FEATURES_DELIVERED_2026-Q2.md`](library/FEATURES_DELIVERED_2026-Q2.md) · Rahmen/Graph: [`technical/TRAINING_FRAMEWORK_SPEC.md`](technical/TRAINING_FRAMEWORK_SPEC.md)
|
||
|
||
**Nächste Schritte (Auszug):**
|
||
|
||
1. Kalender‑UI: „Aus Rahmen übernehmen“ an **`from-framework-slot`** anbinden; ggf. Bulk.
|
||
2. Governance: Sichtbarkeit **club/official** für Rahmen so ausprägen, dass andere Trainer kopieren dürfen (Policy + API).
|
||
3. Optional Backlog Graph: Alternativgruppen / bessere Visualisierung (**§4**).
|
||
|
||
---
|
||
|
||
## Deployed Migrations (Dev / Zielstand)
|
||
|
||
| Migration | Beschreibung | Dev | Prod |
|
||
|-----------|--------------|-----|------|
|
||
| 001–017 | Initial Schema + Exercise System | ✅ | ✅ |
|
||
| 018 | Wiki Import Tracking | ✅ | ✅ |
|
||
| 019 | Exercises Optional Fields | ✅ | ✅ |
|
||
| 020 | Exercise Skills UNIQUE Constraint | ✅ | 🔲 |
|
||
| 021 | ~~Import Skills from Matrix~~ (DEPRECATED) | ⚠️ | ❌ |
|
||
| 022 | Skills Schema Complete | ✅ | 🔲 |
|
||
| 023 | Skills Complete Import (69 Skills) | ✅ | 🔲 |
|
||
| 028–029 | exercise_media / skills Stufen | ✅ | 🔲 |
|
||
| **030** | **training_unit_exercises.exercise_variant_id** | ✅ | 🔲 |
|
||
| **032–034** | **Progressionsgraph Übung→Übung** | ✅ | 🔲 |
|
||
| **035–037** | **Rahmenprogramm, Bibliothek‑Kopf, Slot‑Blueprint‑Units** | ✅ | 🔲 |
|
||
|
||
---
|
||
|
||
## Aktuelle Datenbank-Stats (Dev, Richtwerte)
|
||
|
||
Die exakten Zahlen hängen von der Umgebung ab (siehe Admin/DB). Die Skills/Übungen-Importe aus früheren Meilensteinen bleiben die Datenbasis.
|
||
|
||
---
|
||
|
||
## Feature-Status
|
||
|
||
### ✅ Deployed Features (Dev)
|
||
|
||
**Kern-System:**
|
||
|
||
- [x] Auth & Profile Management
|
||
- [x] Organisation (Clubs, Divisions, Groups)
|
||
- [x] Kataloge (Focus Areas, Styles, Target Groups – M:N)
|
||
|
||
**Übungen:**
|
||
|
||
- [x] CRUD (Create, Read, Update, Delete)
|
||
- [x] M:N Beziehungen (Focus Areas, Styles, Target Groups, Skills)
|
||
- [x] **Varianten** (CRUD, Reorder, Voraussetzung) + Anzeige im Detail
|
||
- [x] **Progressionsgraph zwischen Übungen** (Bibliotheks-Container, Kanten, Sequenz-Bulk, Varianten-Knoten — Zwischenstand, siehe TRAINING_FRAMEWORK_SPEC §4)
|
||
- [x] Medien (Upload/Embed, rollenabhängige Größenlimits)
|
||
- [x] Suche & Filter (Multi-Filter, Chips, Fokus beim Suchen)
|
||
- [x] Exercise Blocks (Bausteine)
|
||
- [x] Saved Searches (wo implementiert)
|
||
|
||
**Trainingsplanung:**
|
||
|
||
- [x] Training Units / strukturierter Ablauf (Sektionen + Items)
|
||
- [x] **Optionale Zuordnung einer Übungsvariante** pro Eintrag (`exercise_variant_id`)
|
||
- [x] **Trainingsrahmenprogramm Bibliothek** (Ziele, Slots, Kontext) + **Slot‑Blueprints** in `training_units` (036–037)
|
||
- [x] **Materialisierung** aus Rahmen‑Slot (`POST …/training-units/from-framework-slot`; UI‑Anbindung optional)
|
||
- [ ] Kalender-View / erweiterte Roadmap (Backlog)
|
||
|
||
**MediaWiki Import:**
|
||
|
||
- [x] Import-Tracking, Übungs-Import, Skills-Migration (siehe ältere Session-Docs)
|
||
|
||
**Skills-System:**
|
||
|
||
- [x] Hierarchisches Schema, Fokusbereich-Zuordnung, Exercise-Skill mit Levels
|
||
|
||
**Admin-UI:**
|
||
|
||
- [x] Katalog-CRUD, Matrix/Import je nach Rolle
|
||
|
||
### 🔲 In Arbeit / Backlog
|
||
|
||
- [ ] Admin-UI für Skill-Kategorien (CRUD) – falls noch offen
|
||
- [ ] Responsive Design / Dark Mode / PWA
|
||
- [ ] KI-Suche (`ai_search`) über reine Volltextsuche hinaus
|
||
|
||
### 📋 Geplant (Backlog)
|
||
|
||
- Trainingsplan-Generator, Bulk-Export, Review-Workflow (unverändert strategisch geplant)
|
||
|
||
---
|
||
|
||
## Technische Schulden
|
||
|
||
| Bereich | Issue | Priorität |
|
||
|---------|-------|-----------|
|
||
| Skills | Migration 021 bereinigen (falls noch referenziert) | Niedrig |
|
||
| Import | Reimport-Flag / DNS – je nach Prod-Realität prüfen | Mittel |
|
||
|
||
---
|
||
|
||
## Lessons Learned (Auszug)
|
||
|
||
- **Listen-UX:** Bedingtes Rendern der **gesamten Seite** bei `loading` zerstört Fokus und Scroll – separates `listFetching` für die Trefferliste.
|
||
- **Upload-Limits:** Vergleich immer in **MB** vor Umrechnung in Bytes; Admin-Limit nie unter Nutzer-Limit.
|
||
|
||
---
|
||
|
||
## Deployment-Status
|
||
|
||
### Dev
|
||
|
||
Branch `develop`; Migrations bis mindestens **037** auf dem aktuellen Entwicklungsstand; Details in `backend/version.py`.
|
||
|
||
### Prod
|
||
|
||
Deployment der oben genannten Migrationen und Datenabgleich nach internem Prozess.
|
||
|
||
---
|
||
|
||
## Dokumentation-Status
|
||
|
||
| Dokument | Pfad | Stand | Status |
|
||
|----------|------|-------|--------|
|
||
| Lieferliste Q2 2026 | `library/FEATURES_DELIVERED_2026-Q2.md` | 2026-05-05 | ✅ Aktualisiert (u. a. 036–037) |
|
||
| Trainingsrahmen + Graph | `technical/TRAINING_FRAMEWORK_SPEC.md` | 2026-05-05 | ✅ §2 Blueprint |
|
||
| Anforderungen (Index) | `functional/SHINKAN_REQUIREMENTS.md` | 2026-04-27 | ✅ Neu |
|
||
| Database Schema | `technical/DATABASE_SCHEMA.md` | 2026-05-05 | ✅ Aktualisiert (037) |
|
||
| Domain Model | `functional/DOMAIN_MODEL.md` | 2026-05-05 | ✅ Aktualisiert |
|
||
| API Übungen | `technical/EXERCISES_API_SPEC.md` | 2026-04-30 | ✅ Ergänzt Progressions-API |
|
||
| Frontend Routing | `technical/EXERCISES_FRONTEND_ROUTING.md` | 2026-04-30 | ✅ Ergänzt UI-Hinweise |
|
||
| Search & Filter | `technical/SEARCH_FILTER_SPEC.md` | 2026-04-27 | ✅ Aktualisiert (Liste UX) |
|
||
| Media Upload | `technical/MEDIA_UPLOAD_SPEC.md` | 2026-04-27 | ✅ Aktualisiert (Limits) |
|
||
| Medien-Archiv & Lifecycle | `technical/MEDIA_ASSETS_AND_ARCHIVE_SPEC.md` | 2026-05-07 | ✅ Single Source of Truth |
|
||
| Projektstatus | `PROJECT_STATUS.md` | 2026-05-07 | ✅ Diese Datei |
|
||
|
||
---
|
||
|
||
## Team & Kontakte
|
||
|
||
**Product Owner:** Lars
|
||
**Wiki (Datenquelle):** https://karatetrainer.net
|
||
|
||
---
|
||
|
||
**Letzte Aktualisierung:** 2026-05-07
|