feat(training-planning): enhance training module integration and UI
Deploy Development / deploy (push) Successful in 40s
Test Suite / pytest-backend (push) Successful in 39s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 11s
Test Suite / playwright-tests (push) Successful in 56s

- Introduced a new function to handle optional source training module IDs, ensuring proper validation and integration.
- Updated the backend to include source training module ID and title in section items, allowing for better tracking of module origins.
- Enhanced the frontend to display module bands in the Training Unit Sections Editor, improving user experience by indicating the source of exercises and notes.
- Added functionality to insert training modules at specified positions within sections, providing users with more control over their training plans.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Sonnet 4.6 committed 2026-05-12 21:53:41 +02:00
1 parent c1243651bb
commit e41908af73
6 files changed
+385 -83

No files matched your search

+13
View File
@@ -5115,6 +5115,19 @@ a.analysis-split__nav-item {
max-width: 100%;
}
.tu-planning-module-band {
margin-top: 0.85rem;
margin-bottom: 0.05rem;
padding: 0.35rem 0.65rem;
border-radius: 8px;
border: 1px solid var(--border2);
background: linear-gradient(to right, var(--accent-light), transparent 140%);
font-size: 0.78rem;
font-weight: 700;
color: var(--accent-dark);
letter-spacing: 0.01em;
}
.tu-item-row {
display: flex;
flex-wrap: wrap;