Enhance TrainingUnitSectionsEditor with new drag-and-drop functionality for parallel phases
Deploy Development / deploy (push) Successful in 39s
Test Suite / pytest-backend (push) Successful in 36s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 11s
Test Suite / k6 /health Baseline (push) Successful in 33s
Test Suite / playwright-tests (push) Successful in 1m8s

- Added new event handlers for drag-and-drop operations to manage sections above and below split headers in parallel phases.
- Implemented utility functions to reorder sections as whole groups or as the first entry in parallel phases, improving section management.
- Updated CSS styles to visually represent new drop zones for sections, enhancing user experience during reordering.
- Refactored existing logic to accommodate new features and ensure proper handling of section placements within parallel streams.
This commit is contained in:
Lars committed 2026-05-15 10:59:30 +02:00
1 parent 73975d3402
commit 72e8f31cff
3 files changed
+286 -13

No files matched your search

+17
View File
@@ -5990,6 +5990,23 @@ a.analysis-split__nav-item {
width: 100%;
}
/* Parallele Phase: feste Einfügebänder oberhalb/unterhalb des Split-Headers */
.tu-phase-drop--above-split,
.tu-phase-drop--below-split {
margin: 6px 2px 8px;
min-height: 14px;
}
.tu-section-dropband--phase-parallel-slot {
height: 14px;
background: linear-gradient(
180deg,
color-mix(in srgb, var(--accent) 12%, var(--surface2)) 0%,
hsl(200 30% 94%) 100%
);
border: 1px dashed color-mix(in srgb, var(--accent) 38%, transparent);
}
.tu-sec-drag-grip {
flex-shrink: 0;
display: inline-flex;