feat: enhance SQL query handling and UI components for exercise management
Deploy Development / deploy (push) Successful in 36s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 5s
Test Suite / playwright-tests (push) Has been cancelled

- Introduced a new utility function to streamline SQL query construction for active status filtering, improving code reusability across multiple endpoints.
- Updated existing query logic in the catalogs and skills routers to utilize the new utility function, ensuring consistent handling of active status.
- Refactored the ExerciseFormPage to remove deprecated age group handling, simplifying the form structure.
- Enhanced the RichTextEditor component with improved link handling and formatting options for better user experience.
- Updated API utility functions to support new AI features for exercise suggestions and regeneration, expanding the capabilities of the exercise management system.
This commit is contained in:
Lars committed 2026-04-27 15:01:47 +02:00
1 parent d8f439a3e5
commit 0ad096e483
7 files changed
+129 -84

No files matched your search

@@ -73,9 +73,6 @@ function TagRow({ exercise }) {
;(exercise.target_groups || []).forEach((g) => {
tags.push({ key: `tg-${g.id}`, label: g.name, accent: !!g.is_primary })
})
;(exercise.age_groups || []).forEach((ag) => {
tags.push({ key: `ag-${ag}`, label: ag, accent: false })
})
if (tags.length === 0) return null
return (
<div className="exercise-tag-row">