feat: enhance exercise filtering capabilities with new catalog rules
Deploy Development / deploy (push) Successful in 34s
Test Suite / pytest-backend (push) Successful in 7s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 6s
Test Suite / playwright-tests (push) Failing after 28s
Test Suite / pytest-backend (pull_request) Successful in 5s
Test Suite / lint-backend (pull_request) Successful in 0s
Test Suite / build-frontend (pull_request) Successful in 7s
Test Suite / playwright-tests (pull_request) Failing after 28s
Deploy Development / deploy (push) Successful in 34s
Test Suite / pytest-backend (push) Successful in 7s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 6s
Test Suite / playwright-tests (push) Failing after 28s
Test Suite / pytest-backend (pull_request) Successful in 5s
Test Suite / lint-backend (pull_request) Successful in 0s
Test Suite / build-frontend (pull_request) Successful in 7s
Test Suite / playwright-tests (pull_request) Failing after 28s
- Introduced new filtering options for style directions, training types, and target groups in the exercise list. - Implemented catalog rule picker components to manage inclusion and exclusion of exercise attributes. - Updated utility functions to handle new catalog rules for improved filtering logic. - Enhanced the ExercisesListPage and ExercisePickerModal to support the new filtering features, improving user experience.
This commit is contained in:
1 parent
518918a6e5
commit
b9d27b59b0
7 files changed
+637
-382
No files matched your search
@@ -2732,6 +2732,10 @@ a.analysis-split__nav-item {
|
||||
.exercise-filters-modal-grid--two {
|
||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||
}
|
||||
.exercise-filters-modal-grid--catalog {
|
||||
grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
|
||||
gap: 10px 12px;
|
||||
}
|
||||
.exercise-filter-chips-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
@@ -2823,6 +2827,93 @@ a.analysis-split__nav-item {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* Übungsfilter: kompakte +/- Katalogregeln */
|
||||
.catalog-rule-picker {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.catalog-rule-picker--disabled {
|
||||
opacity: 0.55;
|
||||
pointer-events: none;
|
||||
}
|
||||
.catalog-rule-picker__label {
|
||||
margin-bottom: 0;
|
||||
font-size: 13px;
|
||||
}
|
||||
.catalog-rule-picker__chips {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
align-items: center;
|
||||
min-height: 0;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.catalog-rule-chip {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
max-width: 100%;
|
||||
padding: 2px 6px 2px 8px;
|
||||
border-radius: 999px;
|
||||
border: 1px solid var(--border);
|
||||
background: var(--surface2);
|
||||
font-size: 12px;
|
||||
line-height: 1.35;
|
||||
}
|
||||
.catalog-rule-chip__sign {
|
||||
font-weight: 700;
|
||||
font-size: 12px;
|
||||
flex-shrink: 0;
|
||||
opacity: 0.85;
|
||||
}
|
||||
.catalog-rule-chip__sign--require {
|
||||
color: var(--accent-dark);
|
||||
}
|
||||
.catalog-rule-chip__sign--forbid {
|
||||
color: var(--danger);
|
||||
}
|
||||
.catalog-rule-chip__text {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
max-width: 180px;
|
||||
}
|
||||
.catalog-rule-chip__x {
|
||||
flex-shrink: 0;
|
||||
margin: 0;
|
||||
padding: 0 4px;
|
||||
border: none;
|
||||
background: transparent;
|
||||
color: var(--text2);
|
||||
font-size: 15px;
|
||||
line-height: 1;
|
||||
cursor: pointer;
|
||||
border-radius: 4px;
|
||||
}
|
||||
.catalog-rule-chip__x:hover {
|
||||
color: var(--text1);
|
||||
background: var(--border);
|
||||
}
|
||||
.catalog-rule-picker__row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
.catalog-rule-picker__select {
|
||||
flex: 0 1 132px;
|
||||
max-width: 160px;
|
||||
min-width: 96px;
|
||||
padding: 6px 8px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.catalog-rule-picker__sign-btn {
|
||||
min-width: 32px;
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
font-weight: 700;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
/* Reifegradmodell-Admin: klare Schritte, responsives Raster */
|
||||
.admin-matrix-alert {
|
||||
border: 1px solid var(--danger);
|
||||
|
||||
Reference in new issue
Block a user