Skip to content

Add dedicated "Most popular" sort to the loop library#90

Merged
cursor[bot] merged 3 commits into
mainfrom
cursor/most-popular-sort-c5db
Jul 7, 2026
Merged

Add dedicated "Most popular" sort to the loop library#90
cursor[bot] merged 3 commits into
mainfrom
cursor/most-popular-sort-c5db

Conversation

@mberman84

@mberman84 mberman84 commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds a standalone Most popular option to the homepage sort control. Votes previously only influenced ordering as a tiebreaker inside "Featured, then popular"; this makes community votes directly browsable.

  • New Most popular option in the sort select, ordering rows by upvotes (ties fall back to newest)
  • Reuses the existing comparePopular comparator and live vote totals from /api/votes, so rows re-rank when votes load or change
  • Deep links via ?sort=popular work through the existing URL state handling
  • Script cache tag bumped to 20260702-popular-sort on all three shell pages so browsers fetch the updated script after the next publish
  • Repository checks extended to guard the new option and cache tag

Verification

  • node --check loop-library/site/script.js
  • node loop-library/scripts/check.mjs
  • npm --prefix loop-library/worker run check (47/47 tests pass)
  • JSON manifests validated, git diff --check clean

No Worker or schema changes; this is shell-only and takes effect with the next site publish.

Open in Web Open in Cursor 

cursoragent and others added 3 commits July 2, 2026 02:26
Co-authored-by: mberman84 <mberman84@users.noreply.github.com>
Co-authored-by: mberman84 <mberman84@users.noreply.github.com>
…ort-c5db

Co-authored-by: mberman84 <mberman84@users.noreply.github.com>
cursor Bot added a commit that referenced this pull request Jul 7, 2026
@cursor cursor Bot merged commit 14b006b into main Jul 7, 2026
1 check passed
@cursor cursor Bot deleted the cursor/most-popular-sort-c5db branch July 7, 2026 19:19
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.

2 participants