Skip to content

feat: sort course name autocomplete by totalStudents#187

Open
SinhSinhAn wants to merge 2 commits into
developfrom
feat/181-totalstudents-autocomplete-sort
Open

feat: sort course name autocomplete by totalStudents#187
SinhSinhAn wants to merge 2 commits into
developfrom
feat/181-totalstudents-autocomplete-sort

Conversation

@SinhSinhAn

Copy link
Copy Markdown
Contributor

Ports the totalStudents popularity sort from utd-trends (UTDNebula/utd-trends#620) to Notebook's course name autocomplete, so popular courses outrank obscure variants with similar titles (e.g. CS 4375 over CS 6375).

Changes

  • generateCourseNameTable.ts: sum total_students per course into course_name_table.json.
  • courseNameAutocomplete/route.ts: fold a logarithmic popularity bonus into the distance score (weighted blend, not a post-sort override, per @TyHil's note).

Closes #181

Sum total_students per course and fold a logarithmic popularity bonus
into the autocomplete distance score so popular courses outrank obscure
variants with similar titles.

Closes #181
@SinhSinhAn
SinhSinhAn requested review from a team as code owners June 24, 2026 02:44
@vercel

vercel Bot commented Jun 24, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
utd-notebook Ready Ready Preview, Comment Jun 24, 2026 3:20am

Request Review

…ents-autocomplete-sort

# Conflicts:
#	src/data/course_name_table.json
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.

Port totalStudents autocomplete sort from utd-trends to Notebook

1 participant