feat(version): bump to 0.8.110 and enhance combination exercise features
Test Suite / lint-backend (push) Waiting to run
Test Suite / build-frontend (push) Waiting to run
Test Suite / playwright-tests (push) Waiting to run
Deploy Development / deploy (push) Successful in 40s
Test Suite / pytest-backend (push) Has been cancelled

- Updated app version to 0.8.110, reflecting recent improvements in combination exercise handling.
- Introduced `load_combination_slots_for_exercise` function to streamline fetching combination slots for exercises.
- Enhanced `TrainingPlanningPage` and `ExercisePeekModal` to utilize the new combination slots functionality, improving user experience.
- Updated changelog to document the latest changes and feature enhancements.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Sonnet 4.6 committed 2026-05-13 14:24:55 +02:00
1 parent 5dc93d9a8c
commit a8942a9e4e
10 files changed
+475 -84

No files matched your search

@@ -170,6 +170,45 @@ export const METHOD_PROFILE_GUI_FIELDS = Object.freeze({
free_method_block: [],
})
function shortenComboGuiCaption(label) {
const t = (label || '').trim()
if (!t) return ''
const cut = t.split('(')[0].trim()
return cut.length > 52 ? `${cut.slice(0, 50)}…` : cut
}
/**
* Globale Archetyp-Felder aus method_profile für Lesetext (Vorschau, Druck).
* Ignoriert slot_profiles_v1 (kommt separat je Station).
*/
export function describeGlobalComboProfile(archetypeKey, profileObj) {
const arch = typeof archetypeKey === 'string' ? archetypeKey.trim() : ''
if (!profileObj || typeof profileObj !== 'object' || Array.isArray(profileObj)) return []
const defs = METHOD_PROFILE_GUI_FIELDS[arch] || []
const rows = []
for (const def of defs) {
const val = profileObj[def.key]
if (val === undefined || val === null || val === '') continue
if (def.kind === 'bool') {
const on = val === true || val === 'true' || val === 1 || val === '1'
rows.push({
key: def.key,
caption: shortenComboGuiCaption(def.label),
detailLabel: def.label,
value: on ? 'Ja' : 'Nein',
})
} else {
rows.push({
key: def.key,
caption: shortenComboGuiCaption(def.label),
detailLabel: def.label,
value: String(val),
})
}
}
return rows
}
/**
* Aktualisiert method_profile unter Beibehaltung nicht-GUI Schlüssel.
*/