Skip to content

Conversation

@ellazhuu
Copy link
Collaborator

@ellazhuu ellazhuu commented Nov 9, 2025

Context

  • Allows users to filter by Pomona Graduation requirements in course review through a toggle
  • If filtering system used, there will be a warning saying the information is incomplete
  • ASPC-35, ASPC-42
  • the changes are integrated with the newest pagination and url updates, so whenever someone uses the filter, the url will also be updated

Describe your changes

  • Added graduation requirement buttons and states that can be toggled on and off in the UI
  • passed the selected requirements into the query
  • updated the backend route to take the selected requirements into consideration

Testing

Screen.Recording.2025-11-08.at.9.52.25.PM.mov

@vercel
Copy link

vercel bot commented Nov 9, 2025

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

Project Deployment Preview Comments Updated (UTC)
pomonastudents Ready Ready Preview Comment Nov 9, 2025 7:24am

@ellazhuu ellazhuu requested a review from haram082 November 9, 2025 05:58
@ellazhuu ellazhuu changed the title Fixed grad requirement filter to be compatible with newer updates (and added toggle + warning) ASPC-35 ASPC-35: Fixed grad requirement filter to be compatible with newer updates (and added toggle + warning) Nov 9, 2025
page = 1,
} = req.query;

const requirements = req.query.requirements
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you shoudl be putting it in the req.query object and handling it from there

}

// Get fuzzy matches using aggregation
const fuzzyMatch: any = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add requirements to search stage instead of adding another fuzzyMatch function to be consitent with our code. if there is a specfiic reason you did this way, lmk

Copy link
Contributor

@haram082 haram082 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: u never addressed "you shoudl be putting it in the req.query object and handling it from there"" but it's not a big deal. the filtering logic you updated looks good. feel free to merge

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.

3 participants