Skip to content

Sorting/filtering by grade mean GPA and median GPA - #96

Open
AllenZheng-05 wants to merge 8 commits into
developfrom
gh94-feat/filtering
Open

AllenZheng-05 wants to merge 8 commits into
developfrom
gh94-feat/filtering

Conversation

@AllenZheng-05

Copy link
Copy Markdown

Search Results: Sorting, Filtering, and Navigation Improvements

  • Added sorting and filtering functionality to the search results page, including a SortFilterBar component and new state management for sort/filter selections. The displayed section list now updates based on these controls.
  • Updated navigation logic to ensure sort/filter state is preserved in the URL and navigation actions (clicks, arrow keys, related section navigation, and search submissions). This includes refactoring navigation handlers and debouncing navigation to prevent rapid repeated actions.
  • Improved auto-selection and pagination logic to work with the filtered and sorted list of sections, ensuring consistent behavior when the list changes.

Section Content: Grade Statistics Display

  • Added a new GradeDot component to visually represent letter grades.
  • Enhanced the section content display to show mean GPA and median grade (with a colored dot), providing clearer grade statistics to users.
  • Updated the look of the pagination button to match the design of other components on the page

…students weren't counted as part of the class. Created fields for mean and median in separate states field
…/filter results by mean and median gpa. Added mean and median gpa as info to results panel and handled page separators for those inside and outside of the filter. Made the results panel jump to page 1 after changes any sorting/filtering option, but keep the currently selected class section the same. TODO: make hover info on the mean and median gpa, handle arrow keys cause the sorting/filtering messes up all the arrow key navigation, add a way to jump to the page the currently selection section is on, and maybe more sorting options in the future.
…e same debounced function that clicking does, it has its own handler to gracefully handle holding down and quick key presses
@vercel

vercel Bot commented Sep 25, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
utd-grades Ready Ready Preview Sep 25, 2026 3:15am UTC

Request Review

@AllenZheng-05 AllenZheng-05 linked an issue Sep 29, 2026 that may be closed by this pull request

This branch was successfully deployed

1 active deployment
Preview — e8d38683 Deployed Sep 25, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat/filtering

1 participant