feat: enhance dashboard and exercises list with new filtering and UI components
Deploy Development / deploy (push) Successful in 34s
Test Suite / pytest-backend (push) Successful in 6s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 6s
Test Suite / playwright-tests (push) Successful in 23s
Deploy Development / deploy (push) Successful in 34s
Test Suite / pytest-backend (push) Successful in 6s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 6s
Test Suite / playwright-tests (push) Successful in 23s
- Added a new filter option in the list_exercises function to allow users to view exercises created by the current profile. - Introduced new CSS styles for the dashboard, including KPI tiles and training previews, improving layout and user experience. - Updated the Dashboard component to fetch and display statistics related to user-created exercises, enhancing visibility of personal metrics. - Enhanced the ExercisesListPage to support filtering based on user-specific exercise creation, improving data relevance for users.
This commit is contained in:
1 parent
3210796139
commit
3bf0af001a
4 files changed
+481
-131
No files matched your search
@@ -3595,6 +3595,199 @@ a.analysis-split__nav-item {
|
||||
}
|
||||
}
|
||||
|
||||
/* Dashboard Phase 0: KPI-Kacheln + Trainingsvorschau */
|
||||
.dashboard-phase0-kpis {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 156px), 1fr));
|
||||
gap: 12px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.dashboard-phase0-kpis__err {
|
||||
margin: 0 0 10px;
|
||||
font-size: 0.9rem;
|
||||
color: var(--danger);
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.dashboard-phase0-kpis__loading {
|
||||
font-size: 0.9rem;
|
||||
margin: 0;
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.dashboard-kpi-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 4px;
|
||||
padding: 14px 14px 12px;
|
||||
background: linear-gradient(165deg, var(--surface2) 0%, var(--surface) 100%);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 14px;
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
|
||||
transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
|
||||
min-height: 112px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.dashboard-kpi-card:hover {
|
||||
border-color: var(--border2);
|
||||
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.dashboard-kpi-card--static {
|
||||
cursor: default;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.dashboard-kpi-card--static:hover {
|
||||
transform: none;
|
||||
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
|
||||
border-color: var(--border);
|
||||
}
|
||||
|
||||
.dashboard-kpi-card__icon {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 10px;
|
||||
background: var(--accent-light);
|
||||
color: var(--accent-dark);
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
.dashboard-kpi-card__value {
|
||||
font-size: 1.75rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: -0.03em;
|
||||
line-height: 1.1;
|
||||
color: var(--text1);
|
||||
}
|
||||
|
||||
.dashboard-kpi-card__label {
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 600;
|
||||
color: var(--text2);
|
||||
}
|
||||
|
||||
.dashboard-kpi-card__hint {
|
||||
font-size: 0.72rem;
|
||||
font-weight: 500;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
color: var(--text3);
|
||||
margin-top: auto;
|
||||
}
|
||||
|
||||
.dashboard-training-preview-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
|
||||
gap: 14px;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.dashboard-preview-card__title {
|
||||
font-size: 1rem;
|
||||
font-weight: 700;
|
||||
margin: 0 0 12px;
|
||||
padding-bottom: 10px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
color: var(--text1);
|
||||
}
|
||||
|
||||
.dashboard-preview-card__list {
|
||||
margin: 0;
|
||||
padding-left: 1.15rem;
|
||||
color: var(--text2);
|
||||
font-size: 0.9rem;
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
.dashboard-preview-card__list--notes {
|
||||
font-size: 0.88rem;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.dashboard-preview-card__list li {
|
||||
margin-bottom: 0.45rem;
|
||||
}
|
||||
|
||||
.dashboard-preview-card__link {
|
||||
font-weight: 600;
|
||||
color: var(--accent-dark);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.dashboard-preview-card__link:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.dashboard-preview-card__meta {
|
||||
color: var(--text3);
|
||||
}
|
||||
|
||||
.dashboard-preview-card__sub {
|
||||
display: block;
|
||||
font-size: 0.82rem;
|
||||
color: var(--text3);
|
||||
margin-top: 3px;
|
||||
}
|
||||
|
||||
.dashboard-preview-card__note-snippet {
|
||||
margin-top: 5px;
|
||||
color: var(--text2);
|
||||
}
|
||||
|
||||
.dashboard-preview-card__empty {
|
||||
margin: 0;
|
||||
font-size: 0.9rem;
|
||||
color: var(--text2);
|
||||
}
|
||||
|
||||
.dashboard-preview-card__empty a {
|
||||
color: var(--accent-dark);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.dashboard-preview-card__err {
|
||||
margin: 0;
|
||||
font-size: 0.9rem;
|
||||
color: var(--danger);
|
||||
}
|
||||
|
||||
.dashboard-sys-card__title {
|
||||
margin-bottom: 12px;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.dashboard-sys-card__grid {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 120px) 1fr;
|
||||
gap: 0.5rem 1rem;
|
||||
align-items: center;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.dashboard-sys-card__pill {
|
||||
display: inline-block;
|
||||
padding: 0.2rem 0.5rem;
|
||||
background: var(--surface2);
|
||||
color: var(--text1);
|
||||
border-radius: 6px;
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
.dashboard-sys-card__pill--accent {
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* --- Übungen: Rich-Text & Kacheln --- */
|
||||
.rich-text-editor-wrap {
|
||||
border: 1px solid var(--border);
|
||||
|
||||
Reference in new issue
Block a user