feat(training-units): enhance training unit sections with new module display and functionality
Deploy Development / deploy (push) Successful in 37s
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) Failing after 30s
Deploy Development / deploy (push) Successful in 37s
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) Failing after 30s
- Added new CSS styles for module display, including a structured layout for exercises and notes within the Training Unit Sections Editor. - Implemented a function to gather and render module outlines, improving the visibility of exercises and notes associated with training modules. - Enhanced the TrainingPlanningPage to support module search and preview functionality, allowing users to filter and view module details before applying them. - Improved state management for module application, ensuring a smoother user experience when inserting modules into training plans. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
bfaf532ab2
commit
e96951728d
3 files changed
+675
-93
No files matched your search
@@ -5116,6 +5116,7 @@ a.analysis-split__nav-item {
|
||||
}
|
||||
|
||||
.tu-planning-module-band {
|
||||
/* Legacy — Ersetzt durch .tu-module-bundle-head; wird aus Kompatibilität vorerst beibehalten. */
|
||||
margin-top: 0.85rem;
|
||||
margin-bottom: 0.05rem;
|
||||
padding: 0.35rem 0.65rem;
|
||||
@@ -5128,6 +5129,180 @@ a.analysis-split__nav-item {
|
||||
letter-spacing: 0.01em;
|
||||
}
|
||||
|
||||
.tu-module-bundle-head {
|
||||
display: flex;
|
||||
align-items: stretch;
|
||||
gap: 0;
|
||||
margin: 0.65rem 0 0.15rem;
|
||||
border-radius: 14px;
|
||||
overflow: hidden;
|
||||
border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border2));
|
||||
background: linear-gradient(
|
||||
134deg,
|
||||
color-mix(in srgb, var(--accent-light) 55%, var(--surface)) 0%,
|
||||
var(--surface) 68%
|
||||
);
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
|
||||
}
|
||||
|
||||
.tu-module-bundle-head__stripe {
|
||||
width: 5px;
|
||||
flex-shrink: 0;
|
||||
background: linear-gradient(180deg, var(--accent) 0%, color-mix(in srgb, var(--accent-dark) 92%, black) 100%);
|
||||
}
|
||||
|
||||
.tu-module-bundle-head__main {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
padding: 0.6rem 0.75rem 0.72rem;
|
||||
}
|
||||
|
||||
.tu-module-bundle-head__kicker {
|
||||
display: block;
|
||||
font-size: 0.65rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.07em;
|
||||
text-transform: uppercase;
|
||||
color: color-mix(in srgb, var(--accent-dark) 88%, var(--text3));
|
||||
margin-bottom: 0.12rem;
|
||||
}
|
||||
|
||||
.tu-module-bundle-head__title {
|
||||
display: block;
|
||||
font-size: 1.02rem;
|
||||
font-weight: 700;
|
||||
color: var(--text1);
|
||||
line-height: 1.25;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.tu-module-bundle-head__list {
|
||||
margin: 0;
|
||||
padding-left: 1.15rem;
|
||||
font-size: 0.84rem;
|
||||
line-height: 1.48;
|
||||
color: var(--text2);
|
||||
}
|
||||
|
||||
.tu-module-bundle-head__list li {
|
||||
margin-bottom: 0.12rem;
|
||||
}
|
||||
|
||||
.tu-module-bundle-head__list li::marker {
|
||||
color: var(--accent-dark);
|
||||
}
|
||||
|
||||
.tu-module-bundle-head__more,
|
||||
.tu-module-bundle-head__meta,
|
||||
.tu-module-bundle-head__empty {
|
||||
margin: 0.25rem 0 0;
|
||||
font-size: 0.79rem;
|
||||
line-height: 1.42;
|
||||
color: var(--text3);
|
||||
}
|
||||
|
||||
.tu-module-bundle-head__empty {
|
||||
margin-top: 0.15rem;
|
||||
}
|
||||
|
||||
.tu-modulepick-search {
|
||||
width: 100%;
|
||||
margin-bottom: 0.55rem;
|
||||
}
|
||||
|
||||
.tu-modulepick-list {
|
||||
max-height: 240px;
|
||||
overflow-y: auto;
|
||||
padding: 2px;
|
||||
margin: 0 -2px;
|
||||
border-radius: 10px;
|
||||
border: 1px solid var(--border2);
|
||||
background: color-mix(in srgb, var(--surface2) 22%, var(--surface));
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.tu-modulepick-item {
|
||||
text-align: left;
|
||||
appearance: none;
|
||||
margin: 0;
|
||||
cursor: pointer;
|
||||
width: 100%;
|
||||
padding: 0.45rem 0.62rem;
|
||||
border-radius: 8px;
|
||||
border: 1px solid transparent;
|
||||
background: var(--surface);
|
||||
color: var(--text1);
|
||||
transition:
|
||||
border-color 0.12s ease,
|
||||
box-shadow 0.12s ease;
|
||||
}
|
||||
|
||||
.tu-modulepick-item:hover {
|
||||
border-color: color-mix(in srgb, var(--accent) 28%, transparent);
|
||||
}
|
||||
|
||||
.tu-modulepick-item--active {
|
||||
border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
|
||||
box-shadow:
|
||||
0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent),
|
||||
0 2px 10px rgba(29, 158, 117, 0.08);
|
||||
}
|
||||
|
||||
.tu-modulepick-item__title {
|
||||
display: block;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.tu-modulepick-item__meta {
|
||||
display: block;
|
||||
margin-top: 0.08rem;
|
||||
font-size: 0.74rem;
|
||||
color: var(--text3);
|
||||
line-height: 1.38;
|
||||
}
|
||||
|
||||
.tu-modulepick-preview {
|
||||
margin-top: 0.85rem;
|
||||
padding: 0.55rem 0.72rem;
|
||||
border-radius: 10px;
|
||||
border: 1px dashed var(--border2);
|
||||
background: color-mix(in srgb, var(--surface2) 38%, transparent);
|
||||
}
|
||||
|
||||
.tu-modulepick-preview__title {
|
||||
margin: 0 0 0.45rem;
|
||||
font-size: 0.74rem;
|
||||
font-weight: 800;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
color: var(--text3);
|
||||
}
|
||||
|
||||
.tu-modulepick-preview__list {
|
||||
margin: 0;
|
||||
padding-left: 1.1rem;
|
||||
font-size: 0.82rem;
|
||||
color: var(--text2);
|
||||
line-height: 1.42;
|
||||
}
|
||||
|
||||
.tu-modulepick-preview__more {
|
||||
margin: 0.35rem 0 0;
|
||||
font-size: 0.78rem;
|
||||
color: var(--text3);
|
||||
}
|
||||
|
||||
.tu-module-apply-placement-details summary {
|
||||
cursor: pointer;
|
||||
font-weight: 600;
|
||||
font-size: 0.82rem;
|
||||
color: var(--accent-dark);
|
||||
margin: 0.25rem 0 0;
|
||||
}
|
||||
|
||||
/* Einfügen zwischen Ablaufzeilen (Übung / Modul / Anmerkung) */
|
||||
.tu-insert-slot {
|
||||
display: flex;
|
||||
@@ -5186,6 +5361,47 @@ a.analysis-split__nav-item {
|
||||
opacity: 0.92;
|
||||
}
|
||||
|
||||
.training-unit-sections-editor .tu-item-row {
|
||||
border-top: none;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.training-unit-sections-editor .tu-item-row--exercise {
|
||||
margin-top: 0.58rem;
|
||||
padding: 0.55rem 0.72rem 0.55rem;
|
||||
border-radius: 14px;
|
||||
border: 1px solid color-mix(in srgb, var(--border2) 85%, var(--accent) 15%);
|
||||
background: linear-gradient(160deg, var(--surface) 0%, color-mix(in srgb, var(--surface2) 35%, var(--surface)) 100%);
|
||||
box-shadow:
|
||||
0 1px 0 rgba(255, 255, 255, 0.56) inset,
|
||||
0 2px 10px rgba(15, 23, 42, 0.05);
|
||||
}
|
||||
|
||||
.training-unit-sections-editor .tu-item-row--note:not(.tu-item-row--separator-note) {
|
||||
margin-top: 0.52rem;
|
||||
padding: 0.48rem 0.72rem;
|
||||
border-radius: 11px;
|
||||
border: 1px solid color-mix(in srgb, var(--border2) 70%, transparent);
|
||||
background: color-mix(in srgb, var(--surface2) 28%, var(--surface));
|
||||
}
|
||||
|
||||
.training-unit-sections-editor .tu-item-row--separator-note {
|
||||
margin-top: 0.42rem;
|
||||
border-radius: 10px;
|
||||
border: 1px dashed color-mix(in srgb, var(--border2) 75%, transparent);
|
||||
background: color-mix(in srgb, var(--surface2) 15%, transparent);
|
||||
}
|
||||
|
||||
.training-unit-sections-editor .tu-item-row--from-module.tu-item-row--exercise,
|
||||
.training-unit-sections-editor .tu-item-row--from-module.tu-item-row--note:not(.tu-item-row--separator-note) {
|
||||
border-left: 4px solid var(--accent);
|
||||
padding-left: 0.6rem;
|
||||
box-shadow:
|
||||
0 1px 0 rgba(255, 255, 255, 0.52) inset,
|
||||
0 2px 12px rgba(29, 158, 117, 0.07),
|
||||
inset 10px 0 0 color-mix(in srgb, var(--accent) 14%, transparent);
|
||||
}
|
||||
|
||||
.tu-item-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
||||
Reference in new issue
Block a user