Implement Phase C2 Enhancements for Exercise Suggestions
Deploy Development / deploy (push) Successful in 44s
Test Suite / pytest-backend (push) Successful in 40s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 18s
Test Suite / k6 /health Baseline (push) Successful in 33s
Test Suite / playwright-tests (push) Successful in 1m14s
Test Suite / pytest-backend (pull_request) Successful in 38s
Test Suite / lint-backend (pull_request) Successful in 0s
Test Suite / build-frontend (pull_request) Successful in 13s
Test Suite / k6 /health Baseline (pull_request) Successful in 33s
Test Suite / playwright-tests (pull_request) Successful in 1m13s

- Incremented version to 0.8.184, reflecting the implementation of Phase C2 features.
- Added support for displaying variant lists and suggested variant names in exercise suggestions.
- Enhanced the ExercisePickerModal to allow selection of exercise variants and improved handling of variant IDs.
- Updated backend logic to enrich planning hits with variant metadata, ensuring accurate exercise variant selection.
- Documented changes in the changelog to highlight the new capabilities in planning AI functionality.
This commit is contained in:
Lars committed 2026-05-23 11:39:18 +02:00
1 parent b2157d8a40
commit a34e748be5
10 files changed
+280 -27

No files matched your search

@@ -500,13 +500,17 @@ export default function ExerciseProgressionGraphPanel({
const applyPickedExercise = async (ex) => {
const title = ex.title || `Übung #${ex.id}`
const variants = await loadVariantsForExercise(ex.id)
const variants = Array.isArray(ex.variants) && ex.variants.length
? ex.variants
: await loadVariantsForExercise(ex.id)
const variantId =
ex.exercise_variant_id ?? ex.suggested_variant_id ?? null
if (pickContext?.kind === 'sequence') {
patchSeqStep(pickContext.index, {
exerciseId: ex.id,
exerciseTitle: title,
variantId: null,
variantId: variantId != null ? Number(variantId) : null,
variants,
})
setPickContext(null)
@@ -516,7 +520,7 @@ export default function ExerciseProgressionGraphPanel({
const patch = {
exerciseId: ex.id,
exerciseTitle: title,
variantId: null,
variantId: variantId != null ? Number(variantId) : null,
variants,
}
if (pickContext.slot === 'first') setFirstEp(patch)