-
Notifications
You must be signed in to change notification settings - Fork 275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Usability
: Add filter modal for exercises
#8858
base: develop
Are you sure you want to change the base?
Conversation
return exercise | ||
.categories!.flatMap((category: ExerciseCategory) => this.filterMap.get(category.category!)!) | ||
.reduce((value1: boolean, value2: boolean) => value1 || value2); | ||
return exercise.categories!.flatMap((category: ExerciseCategory) => this.filterMap.get(category.name!)!).reduce((value1: boolean, value2: boolean) => value1 || value2); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No change in logic, this line is now only wrapped because it is a few chars shorter after renaming
de29694
to
0ec5246
Compare
…ilter # Conflicts: # src/main/webapp/app/shared/sidebar/sidebar-accordion/sidebar-accordion.component.ts # src/main/webapp/app/shared/sidebar/sidebar.component.ts
exercise.categories = exercise.categories.map((category) => JSON.parse(category as string) as ExerciseCategory); | ||
exercise.categories = exercise.categories.map((category) => { | ||
const categoryObj = JSON.parse(category as unknown as string); | ||
return new ExerciseCategory(categoryObj.color, categoryObj.category); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to use a real object if we want to use the equals
method
Checklist
General
Client
authorities
to all new routes and checked the course groups for displaying navigation elements (links, buttons).Motivation and Context
Description
quiz
will not be an available filter option; the same applies to the general filter option - if there is only one exercise type in the course the filter option will not be displayed)CustomExerciseCategoryBadgeComponent
RangeSlider
component as thengBootstrap
does not seem to offer such a functionality (https://getbootstrap.com/docs/5.0/forms/range/)Steps for Testing
Prerequisites:
Testserver States
Note
These badges show the state of the test servers.
Green = Currently available, Red = Currently locked
Click on the badges to get to the test servers.
Review Progress
Performance Review
Code Review
Manual Tests
Test Coverage
Screenshots