feat: update version to 0.7.9 and enhance project documentation
- Incremented application version to 0.7.9 and updated database schema version to 20260427030. - Revised project status documentation to reflect recent milestones and changes, including detailed logs of implemented features and next steps. - Enhanced API specifications for exercises, including support for exercise variants and improved query parameters. - Updated frontend routing to streamline exercise variant management within the ExerciseFormPage. - Implemented role-based media upload limits and refined search/filter specifications for better user experience.
This commit is contained in:
1 parent
d5fbc2cd5c
commit
7134fd1a25
11 files changed
+281
-191
No files matched your search
@@ -269,7 +269,10 @@ exercise_media (id, exercise_id, type, url, title, description, ...)
|
||||
|
||||
```sql
|
||||
training_units (id, group_id, date, title, description, ...)
|
||||
training_unit_exercises (training_unit_id, exercise_id, sort_order, ...)
|
||||
training_unit_exercises (
|
||||
training_unit_id, exercise_id, sort_order,
|
||||
exercise_variant_id -- FK exercise_variants(id) ON DELETE SET NULL (Migration 030)
|
||||
)
|
||||
exercise_blocks (id, name, description, created_by, club_id, ...) -- Migration 017
|
||||
```
|
||||
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
# Exercises API Specification
|
||||
|
||||
**Version:** 1.2
|
||||
**Datum:** 2026-04-24
|
||||
**Status:** REVIEWED - Pending Implementation
|
||||
**Autor:** Claude Code
|
||||
**Version:** 1.3
|
||||
**Datum:** 2026-04-27
|
||||
**Status:** Teilweise implementiert (Liste mit Filtern + Varianten + Medienlimits siehe Code)
|
||||
**Autor:** Claude Code
|
||||
**Änderungen v1.3:** `GET /exercises` erweiterte Query-Parameter (`include_variants`, Multi-Filter, `ai_search`-Platzhalter); Dokumentation angepasst
|
||||
**Änderungen v1.2:** KI-Assistenz Endpoints, Skill-Level-System (benannte Stufen), intensity als low/medium/high
|
||||
**Änderungen v1.1:** Exercise Blocks Endpoints, Permissions dokumentiert, age_groups korrigiert
|
||||
|
||||
@@ -66,33 +67,35 @@ Development: https://dev.shinkan.jinkendo.de/api
|
||||
|
||||
### `GET /exercises`
|
||||
|
||||
**Query Parameters:**
|
||||
- `focus_area` (int, optional) - Focus Area ID
|
||||
- `visibility` (enum, optional) - `private | club | official`
|
||||
- `status` (enum, optional) - `draft | in_review | approved | archived`
|
||||
- `skill_id` (int, optional) - Skill ID
|
||||
- `search` (string, optional) - Volltext (title, summary, execution)
|
||||
- `limit` (int, optional, default: 50, max: 100)
|
||||
- `offset` (int, optional, default: 0)
|
||||
**Query Parameters (Auswahl):**
|
||||
|
||||
| Parameter | Beschreibung |
|
||||
|-----------|----------------|
|
||||
| `focus_area_ids[]`, `focus_area` | Fokusbereiche (ODER über Liste oder Legacy Einzel-ID) |
|
||||
| `visibility_any[]`, `visibility` | Sichtbarkeit(en) |
|
||||
| `status_any[]`, `status` | Status |
|
||||
| `skill_ids[]`, `skill_id` | Fähigkeit(en) |
|
||||
| `skill_min_level`, `skill_max_level` | Stufe 1–5 auf Übung↔Skill-Zuordnung |
|
||||
| `style_direction_ids[]`, `style_direction_id` | Stilrichtung(en) |
|
||||
| `training_type_ids[]`, `training_type_id` | Trainingsstil(e) |
|
||||
| `target_group_ids[]`, `target_group_id` | Zielgruppe(n) |
|
||||
| `search`, `ai_search` | Volltext (aktuell gleiche Logik; `ai_search` Platzhalter für spätere KI-Suche) |
|
||||
| `include_variants` | `true`: jedes Listenelement enthält optional kompaktes **`variants`** für UI/Planung |
|
||||
| `limit` | Default 50, max 100 |
|
||||
| `offset` | Default 0 |
|
||||
|
||||
**Response:** `200 OK`
|
||||
|
||||
Lightweight-Liste; bei `include_variants=true` zusätzlich z. B.:
|
||||
|
||||
```json
|
||||
[
|
||||
{
|
||||
"id": 1,
|
||||
"title": "Maai - Distanzübung",
|
||||
"summary": "Distanzgefühl entwickeln...",
|
||||
"focus_area": "karate",
|
||||
"visibility": "club",
|
||||
"status": "approved",
|
||||
"created_by": 1,
|
||||
"creator_name": "Lars",
|
||||
"club_id": 1,
|
||||
"club_name": "Dojo Berlin",
|
||||
"created_at": "2026-04-20T10:00:00Z",
|
||||
"updated_at": "2026-04-22T14:30:00Z"
|
||||
}
|
||||
]
|
||||
{
|
||||
"id": 1,
|
||||
"title": "Maai - Distanzübung",
|
||||
"variants": [
|
||||
{ "id": 10, "variant_name": "Basis", "sequence_order": 1 }
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
**Errors:**
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
# Frontend Routing & Navigation Specification
|
||||
|
||||
**Version:** 1.0
|
||||
**Datum:** 2026-04-24
|
||||
**Version:** 1.1
|
||||
**Datum:** 2026-04-27
|
||||
**Status:** DRAFT - Awaiting Review
|
||||
**Autor:** Claude Code
|
||||
**Autor:** Claude Code
|
||||
**Änderungen v1.1:** Übungsvarianten-Bearbeitung nur unter `/exercises/:id/edit` (keine VariantFormPage-Routen)
|
||||
|
||||
---
|
||||
|
||||
@@ -12,12 +13,10 @@
|
||||
### 1.1 Route-Übersicht
|
||||
|
||||
```
|
||||
/exercises → ExercisesListPage (Grid + Filter)
|
||||
/exercises → ExercisesListPage (Grid + Filter + Chips)
|
||||
/exercises/new → ExerciseFormPage (Create)
|
||||
/exercises/{id} → ExerciseDetailPage (Accordion-Layout)
|
||||
/exercises/{id}/edit → ExerciseFormPage (Edit)
|
||||
/exercises/{id}/variants/new → VariantFormPage (Create)
|
||||
/exercises/{id}/variants/{vid}/edit → VariantFormPage (Edit)
|
||||
/exercises/{id}/edit → ExerciseFormPage (Edit inkl. Varianten-Editor inline)
|
||||
|
||||
/exercise-blocks → ExerciseBlocksListPage (Meine Blocks)
|
||||
/exercise-blocks/new → ExerciseBlockFormPage (Create)
|
||||
@@ -75,8 +74,7 @@
|
||||
|
||||
**Pattern:**
|
||||
```
|
||||
Home → Übungen → [Übungsname] → Bearbeiten
|
||||
Home → Übungen → [Übungsname] → Variante anlegen
|
||||
Home → Übungen → [Übungsname] → Bearbeiten (Varianten im gleichen Formular)
|
||||
```
|
||||
|
||||
**Implementation:**
|
||||
@@ -640,8 +638,7 @@ function App() {
|
||||
<Route path="new" element={<ExerciseFormPage />} />
|
||||
<Route path=":id" element={<ExerciseDetailPage />} />
|
||||
<Route path=":id/edit" element={<ExerciseFormPage />} />
|
||||
<Route path=":id/variants/new" element={<VariantFormPage />} />
|
||||
<Route path=":id/variants/:variantId/edit" element={<VariantFormPage />} />
|
||||
{/* Varianten: Bearbeitung inline in ExerciseFormPage, keine eigenen Routen */}
|
||||
</Route>
|
||||
|
||||
{/* Exercise Blocks Routes */}
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
# Media Upload & Embed Specification
|
||||
|
||||
**Version:** 1.0
|
||||
**Datum:** 2026-04-24
|
||||
**Version:** 1.1
|
||||
**Datum:** 2026-04-27
|
||||
**Status:** DRAFT - Awaiting Review
|
||||
**Autor:** Claude Code
|
||||
**Autor:** Claude Code
|
||||
**Änderungen v1.1:** Rollenbasierte Server-Limits (`EXERCISE_MEDIA_*_MB`)
|
||||
|
||||
---
|
||||
|
||||
@@ -20,9 +21,10 @@
|
||||
- Keine Abhängigkeit von Drittanbietern für Kern-Content
|
||||
- Externe Plattformen für ergänzende Videos
|
||||
|
||||
**Limitierungen:**
|
||||
- Max. 50 MB pro Datei
|
||||
- Max. 10 Media-Items pro Übung (kombiniert Local + Embeds)
|
||||
**Limitierungen (implementiert):**
|
||||
- Max. Dateigröße: **50 MB** Standardnutzer (`EXERCISE_MEDIA_MAX_UPLOAD_MB`, Default 50).
|
||||
- **`admin` / `superadmin`**: höheres Limit (**1024 MB** Default `EXERCISE_MEDIA_ADMIN_MAX_UPLOAD_MB`; nie unter dem Nutzer-Limit in MB).
|
||||
- Max. 10 Media-Items pro Übung (kombiniert Local + Embeds) — siehe Backend-Validierung
|
||||
- Erlaubte Formate: JPEG, PNG, GIF, MP4, PDF
|
||||
|
||||
---
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
# Search & Filter Specification
|
||||
|
||||
**Version:** 1.0
|
||||
**Datum:** 2026-04-24
|
||||
**Version:** 1.1
|
||||
**Datum:** 2026-04-27
|
||||
**Status:** DRAFT - Awaiting Review
|
||||
**Autor:** Claude Code
|
||||
**Autor:** Claude Code
|
||||
**Änderungen v1.1:** Abschnitt 1.2 – implementiertes Verhalten Übungsliste (Fokus, listFetching, Chips, datalist)
|
||||
|
||||
---
|
||||
|
||||
@@ -18,6 +19,16 @@
|
||||
|
||||
**Kombination:** Alle Filter UND Keyword-Search kombinierbar
|
||||
|
||||
### 1.2 Übungsliste (Frontend, implementiert)
|
||||
|
||||
Auf **`ExercisesListPage`** gilt:
|
||||
|
||||
- Filter und Suche kombinieren sich; **Server-Request** bei geänderter Query (Debouncing möglich).
|
||||
- **Kein Ersetzen der gesamten Seite** durch einen Ladezustand bei List-Refetch — nur die Liste zeigt einen **„Aktualisiere Treffer…“**-Zustand; Suchfelder bleiben montiert (**Fokus erhalten**).
|
||||
- Erste Ladephase ohne Treffer: kompakter Spinner **unter** der Suchleiste.
|
||||
- **`<datalist>`** (`list=` an Suchfeldern) mit Distinct-Titeln aus den aktuellen Treffern zur Auswahl.
|
||||
- Zusätzliche Filter erscheinen als **Chips**; Zähler am Filter-Button = Anzahl aktiver Filter.
|
||||
|
||||
---
|
||||
|
||||
## 2. Volltext-Suche (PostgreSQL)
|
||||
|
||||
Reference in new issue
Block a user