Skip to content
This repository was archived by the owner on Feb 18, 2026. It is now read-only.

Add ability to sort courses and clear filters (v2)#231

Draft
ap-1 wants to merge 39 commits intomainfrom
sort
Draft

Add ability to sort courses and clear filters (v2)#231
ap-1 wants to merge 39 commits intomainfrom
sort

Conversation

@ap-1
Copy link
Contributor

@ap-1 ap-1 commented Mar 19, 2025

Adds the ability to sort courses on the search page by several heuristics at once. These currently include FCE, TeachingRate, CourseRate, CourseNumber, and Units, the first 3 of which are disabled unless the user is signed in. Each heuristic can also be assigned Ascending or Descending.

The user can drag and drop heuristics (called "sort options") to set their precedence for sorting, and press on its respective pill to toggle between Ascending and Descending. The goal is to allow the user to do things like prioritize low FCE courses with high ratings, prioritize high unit courses that are low in course number, etc.

(None selected)
image

(Some selected)
image

Also adds the ability to clear individual filters or all of them at once.

image

Closes #132
Closes #206
Closes #134
Closes #213
Closes #214

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

@railway-app
Copy link

railway-app bot commented Mar 19, 2025

This PR was not deployed automatically as @ap-1 does not have access to the Railway project.

In order to get automatic PR deploys, please add @ap-1 to your team on Railway.

@vercel
Copy link

vercel bot commented Mar 19, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
cmucourses-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 28, 2025 3:22pm

@ap-1 ap-1 added the help wanted Extra attention is needed label May 27, 2025
…, "a,b,c" now if the user's range overlaps with the course's at all, it displays the course.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

help wanted Extra attention is needed

Projects

None yet

2 participants