Enhance TrainingCoachPage and trainingPlanUtils with split rejoin transition logic
Deploy Development / deploy (push) Successful in 39s
Test Suite / pytest-backend (push) Successful in 37s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 13s
Test Suite / k6 /health Baseline (push) Successful in 33s
Test Suite / playwright-tests (push) Successful in 1m11s
Test Suite / pytest-backend (pull_request) Successful in 34s
Test Suite / lint-backend (pull_request) Successful in 0s
Test Suite / build-frontend (pull_request) Successful in 12s
Test Suite / k6 /health Baseline (pull_request) Successful in 34s
Test Suite / playwright-tests (pull_request) Successful in 1m20s
Deploy Development / deploy (push) Successful in 39s
Test Suite / pytest-backend (push) Successful in 37s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 13s
Test Suite / k6 /health Baseline (push) Successful in 33s
Test Suite / playwright-tests (push) Successful in 1m11s
Test Suite / pytest-backend (pull_request) Successful in 34s
Test Suite / lint-backend (pull_request) Successful in 0s
Test Suite / build-frontend (pull_request) Successful in 12s
Test Suite / k6 /health Baseline (pull_request) Successful in 34s
Test Suite / playwright-tests (pull_request) Successful in 1m20s
- Introduced a new utility function to determine when to prompt for a split rejoin transition between phases, improving user guidance during training sessions. - Updated TrainingCoachPage to incorporate this logic, enhancing the flow of navigation through training timelines. - Refactored button actions to provide clearer options for users when managing group transitions, optimizing the user experience during training.
This commit is contained in:
1 parent
5e5350d5ac
commit
a4f11a8225
2 files changed
+63
-24
No files matched your search
@@ -519,6 +519,20 @@ export function coachShouldPromptSplitRejoin(unit, lastTimelineEntry) {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Nach dem letzten Block eines gewählten Streams: Rückfrage vor Ganzgruppenphase oder vor dem nächsten Split,
|
||||
* wenn die aktuelle Parallelphase mehrere Streams hat.
|
||||
*/
|
||||
export function coachShouldPromptSplitRejoinTransition(unit, currentEntry, nextEntry) {
|
||||
if (!currentEntry || !nextEntry) return null
|
||||
const cRm = currentEntry.runMeta
|
||||
if (!cRm || cRm.kind !== 'parallel' || cRm.streamOrder == null) return null
|
||||
const intoWholeGroup = nextEntry.runMeta?.kind === 'whole_group'
|
||||
const intoNextSplit = nextEntry.entryKind === COACH_ENTRY_BRANCH_GATE
|
||||
if (!intoWholeGroup && !intoNextSplit) return null
|
||||
return coachShouldPromptSplitRejoin(unit, currentEntry)
|
||||
}
|
||||
|
||||
export function summarizeTimelineEntry(ent) {
|
||||
if (!ent) return ''
|
||||
if (ent.entryKind === COACH_ENTRY_BRANCH_GATE) {
|
||||
|
||||
Reference in new issue
Block a user