Update version to 0.8.148 and enhance training plan template functionality
Deploy Development / deploy (push) Successful in 41s
Test Suite / pytest-backend (push) Successful in 37s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 12s
Test Suite / k6 /health Baseline (push) Successful in 33s
Test Suite / playwright-tests (push) Successful in 1m7s

- Incremented app version to 0.8.148 and updated changelog to reflect new features.
- Improved the training plan template structure by adding a preview of sections, including support for split sessions.
- Introduced a new editing page for training plan templates, allowing users to modify templates directly.
- Enhanced the TrainingPlanningPageRoot to include a description field when saving templates, improving user guidance.
- Updated permissions to allow editing of training plan templates based on user roles.
This commit is contained in:
Lars committed 2026-05-19 10:13:26 +02:00
1 parent 1684892bcb
commit f15aa7c415
10 files changed
+583 -32

No files matched your search

+20 -1
View File
@@ -1857,7 +1857,26 @@ def list_training_plan_templates(tenant: TenantContext = Depends(get_tenant_cont
f"""
SELECT t.*,
(SELECT COUNT(*) FROM training_plan_template_sections s WHERE s.template_id = t.id)
AS sections_count
AS sections_count,
COALESCE(
(
SELECT json_agg(
json_build_object(
'id', s.id,
'order_index', s.order_index,
'title', s.title,
'guidance_text', s.guidance_text,
'phase_kind', s.phase_kind,
'phase_order_index', s.phase_order_index,
'parallel_stream_order_index', s.parallel_stream_order_index
)
ORDER BY s.order_index
)
FROM training_plan_template_sections s
WHERE s.template_id = t.id
),
'[]'::json
) AS sections
FROM training_plan_templates t
WHERE ({vis_clause})
ORDER BY t.updated_at DESC NULLS LAST, t.name