feat: enhance SQL query handling and UI components for exercise management
- 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:
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">
|
||||
|
||||
Reference in new issue
Block a user