-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[#12656] Student Home Page: Indicate default sort #12660
[#12656] Student Home Page: Indicate default sort #12660
Conversation
Hello @averheecke-scottlogic, please fix the failing snapshot test before we proceed to review your PR. You may update it by running |
Hi @averheecke-scottlogic, thanks for the PR! The button now shows that the default sort is by creation date, however I don't think that that is the actual behaviour. Here is my student home page immediately after loading (I've closed the panels for clarity): Upon clicking on the "Course ID" button, the sort remains exactly the same. When I click back onto the "Creation Date" button, the sort becomes as such: It appears that even though the button indicates that the default sort is by creation date, the sort is still by Course ID. Could you please take a look? |
Hi @weiquu, the correct desired functionality should now be added :) |
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.
Looks good! Just 1 small change
src/web/app/pages-student/student-home-page/student-home-page.component.ts
Outdated
Show resolved
Hide resolved
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.
LGTM
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.
LGTM, thank you for your contribution!
…#12660) * sortBy to CREATION DATE * snapshot update * sort to creation time upon load * linting to specs * trailing space fix * replaces sort with sort function --------- Co-authored-by: Dominic Lim <[email protected]>
Fixes #12656
Outline of Solution
The problem was that the default sortBy was set to NONE. Changed this to COURSE_CREATION_DATE to result in the desired functionality.