chore: update versioning and enhance Training Framework features
- Incremented APP_VERSION to 0.8.9 and DB_SCHEMA_VERSION to 20260505036. - Added changelog entry for version 0.8.9 detailing database and API changes. - Updated TrainingFrameworkProgramEditPage to manage focus areas, style directions, training types, and target groups. - Enhanced TrainingFrameworkProgramsListPage with context teasers for better user information. - Improved CSS styles for framework catalog checkgrid and check components for better layout and usability.
This commit is contained in:
1 parent
8f32a6df29
commit
b4495e39c1
7 files changed
+416
-249
No files matched your search
@@ -2934,6 +2934,31 @@ a.analysis-split__nav-item {
|
||||
background: var(--surface2);
|
||||
}
|
||||
|
||||
.framework-catalog-checkgrid {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px 18px;
|
||||
max-height: 220px;
|
||||
overflow-y: auto;
|
||||
padding: 10px;
|
||||
border: 1px solid var(--border2);
|
||||
border-radius: 10px;
|
||||
background: var(--surface2);
|
||||
}
|
||||
|
||||
.framework-catalog-check {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-size: 0.88rem;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.framework-catalog-check input {
|
||||
accent-color: var(--accent);
|
||||
}
|
||||
|
||||
.framework-popmenu {
|
||||
position: absolute;
|
||||
top: calc(100% + 4px);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import React, { useCallback, useEffect, useState } from 'react'
|
||||
import React, { useCallback, useEffect, useMemo, useState } from 'react'
|
||||
import { Link, useNavigate, useParams, useLocation } from 'react-router-dom'
|
||||
import api from '../utils/api'
|
||||
import ExercisePickerModal from '../components/ExercisePickerModal'
|
||||
@@ -28,7 +28,7 @@ function emptyExercise() {
|
||||
}
|
||||
|
||||
function emptySlot() {
|
||||
return { title: '', notes: '', training_unit_id: '', exercises: [] }
|
||||
return { title: '', notes: '', exercises: [] }
|
||||
}
|
||||
|
||||
/** Native-Tooltip für Ziel-Chips (Hover); kurz halten für OS-Tooltip-Limits */
|
||||
@@ -44,8 +44,10 @@ function defaultForm() {
|
||||
return {
|
||||
title: '',
|
||||
description: '',
|
||||
plan_mode: 'library',
|
||||
group_id: '',
|
||||
focus_area_id: '',
|
||||
style_direction_id: '',
|
||||
training_type_ids: [],
|
||||
target_group_ids: [],
|
||||
planned_period_start: '',
|
||||
planned_period_end: '',
|
||||
visibility: 'private',
|
||||
@@ -60,8 +62,14 @@ function serverFrameworkToForm(fw) {
|
||||
return {
|
||||
title: fw.title || '',
|
||||
description: fw.description || '',
|
||||
plan_mode: fw.plan_mode || 'library',
|
||||
group_id: fw.group_id != null ? String(fw.group_id) : '',
|
||||
focus_area_id: fw.focus_area_id != null ? String(fw.focus_area_id) : '',
|
||||
style_direction_id: fw.style_direction_id != null ? String(fw.style_direction_id) : '',
|
||||
training_type_ids: Array.isArray(fw.training_type_ids)
|
||||
? fw.training_type_ids.map((x) => String(x))
|
||||
: [],
|
||||
target_group_ids: Array.isArray(fw.target_group_ids)
|
||||
? fw.target_group_ids.map((x) => String(x))
|
||||
: [],
|
||||
planned_period_start: fw.planned_period_start || '',
|
||||
planned_period_end: fw.planned_period_end || '',
|
||||
visibility: fw.visibility || 'private',
|
||||
@@ -73,7 +81,6 @@ function serverFrameworkToForm(fw) {
|
||||
slots: (fw.slots || []).map((s) => ({
|
||||
title: s.title || '',
|
||||
notes: s.notes || '',
|
||||
training_unit_id: s.training_unit_id != null ? String(s.training_unit_id) : '',
|
||||
exercises: (s.exercises || []).map((ex) => ({
|
||||
exercise_id: ex.exercise_id,
|
||||
exercise_variant_id: ex.exercise_variant_id != null ? String(ex.exercise_variant_id) : '',
|
||||
@@ -133,10 +140,6 @@ function buildApiPayload(form) {
|
||||
}
|
||||
|
||||
const slots = (form.slots || []).map((s, si) => {
|
||||
const tu =
|
||||
form.plan_mode === 'concrete' && s.training_unit_id
|
||||
? parseInt(s.training_unit_id, 10)
|
||||
: null
|
||||
const exercises = (s.exercises || [])
|
||||
.map((ex, j) => {
|
||||
if (!ex.exercise_id) return null
|
||||
@@ -153,17 +156,25 @@ function buildApiPayload(form) {
|
||||
sort_order: si,
|
||||
title: (s.title || '').trim() || null,
|
||||
notes: (s.notes || '').trim() || null,
|
||||
training_unit_id: tu,
|
||||
exercises,
|
||||
}
|
||||
})
|
||||
|
||||
const groupId =
|
||||
form.plan_mode === 'library'
|
||||
? null
|
||||
: form.group_id && !Number.isNaN(parseInt(form.group_id, 10))
|
||||
? parseInt(form.group_id, 10)
|
||||
: null
|
||||
const focusAreaId =
|
||||
form.focus_area_id && !Number.isNaN(parseInt(form.focus_area_id, 10))
|
||||
? parseInt(form.focus_area_id, 10)
|
||||
: null
|
||||
const styleDirectionId =
|
||||
form.style_direction_id && !Number.isNaN(parseInt(form.style_direction_id, 10))
|
||||
? parseInt(form.style_direction_id, 10)
|
||||
: null
|
||||
|
||||
const training_type_ids = (form.training_type_ids || [])
|
||||
.map((x) => parseInt(String(x), 10))
|
||||
.filter((n) => !Number.isNaN(n) && n > 0)
|
||||
const target_group_ids = (form.target_group_ids || [])
|
||||
.map((x) => parseInt(String(x), 10))
|
||||
.filter((n) => !Number.isNaN(n) && n > 0)
|
||||
|
||||
const clubId =
|
||||
form.club_id && !Number.isNaN(parseInt(form.club_id, 10))
|
||||
@@ -173,8 +184,10 @@ function buildApiPayload(form) {
|
||||
return {
|
||||
title: (form.title || '').trim(),
|
||||
description: (form.description || '').trim() || null,
|
||||
plan_mode: form.plan_mode,
|
||||
group_id: groupId,
|
||||
focus_area_id: focusAreaId,
|
||||
style_direction_id: styleDirectionId,
|
||||
training_type_ids,
|
||||
target_group_ids,
|
||||
planned_period_start: form.planned_period_start || null,
|
||||
planned_period_end: form.planned_period_end || null,
|
||||
visibility: form.visibility || 'private',
|
||||
@@ -194,9 +207,11 @@ export default function TrainingFrameworkProgramEditPage() {
|
||||
const [loading, setLoading] = useState(!isNew)
|
||||
const [saving, setSaving] = useState(false)
|
||||
const [form, setForm] = useState(defaultForm())
|
||||
const [groups, setGroups] = useState([])
|
||||
const [clubs, setClubs] = useState([])
|
||||
const [units, setUnits] = useState([])
|
||||
const [focusAreas, setFocusAreas] = useState([])
|
||||
const [styleDirections, setStyleDirections] = useState([])
|
||||
const [trainingTypesCatalog, setTrainingTypesCatalog] = useState([])
|
||||
const [targetGroupsCatalog, setTargetGroupsCatalog] = useState([])
|
||||
const [pickerSlotIdx, setPickerSlotIdx] = useState(null)
|
||||
const [peekId, setPeekId] = useState(null)
|
||||
const [editingGoalIdx, setEditingGoalIdx] = useState(null)
|
||||
@@ -231,15 +246,24 @@ export default function TrainingFrameworkProgramEditPage() {
|
||||
|
||||
const loadMeta = useCallback(async () => {
|
||||
try {
|
||||
const [gr, cl] = await Promise.all([
|
||||
api.listTrainingGroups({ status: 'active' }),
|
||||
const [cl, fa, sd, tt, tg] = await Promise.all([
|
||||
api.listClubs(),
|
||||
api.listFocusAreas({ status: 'active' }),
|
||||
api.listStyleDirections({ status: 'active' }),
|
||||
api.listTrainingTypes({ status: 'active' }),
|
||||
api.listTargetGroups({ status: 'active' }),
|
||||
])
|
||||
setGroups(Array.isArray(gr) ? gr : [])
|
||||
setClubs(Array.isArray(cl) ? cl : [])
|
||||
setFocusAreas(Array.isArray(fa) ? fa : [])
|
||||
setStyleDirections(Array.isArray(sd) ? sd : [])
|
||||
setTrainingTypesCatalog(Array.isArray(tt) ? tt : [])
|
||||
setTargetGroupsCatalog(Array.isArray(tg) ? tg : [])
|
||||
} catch {
|
||||
setGroups([])
|
||||
setClubs([])
|
||||
setFocusAreas([])
|
||||
setStyleDirections([])
|
||||
setTrainingTypesCatalog([])
|
||||
setTargetGroupsCatalog([])
|
||||
}
|
||||
}, [])
|
||||
|
||||
@@ -247,34 +271,6 @@ export default function TrainingFrameworkProgramEditPage() {
|
||||
loadMeta()
|
||||
}, [loadMeta])
|
||||
|
||||
useEffect(() => {
|
||||
if (form.plan_mode !== 'concrete' || !form.group_id) {
|
||||
setUnits([])
|
||||
return
|
||||
}
|
||||
let cancelled = false
|
||||
;(async () => {
|
||||
try {
|
||||
const today = new Date()
|
||||
const start = new Date(today)
|
||||
start.setFullYear(start.getFullYear() - 1)
|
||||
const end = new Date(today)
|
||||
end.setFullYear(end.getFullYear() + 1)
|
||||
const u = await api.listTrainingUnits({
|
||||
group_id: parseInt(form.group_id, 10),
|
||||
start_date: start.toISOString().slice(0, 10),
|
||||
end_date: end.toISOString().slice(0, 10),
|
||||
})
|
||||
if (!cancelled) setUnits(Array.isArray(u) ? u : [])
|
||||
} catch {
|
||||
if (!cancelled) setUnits([])
|
||||
}
|
||||
})()
|
||||
return () => {
|
||||
cancelled = true
|
||||
}
|
||||
}, [form.plan_mode, form.group_id])
|
||||
|
||||
useEffect(() => {
|
||||
if (isNew) {
|
||||
setForm(defaultForm())
|
||||
@@ -308,13 +304,7 @@ export default function TrainingFrameworkProgramEditPage() {
|
||||
}, [isNew, idParam, navigate, location.pathname])
|
||||
|
||||
const updateField = (key, val) => {
|
||||
setForm((prev) => {
|
||||
const n = { ...prev, [key]: val }
|
||||
if (key === 'plan_mode' && val === 'library') {
|
||||
n.group_id = ''
|
||||
}
|
||||
return n
|
||||
})
|
||||
setForm((prev) => ({ ...prev, [key]: val }))
|
||||
}
|
||||
|
||||
const moveGoal = (idx, dir) => {
|
||||
@@ -574,6 +564,44 @@ export default function TrainingFrameworkProgramEditPage() {
|
||||
const panelVisibilityStyle = (key) =>
|
||||
desktopLayout ? undefined : { display: panelActive(key) ? 'block' : 'none' }
|
||||
|
||||
const trainingTypesFiltered = useMemo(() => {
|
||||
if (!form.focus_area_id) return trainingTypesCatalog
|
||||
return trainingTypesCatalog.filter(
|
||||
(t) => !t.focus_area_id || String(t.focus_area_id) === String(form.focus_area_id)
|
||||
)
|
||||
}, [trainingTypesCatalog, form.focus_area_id])
|
||||
|
||||
useEffect(() => {
|
||||
if (!form.focus_area_id || trainingTypesCatalog.length === 0) return
|
||||
const allowed = new Set(trainingTypesFiltered.map((t) => String(t.id)))
|
||||
setForm((prev) => {
|
||||
const cur = prev.training_type_ids || []
|
||||
const next = cur.filter((id) => allowed.has(String(id)))
|
||||
if (next.length === cur.length) return prev
|
||||
return { ...prev, training_type_ids: next }
|
||||
})
|
||||
}, [form.focus_area_id, trainingTypesCatalog.length, trainingTypesFiltered])
|
||||
|
||||
const toggleTrainingTypeId = (tid) => {
|
||||
const idStr = String(tid)
|
||||
setForm((prev) => {
|
||||
const s = new Set(prev.training_type_ids || [])
|
||||
if (s.has(idStr)) s.delete(idStr)
|
||||
else s.add(idStr)
|
||||
return { ...prev, training_type_ids: [...s].sort((a, b) => Number(a) - Number(b)) }
|
||||
})
|
||||
}
|
||||
|
||||
const toggleTargetGroupId = (gid) => {
|
||||
const idStr = String(gid)
|
||||
setForm((prev) => {
|
||||
const s = new Set(prev.target_group_ids || [])
|
||||
if (s.has(idStr)) s.delete(idStr)
|
||||
else s.add(idStr)
|
||||
return { ...prev, target_group_ids: [...s].sort((a, b) => Number(a) - Number(b)) }
|
||||
})
|
||||
}
|
||||
|
||||
if (loading) {
|
||||
return (
|
||||
<div className="app-page" style={{ padding: '2rem 0', textAlign: 'center' }}>
|
||||
@@ -596,14 +624,12 @@ export default function TrainingFrameworkProgramEditPage() {
|
||||
|
||||
<div className="card" style={{ marginBottom: '1rem', background: 'var(--surface2)', borderStyle: 'dashed' }}>
|
||||
<p style={{ fontSize: '0.88rem', color: 'var(--text2)', lineHeight: 1.55, margin: 0 }}>
|
||||
<strong style={{ color: 'var(--text1)' }}>Stand dieser Funktion:</strong> Der Rahmen speichert Ziele, Slots
|
||||
und pro Slot eine <strong>Übungsliste</strong> (Stückliste). Eine <strong>volle Einheiten‑Struktur</strong> wie
|
||||
in der Trainingsplanung (Abschnitte, Notizen, Mikrovorlage pro Slot) ist im Konzept optional (
|
||||
<strong>CURR‑010</strong>: <code>training_plan_template_id</code> pro Slot) — in der DB derzeit{' '}
|
||||
<strong>noch nicht</strong> umgesetzt.{' '}
|
||||
<strong>Übernahme</strong> in konkrete Trainingseinheiten mit Referenz auf den Rahmen (Kopie, editierbar){' '}
|
||||
ist <strong>Stufe 3 / Lineage</strong> vorgesehen. Die Slot‑Spalten unten sind die geplanten
|
||||
Session‑Positionen <strong>ohne feste Termine</strong> am Rahmen.
|
||||
<strong style={{ color: 'var(--text1)' }}>Rahmenprogramm (Bibliothek):</strong> Wiederverwendbare Vorlage mit
|
||||
Zielen und Session‑Slots. <strong>Zuordnung zu einer Trainingsgruppe</strong> oder zu{' '}
|
||||
<strong>konkreten Einheiten</strong> erfolgt aus der <strong>Gruppen‑Planung</strong> (Übernahme mit Link /
|
||||
Lineage) — nicht mehr direkt an diesem Datensatz. Pro Slot ist derzeit eine Übungsliste (Stückliste) hinterlegt;
|
||||
die strukturierte Einheitenplanung (Abschnitte wie in der Trainingsplanung) folgt über{' '}
|
||||
<strong>CURR‑010</strong> (Vorlagen‑Modell pro Slot).
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -673,38 +699,78 @@ export default function TrainingFrameworkProgramEditPage() {
|
||||
/>
|
||||
</div>
|
||||
<div className="form-row">
|
||||
<label className="form-label">Modus</label>
|
||||
<label className="form-label">Fokusbereich (optional)</label>
|
||||
<select
|
||||
className="form-input"
|
||||
value={form.plan_mode}
|
||||
onChange={(e) => updateField('plan_mode', e.target.value)}
|
||||
value={form.focus_area_id}
|
||||
onChange={(e) => updateField('focus_area_id', e.target.value)}
|
||||
>
|
||||
<option value="library">Bibliothek (zeitlos, ohne Gruppe)</option>
|
||||
<option value="concrete">Konkret (optional Gruppe & Verknüpfung zu Einheiten)</option>
|
||||
<option value="">— keiner —</option>
|
||||
{focusAreas.map((fa) => (
|
||||
<option key={fa.id} value={String(fa.id)}>
|
||||
{fa.name}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
<p style={{ fontSize: '0.85rem', color: 'var(--text2)', marginTop: '0.35rem' }}>
|
||||
Bibliothek: keine Trainingsgruppe und keine Slot‑Zuordnung zu Terminen. Konkret: optional Gruppe wählen und
|
||||
Slots mit geplanten Trainingseinheiten verknüpfen.
|
||||
</p>
|
||||
<p className="form-sub">Hilft beim Filtern der Trainingsarten und bei der späteren Zuordnung in der Planung.</p>
|
||||
</div>
|
||||
|
||||
{form.plan_mode === 'concrete' && (
|
||||
<div className="form-row">
|
||||
<label className="form-label">Trainingsgruppe (optional)</label>
|
||||
<select
|
||||
className="form-input"
|
||||
value={form.group_id}
|
||||
onChange={(e) => updateField('group_id', e.target.value)}
|
||||
>
|
||||
<option value="">— keine —</option>
|
||||
{groups.map((g) => (
|
||||
<option key={g.id} value={String(g.id)}>
|
||||
{g.name} ({g.club_name || 'Verein'})
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
<div className="form-row">
|
||||
<label className="form-label">Stilrichtung (optional)</label>
|
||||
<select
|
||||
className="form-input"
|
||||
value={form.style_direction_id}
|
||||
onChange={(e) => updateField('style_direction_id', e.target.value)}
|
||||
>
|
||||
<option value="">— keine —</option>
|
||||
{styleDirections.map((sd) => (
|
||||
<option key={sd.id} value={String(sd.id)}>
|
||||
{sd.name}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
</div>
|
||||
<div className="form-row">
|
||||
<label className="form-label">Trainingsarten (optional, Mehrfachwahl)</label>
|
||||
<div className="framework-catalog-checkgrid">
|
||||
{trainingTypesFiltered.length === 0 ? (
|
||||
<p className="form-sub" style={{ marginTop: 0 }}>
|
||||
Keine Einträge im Katalog — oder Fokusbereich wählen, um zu filtern.
|
||||
</p>
|
||||
) : (
|
||||
trainingTypesFiltered.map((t) => (
|
||||
<label key={t.id} className="framework-catalog-check">
|
||||
<input
|
||||
type="checkbox"
|
||||
checked={(form.training_type_ids || []).includes(String(t.id))}
|
||||
onChange={() => toggleTrainingTypeId(t.id)}
|
||||
/>
|
||||
<span>{t.name}</span>
|
||||
</label>
|
||||
))
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
<div className="form-row">
|
||||
<label className="form-label">Zielgruppen (optional, Mehrfachwahl)</label>
|
||||
<div className="framework-catalog-checkgrid">
|
||||
{targetGroupsCatalog.length === 0 ? (
|
||||
<p className="form-sub" style={{ marginTop: 0 }}>
|
||||
Keine Zielgruppen im Katalog.
|
||||
</p>
|
||||
) : (
|
||||
targetGroupsCatalog.map((tg) => (
|
||||
<label key={tg.id} className="framework-catalog-check">
|
||||
<input
|
||||
type="checkbox"
|
||||
checked={(form.target_group_ids || []).includes(String(tg.id))}
|
||||
onChange={() => toggleTargetGroupId(tg.id)}
|
||||
/>
|
||||
<span>{tg.name}</span>
|
||||
</label>
|
||||
))
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="responsive-grid-2" style={{ marginBottom: '16px' }}>
|
||||
<div>
|
||||
@@ -1001,7 +1067,7 @@ export default function TrainingFrameworkProgramEditPage() {
|
||||
</div>
|
||||
|
||||
<details className="framework-slot-details">
|
||||
<summary className="framework-slot-details__summary">Notizen & Einheit</summary>
|
||||
<summary className="framework-slot-details__summary">Notizen (Session)</summary>
|
||||
<div className="form-row">
|
||||
<label className="form-label">Notizen</label>
|
||||
<textarea
|
||||
@@ -1011,31 +1077,6 @@ export default function TrainingFrameworkProgramEditPage() {
|
||||
onChange={(e) => slotField(si, 'notes', e.target.value)}
|
||||
/>
|
||||
</div>
|
||||
{form.plan_mode === 'concrete' && (
|
||||
<div className="form-row">
|
||||
<label className="form-label">Trainingseinheit (optional)</label>
|
||||
<select
|
||||
className="form-input"
|
||||
value={slot.training_unit_id}
|
||||
onChange={(e) => slotField(si, 'training_unit_id', e.target.value)}
|
||||
disabled={!form.group_id}
|
||||
>
|
||||
<option value="">— keine —</option>
|
||||
{units.map((u) => (
|
||||
<option key={u.id} value={String(u.id)}>
|
||||
{u.planned_date}
|
||||
{u.planned_time_start ? ` ${String(u.planned_time_start).slice(0, 5)}` : ''}
|
||||
{u.planned_focus ? ` · ${u.planned_focus}` : ''}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
{!form.group_id ? (
|
||||
<p style={{ fontSize: '0.82rem', color: 'var(--text2)', marginTop: '0.35rem' }}>
|
||||
Wähle in den Stammdaten eine Trainingsgruppe, um geplante Einheiten zu laden.
|
||||
</p>
|
||||
) : null}
|
||||
</div>
|
||||
)}
|
||||
</details>
|
||||
|
||||
<div className="framework-slot-card__exercises">
|
||||
|
||||
@@ -2,11 +2,21 @@ import React, { useCallback, useEffect, useState } from 'react'
|
||||
import { Link } from 'react-router-dom'
|
||||
import api from '../utils/api'
|
||||
|
||||
const MODE_LABELS = {
|
||||
concrete: 'Konkret (Gruppe / Einheiten)',
|
||||
library: 'Bibliothek',
|
||||
}
|
||||
const TYPE_COUNT = (r) =>
|
||||
typeof r.training_types_count === 'number' ? r.training_types_count : null
|
||||
const TG_COUNT = (r) =>
|
||||
typeof r.target_groups_count === 'number' ? r.target_groups_count : null
|
||||
|
||||
function contextTeaser(r) {
|
||||
const bits = []
|
||||
if (r.focus_area_name) bits.push(r.focus_area_name)
|
||||
if (r.style_direction_name) bits.push(r.style_direction_name)
|
||||
const tn = TYPE_COUNT(r)
|
||||
const gn = TG_COUNT(r)
|
||||
if (tn != null && tn > 0) bits.push(`${tn} Trainingsart${tn === 1 ? '' : 'en'}`)
|
||||
if (gn != null && gn > 0) bits.push(`${gn} Zielgruppe${gn === 1 ? '' : 'n'}`)
|
||||
return bits.length ? bits.join(' · ') : null
|
||||
}
|
||||
export default function TrainingFrameworkProgramsListPage() {
|
||||
const [rows, setRows] = useState([])
|
||||
const [loading, setLoading] = useState(true)
|
||||
@@ -55,12 +65,9 @@ export default function TrainingFrameworkProgramsListPage() {
|
||||
<div>
|
||||
<h1 style={{ marginBottom: '0.35rem' }}>Trainingsrahmenprogramme</h1>
|
||||
<p style={{ color: 'var(--text2)', fontSize: '0.95rem', maxWidth: '36rem' }}>
|
||||
Mehrere Entwicklungsziele und Übungen über Session‑Slots verteilen — als Vorlage in der Bibliothek oder
|
||||
im Kontext einer Gruppe.{' '}
|
||||
<span style={{ color: 'var(--text3)', fontSize: '0.88rem' }}>
|
||||
In der <strong>Bearbeitungsansicht</strong> gibt es auf schmalen Fenstern Registerkarten, auf breiten
|
||||
Bildschirmen zwei Spalten (Ziele | Slots).
|
||||
</span>
|
||||
Wiederverwendbare Vorlagen für Ziele und Sessions. Die Verknüpfung mit{' '}
|
||||
<strong>konkreten Gruppeneinheiten</strong> erfolgt aus der <strong>Planung der Gruppe</strong> (Übernahme
|
||||
mit Bezug zum Rahmen).
|
||||
</p>
|
||||
</div>
|
||||
<Link
|
||||
@@ -124,11 +131,12 @@ export default function TrainingFrameworkProgramsListPage() {
|
||||
{r.title || `Rahmen #${r.id}`}
|
||||
</Link>
|
||||
<div style={{ fontSize: '0.85rem', color: 'var(--text2)', marginTop: '0.35rem' }}>
|
||||
<span>{MODE_LABELS[r.plan_mode] || r.plan_mode}</span>
|
||||
{typeof r.goals_count === 'number' || typeof r.slots_count === 'number' ? (
|
||||
<span>
|
||||
{' '}
|
||||
· {r.goals_count ?? '—'} Ziele · {r.slots_count ?? '—'} Slots
|
||||
<span>
|
||||
{r.goals_count ?? '—'} Ziele · {r.slots_count ?? '—'} Slots
|
||||
</span>
|
||||
{contextTeaser(r) ? (
|
||||
<span style={{ display: 'block', marginTop: '0.25rem', color: 'var(--text3)' }}>
|
||||
{contextTeaser(r)}
|
||||
</span>
|
||||
) : null}
|
||||
</div>
|
||||
|
||||
@@ -11,8 +11,8 @@ export const PAGE_VERSIONS = {
|
||||
ClubsPage: "1.0.0",
|
||||
SkillsPage: "1.0.0",
|
||||
TrainingPlanningPage: "1.3.1",
|
||||
TrainingFrameworkProgramsListPage: "1.0.0",
|
||||
TrainingFrameworkProgramEditPage: "1.4.0",
|
||||
TrainingFrameworkProgramsListPage: "1.1.0",
|
||||
TrainingFrameworkProgramEditPage: "1.5.0",
|
||||
TrainingUnitRunPage: "1.1.0",
|
||||
TrainingCoachPage: "1.0.0",
|
||||
AdminCatalogsPage: "2.2.0", // Updated: Frontend API Calls & Field Names für renamed tables
|
||||
|
||||
Reference in new issue
Block a user