feat: enhance UI and functionality in Training Framework pages
Deploy Development / deploy (push) Successful in 35s
Test Suite / pytest-backend (push) Successful in 7s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 6s
Test Suite / playwright-tests (push) Failing after 53s
Deploy Development / deploy (push) Successful in 35s
Test Suite / pytest-backend (push) Successful in 7s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 6s
Test Suite / playwright-tests (push) Failing after 53s
- Added new CSS styles for segment buttons and admin assignment matrix, improving layout and responsiveness. - Refactored AssignmentsTab component to utilize new styles and improve accessibility with aria-labels. - Introduced collapsible details for framework edit introduction, enhancing user guidance. - Updated TrainingPlanningPage to streamline button styling and improve visual consistency across components.
This commit is contained in:
1 parent
14884e6e55
commit
18a58cb5a5
5 files changed
+212
-161
No files matched your search
@@ -663,52 +663,39 @@ export default function TrainingFrameworkProgramEditPage() {
|
||||
|
||||
<h1 style={{ marginBottom: '0.75rem' }}>{isNew ? 'Neues Rahmenprogramm' : 'Rahmenprogramm bearbeiten'}</h1>
|
||||
|
||||
<div className="card" style={{ marginBottom: '1rem', background: 'var(--surface2)', borderStyle: 'dashed' }}>
|
||||
<p style={{ fontSize: '0.88rem', color: 'var(--text2)', lineHeight: 1.55, margin: 0 }}>
|
||||
<details className="framework-edit-intro">
|
||||
<summary className="framework-edit-intro__summary">
|
||||
Kurz erklärt: Was ist ein Rahmenprogramm?
|
||||
</summary>
|
||||
<div className="framework-edit-intro__body">
|
||||
<strong style={{ color: 'var(--text1)' }}>Rahmenprogramm (Bibliothek):</strong> Wiederverwendbare Vorlage mit
|
||||
Zielen und Session‑Slots. <strong>Zuordnung zu Gruppe oder Kalendertermin</strong> erfolgt aus der{' '}
|
||||
Zielen und Session‑Slots. Die <strong>Zuordnung zu Gruppe oder Kalendertermin</strong> erfolgt aus der{' '}
|
||||
<strong>Gruppen‑Planung</strong> („Übernahme“). Pro Slot planst du den Ablauf wie bei einer Trainingsseinheit:{' '}
|
||||
<strong>Abschnitte</strong>, Übungen mit Varianten und Dauer, <strong>Zwischen‑Anmerkungen</strong>.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</details>
|
||||
|
||||
<div
|
||||
className="framework-edit__tabbar"
|
||||
role="tablist"
|
||||
aria-label="Bereiche"
|
||||
style={
|
||||
desktopLayout
|
||||
? { display: 'none' }
|
||||
: {
|
||||
display: 'flex',
|
||||
gap: 6,
|
||||
marginBottom: 14,
|
||||
padding: '6px 0 12px',
|
||||
borderBottom: '2px solid var(--accent)',
|
||||
flexWrap: 'nowrap',
|
||||
overflowX: 'auto',
|
||||
position: 'sticky',
|
||||
top: 0,
|
||||
zIndex: 6,
|
||||
background: 'var(--bg)',
|
||||
<div className="framework-edit__tabbar" role="tablist" aria-label="Bereiche">
|
||||
<div className="planning-segment-group planning-segment-group--equal">
|
||||
{[
|
||||
{ id: 'meta', label: 'Stammdaten' },
|
||||
{ id: 'plan', label: 'Plan (Ziele & Sessions)' },
|
||||
].map((t) => (
|
||||
<button
|
||||
key={t.id}
|
||||
type="button"
|
||||
role="tab"
|
||||
aria-selected={frameworkTab === t.id}
|
||||
className={
|
||||
'planning-segment-group__btn' +
|
||||
(frameworkTab === t.id ? ' planning-segment-group__btn--active' : '')
|
||||
}
|
||||
}
|
||||
>
|
||||
{[
|
||||
{ id: 'meta', label: 'Stammdaten' },
|
||||
{ id: 'plan', label: 'Plan (Ziele & Sessions)' },
|
||||
].map((t) => (
|
||||
<button
|
||||
key={t.id}
|
||||
type="button"
|
||||
role="tab"
|
||||
aria-selected={frameworkTab === t.id}
|
||||
className={'framework-edit__tab' + (frameworkTab === t.id ? ' framework-edit__tab--active' : '')}
|
||||
onClick={() => setFrameworkTab(t.id)}
|
||||
>
|
||||
{t.label}
|
||||
</button>
|
||||
))}
|
||||
onClick={() => setFrameworkTab(t.id)}
|
||||
>
|
||||
{t.label}
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div
|
||||
|
||||
@@ -100,12 +100,23 @@ export default function TrainingFrameworkProgramsListPage() {
|
||||
}}
|
||||
>
|
||||
<div>
|
||||
<h1 style={{ marginBottom: '0.35rem' }}>Trainingsrahmenprogramme</h1>
|
||||
<p style={{ color: 'var(--text2)', fontSize: '0.95rem', maxWidth: '36rem' }}>
|
||||
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).
|
||||
<h1 className="page-title" style={{ marginBottom: '0.35rem' }}>
|
||||
Trainingsrahmenprogramme
|
||||
</h1>
|
||||
<p style={{ color: 'var(--text2)', fontSize: '0.95rem', maxWidth: '36rem', margin: 0 }}>
|
||||
Vorlagen für Ziele und Sessions — die Verknüpfung mit Gruppenterminen erfolgt in der{' '}
|
||||
<Link to="/planning" style={{ fontWeight: 600, color: 'var(--accent-dark)' }}>
|
||||
Trainingsplanung
|
||||
</Link>
|
||||
.
|
||||
</p>
|
||||
<details className="planning-filter-help" style={{ marginTop: '10px', maxWidth: '36rem' }}>
|
||||
<summary className="planning-filter-help__summary">Mehr zur Übernahme in die Planung</summary>
|
||||
<div className="planning-filter-help__body">
|
||||
Unter <strong>Planung</strong> wählst du eine Gruppe und übernimmst Slots aus einem Rahmenprogramm in
|
||||
echte Termine. So bleibt die Bibliothek wiederverwendbar, ohne dass Einzelgruppen fest verdrahtet sind.
|
||||
</div>
|
||||
</details>
|
||||
</div>
|
||||
<Link
|
||||
to="/planning/framework-programs/new"
|
||||
|
||||
@@ -865,31 +865,18 @@ function TrainingPlanningPage() {
|
||||
Ansicht
|
||||
</span>
|
||||
<div
|
||||
className="planning-segment-group planning-segment-group--comfort"
|
||||
role="group"
|
||||
aria-label="Darstellung Liste oder Kalender"
|
||||
style={{
|
||||
display: 'inline-flex',
|
||||
borderRadius: '10px',
|
||||
border: '1.5px solid var(--border2)',
|
||||
overflow: 'hidden',
|
||||
background: 'var(--surface2)',
|
||||
boxSizing: 'border-box',
|
||||
}}
|
||||
>
|
||||
<button
|
||||
type="button"
|
||||
aria-pressed={planView === 'list'}
|
||||
onClick={() => setPlanView('list')}
|
||||
style={{
|
||||
border: 'none',
|
||||
padding: '10px 20px',
|
||||
fontWeight: 600,
|
||||
fontSize: '0.92rem',
|
||||
cursor: 'pointer',
|
||||
background: planView === 'list' ? 'var(--accent-dark)' : 'transparent',
|
||||
color: planView === 'list' ? '#fff' : 'var(--text1)',
|
||||
whiteSpace: 'nowrap',
|
||||
}}
|
||||
className={
|
||||
'planning-segment-group__btn' +
|
||||
(planView === 'list' ? ' planning-segment-group__btn--active' : '')
|
||||
}
|
||||
>
|
||||
Liste
|
||||
</button>
|
||||
@@ -904,17 +891,10 @@ function TrainingPlanningPage() {
|
||||
return prev || new Date().toISOString().slice(0, 7)
|
||||
})
|
||||
}}
|
||||
style={{
|
||||
border: 'none',
|
||||
borderLeft: '1.5px solid var(--border2)',
|
||||
padding: '10px 20px',
|
||||
fontWeight: 600,
|
||||
fontSize: '0.92rem',
|
||||
cursor: 'pointer',
|
||||
background: planView === 'calendar' ? 'var(--accent-dark)' : 'transparent',
|
||||
color: planView === 'calendar' ? '#fff' : 'var(--text1)',
|
||||
whiteSpace: 'nowrap',
|
||||
}}
|
||||
className={
|
||||
'planning-segment-group__btn' +
|
||||
(planView === 'calendar' ? ' planning-segment-group__btn--active' : '')
|
||||
}
|
||||
>
|
||||
Kalender
|
||||
</button>
|
||||
@@ -927,8 +907,8 @@ function TrainingPlanningPage() {
|
||||
</div>
|
||||
|
||||
<p style={{ color: 'var(--text2)', fontSize: '0.95rem', marginBottom: '1.25rem' }}>
|
||||
Wähle eine Trainingsgruppe, lege dann Termine mit Inhalt (Abschnitte und Übungen) an — ein Plan entsteht aus einer oder mehreren{' '}
|
||||
<strong>Trainingseinheiten</strong> im gewählten Zeitraum.
|
||||
Wähle eine Trainingsgruppe und lege <strong>Trainingseinheiten</strong> für den Zeitraum an (Inhalt: Abschnitte
|
||||
und Übungen).
|
||||
</p>
|
||||
|
||||
<div className="card" style={{ marginBottom: '1.25rem', padding: '12px 14px' }}>
|
||||
|
||||
Reference in new issue
Block a user