Enhance Exercise Progression Graph Panel and Path Builder with New Features
Deploy Development / deploy (push) Successful in 45s
Test Suite / pytest-backend (push) Successful in 48s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 14s
Test Suite / k6 /health Baseline (push) Successful in 33s
Test Suite / playwright-tests (push) Successful in 1m31s
Deploy Development / deploy (push) Successful in 45s
Test Suite / pytest-backend (push) Successful in 48s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 14s
Test Suite / k6 /health Baseline (push) Successful in 33s
Test Suite / playwright-tests (push) Successful in 1m31s
- Introduced a primary chain selection in the Exercise Progression Graph Panel to streamline exercise path management. - Updated the ProgressionChainEditor to support single path mode, allowing users to manage a single progression path more effectively. - Enhanced the ExerciseProgressionPathBuilder with improved logic for merging graph nodes into path steps and filtering gap offers. - Updated UI elements for better clarity and user experience, including new notifications and styling adjustments. - Incremented application version to reflect these updates.
This commit is contained in:
1 parent
800189ff8f
commit
8d5f0b533c
3 files changed
+224
-55
No files matched your search
@@ -66,6 +66,7 @@ const ProgressionChainEditor = forwardRef(function ProgressionChainEditor(
|
||||
onRefresh,
|
||||
onPickExercise,
|
||||
loadVariantsForExercise,
|
||||
singlePathMode = false,
|
||||
},
|
||||
ref,
|
||||
) {
|
||||
@@ -258,7 +259,7 @@ const ProgressionChainEditor = forwardRef(function ProgressionChainEditor(
|
||||
if (!graphId) return null
|
||||
|
||||
return (
|
||||
<div className="card" style={{ marginBottom: '12px' }}>
|
||||
<div style={{ marginBottom: '16px' }}>
|
||||
<div
|
||||
style={{
|
||||
display: 'flex',
|
||||
@@ -270,20 +271,25 @@ const ProgressionChainEditor = forwardRef(function ProgressionChainEditor(
|
||||
}}
|
||||
>
|
||||
<div>
|
||||
<h3 style={{ margin: 0, fontSize: '1rem' }}>Reihen im Graph</h3>
|
||||
<h4 style={{ margin: 0, fontSize: '0.95rem' }}>
|
||||
{singlePathMode ? 'Manuell bearbeiten' : 'Reihen im Graph'}
|
||||
</h4>
|
||||
<p style={{ fontSize: '12px', color: 'var(--text3)', margin: '4px 0 0', lineHeight: 1.45 }}>
|
||||
Jede Reihe ist ein linearer Pfad: Schritt 1 → 2 → … Reihenfolge ändern, Übungen tauschen oder
|
||||
dazwischen einfügen, dann speichern.
|
||||
Schritt 1 → 2 → …: Reihenfolge ändern, Übungen tauschen oder dazwischen einfügen, dann speichern.
|
||||
</p>
|
||||
</div>
|
||||
<button type="button" className="btn btn-primary" disabled={busy} onClick={addNewChain}>
|
||||
+ Neue Reihe
|
||||
</button>
|
||||
{!singlePathMode || drafts.length === 0 ? (
|
||||
<button type="button" className="btn btn-secondary" disabled={busy} onClick={addNewChain}>
|
||||
{singlePathMode ? '+ Pfad anlegen' : '+ Neue Reihe'}
|
||||
</button>
|
||||
) : null}
|
||||
</div>
|
||||
|
||||
{drafts.length === 0 ? (
|
||||
<p style={{ color: 'var(--text2)', margin: 0, fontSize: '13px' }}>
|
||||
Noch keine Reihen in diesem Graph. Legen Sie eine neue Reihe an oder nutzen Sie den KI-Planer unten.
|
||||
{singlePathMode
|
||||
? 'Noch kein gespeicherter Pfad — manuell anlegen oder mit dem KI-Planer unten.'
|
||||
: 'Noch keine Reihen in diesem Graph.'}
|
||||
</p>
|
||||
) : (
|
||||
drafts.map((draft, chainIdx) => (
|
||||
@@ -310,7 +316,9 @@ const ProgressionChainEditor = forwardRef(function ProgressionChainEditor(
|
||||
marginBottom: '12px',
|
||||
}}
|
||||
>
|
||||
<strong style={{ fontSize: '13px' }}>Reihe {chainIdx + 1}</strong>
|
||||
<strong style={{ fontSize: '13px' }}>
|
||||
{singlePathMode ? 'Gespeicherter Pfad' : `Reihe ${chainIdx + 1}`}
|
||||
</strong>
|
||||
{draft.dirty ? (
|
||||
<span className="exercise-tag" style={{ borderColor: 'var(--accent)' }}>
|
||||
Ungespeichert
|
||||
@@ -471,7 +479,7 @@ const ProgressionChainEditor = forwardRef(function ProgressionChainEditor(
|
||||
disabled={busy || savingKey === draft.key || !draft.dirty}
|
||||
onClick={() => saveDraft(draft)}
|
||||
>
|
||||
{savingKey === draft.key ? 'Speichern …' : 'Reihe speichern'}
|
||||
{savingKey === draft.key ? 'Speichern …' : singlePathMode ? 'Pfad speichern' : 'Reihe speichern'}
|
||||
</button>
|
||||
{draft.dirty ? (
|
||||
<button
|
||||
@@ -495,7 +503,7 @@ const ProgressionChainEditor = forwardRef(function ProgressionChainEditor(
|
||||
disabled={busy || savingKey === draft.key}
|
||||
onClick={() => deleteChain(draft)}
|
||||
>
|
||||
Reihe löschen
|
||||
{singlePathMode ? 'Pfad löschen' : 'Reihe löschen'}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user