Implement drag-and-drop functionality for parallel stream sections in TrainingUnitSectionsEditor
Deploy Development / deploy (push) Successful in 42s
Test Suite / pytest-backend (push) Successful in 36s
Test Suite / lint-backend (push) Successful in 1s
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 CSS styles for visual feedback during drag-and-drop operations, enhancing user experience.
- Introduced logic to manage section drops into parallel streams, allowing for intuitive reordering of sections.
- Implemented utility functions to facilitate the movement of sections within parallel streams, ensuring proper plan location adjustments.
- Updated the TrainingUnitSectionsEditor component to utilize the new drag-and-drop features, improving overall functionality and usability.
This commit is contained in:
Lars committed 2026-05-15 09:10:54 +02:00
1 parent 514b64682c
commit c2efbee4ee
3 files changed
+249 -12

No files matched your search

+16
View File
@@ -5974,6 +5974,22 @@ a.analysis-split__nav-item {
background: color-mix(in srgb, var(--surface2) 55%, transparent);
}
/* Stream-Tag / Planende: klar getrennte Drop-Ziele bei parallelen Phasen */
.tu-stream-chip-pill--drop-active {
box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent);
}
.tu-section-dropband--whole-plan-end {
background: color-mix(in srgb, var(--accent) 14%, var(--surface2));
border: 1px dashed color-mix(in srgb, var(--accent) 35%, transparent);
height: 14px;
}
.tu-section-stream-append__drop {
margin: 0;
width: 100%;
}
.tu-sec-drag-grip {
flex-shrink: 0;
display: inline-flex;