feat(version): bump to 0.8.103 and enhance planning method profile integration
Deploy Development / deploy (push) Successful in 38s
Test Suite / pytest-backend (push) Successful in 35s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 11s
Test Suite / playwright-tests (push) Successful in 59s
Deploy Development / deploy (push) Successful in 38s
Test Suite / pytest-backend (push) Successful in 35s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 11s
Test Suite / playwright-tests (push) Successful in 59s
- Updated app version to 0.8.103, reflecting recent enhancements in training planning. - Incremented database schema version to 20260512057, ensuring compatibility with new features. - Introduced optional `planning_method_profile` for combination exercises, allowing for detailed planning and coaching support. - Enhanced frontend components to manage and display planning method profiles effectively in the Training Unit Sections Editor and ExerciseFullContent. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
12fd3926b2
commit
4e654e50c0
9 files changed
+233
-17
No files matched your search
@@ -0,0 +1,26 @@
|
||||
/** Effektives Ablaufprofil für Kombination im Coach/in der Planung */
|
||||
|
||||
export function effectiveComboMethodProfile(catalogDict, planningSnapshot) {
|
||||
const cat =
|
||||
catalogDict && typeof catalogDict === 'object' && !Array.isArray(catalogDict)
|
||||
? catalogDict
|
||||
: {}
|
||||
if (
|
||||
planningSnapshot !== null &&
|
||||
planningSnapshot !== undefined &&
|
||||
typeof planningSnapshot === 'object' &&
|
||||
!Array.isArray(planningSnapshot)
|
||||
) {
|
||||
return { ...planningSnapshot }
|
||||
}
|
||||
return { ...cat }
|
||||
}
|
||||
|
||||
export function comboPlanningProfileJsonForEditor(catalogDict, planningSnapshot) {
|
||||
const o = effectiveComboMethodProfile(catalogDict, planningSnapshot)
|
||||
try {
|
||||
return JSON.stringify(Object.keys(o).length ? o : {})
|
||||
} catch {
|
||||
return '{}'
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user