-
Notifications
You must be signed in to change notification settings - Fork 3
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
Filter by prof on course page #494
base: main
Are you sure you want to change the base?
Conversation
Known problem: At very small dim, filter overflows beyond background
[diff-counting] Significant lines: 91. |
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.
This works super cleanly, Matt! It's great now that we have multiple sorting/filtering methods that work seamlessly with each other. Left a few comments, but thanks :)
<h2 className={styles.title}>Past Reviews ({courseReviews?.length}) </h2> | ||
<h2 className={styles.title}> | ||
Past Reviews ( | ||
{selectedProf.current !== 'none' |
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.
It's more intuitive for me to have it as just visibleCourseReviews.length
because otherwise, you might interpret it as being on a second "page" of reviews or something. Can have others give feedback too
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.
oh wait this makes a lot of sense!! my logic behind this was that i wanted a way to make sure that users easily know that when a professor is selected they're not seeing all the reviews (esp b/c the statistics on the left sidebar are based on all reviews). i think just changing the number itself works though!
Summary
This PR works on the filter by professor course page dropdown.
PR Type
Mobile + Desktop Screenshots & Recordings
https://github.com/user-attachments/assets/702f3af8-4f84-4440-ae53-e0308b45ea3a
QA - Test Plan
Checked on different screen sizes, fixing styles as needed. Looks slightly awkward on mobile since the header brushes up against the text, but they never overlap. Checked on a variety of classes to ensure that all professors were added to the dropdown.
Breaking Changes & Notes
Added to documentation?
What GIF represents this PR?
gif