feat(training-units): enhance section editing with insert functionality
Deploy Development / deploy (push) Successful in 39s
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 56s

- Added new CSS styles for insert slots and buttons to improve UI for adding items between sections.
- Implemented functionality in the TrainingUnitSectionsEditor to allow users to insert notes and exercises at specified positions within sections.
- Updated the TrainingFrameworkProgramEditPage to support the new insert functionality, ensuring seamless integration with existing features.
- Enhanced state management to handle insert positions effectively, improving user experience during section editing.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Sonnet 4.6 committed 2026-05-12 22:05:22 +02:00
1 parent e41908af73
commit bfaf532ab2
4 files changed
+338 -66

No files matched your search

+58
View File
@@ -5128,6 +5128,64 @@ a.analysis-split__nav-item {
letter-spacing: 0.01em;
}
/* Einfügen zwischen Ablaufzeilen (Übung / Modul / Anmerkung) */
.tu-insert-slot {
display: flex;
align-items: center;
justify-content: center;
min-height: 11px;
margin: -1px 0 3px;
padding: 0 4px;
}
.tu-insert-slot__btn {
appearance: none;
margin: 0;
cursor: pointer;
border: 1px dashed var(--border2);
background: color-mix(in srgb, var(--surface2) 90%, transparent);
color: var(--accent-dark);
font-size: 0.9rem;
font-weight: 700;
line-height: 1;
padding: 2px 9px;
border-radius: 999px;
opacity: 0.78;
}
.tu-insert-slot__btn:hover,
.tu-insert-slot__btn:focus-visible {
opacity: 1;
outline: none;
border-color: var(--accent);
background: color-mix(in srgb, var(--accent-light) 40%, var(--surface2));
}
.tu-insert-chooser-actions {
display: flex;
flex-direction: column;
gap: 10px;
}
.tu-insert-chooser-actions__full {
width: 100%;
justify-content: center;
}
.tu-item-row--separator-note {
padding-top: 0.35rem;
padding-bottom: 0.35rem;
}
.tu-item-row__separator-line {
width: 100%;
margin: 0.2rem 0 0;
min-height: 1px;
border: none;
border-top: 2px solid var(--border);
opacity: 0.92;
}
.tu-item-row {
display: flex;
flex-wrap: wrap;