feat: add leaderboard filtering by language and time range#1734
feat: add leaderboard filtering by language and time range#1734ni2-vsv11 wants to merge 2 commits into
Conversation
|
@ni2-vsv11 is attempting to deploy a commit to the PRIYANSHU DOSHI's projects Team on Vercel. A member of the Team first needs to authorize it. |
GSSoC Label Checklist 🏷️@Priyanshu-byte-coder — please apply the appropriate labels before merging: Difficulty (pick one):
Quality (optional):
Validation (required to score):
|
2ced2aa to
6762d30
Compare
|
Implemented the requested leaderboard filtering feature for #1045 and completed all requested functionality: ✅ Language dropdown filtering Also resolved upstream merge/rebase conflicts and fixed the related Playwright strict-mode test issue to ensure CI passes cleanly. Verification completed successfully:
Would appreciate a review and merge when convenient. |
|
This PR has developed merge conflicts after recent merges to |
Summary
Implements leaderboard filtering by language and time range for the DevTrack leaderboard.
Features Added
Language dropdown filtering
Time range filtering:
URL query parameter synchronization
localStorage persistence for filters
Clear filters functionality
Mobile responsive filter UI
Filter-aware leaderboard API query handling
Defensive filtering for missing language data
API Updates
Supports leaderboard queries like:
Screenshots
Verification
Tested:
/leaderboard/leaderboard?lang=python/leaderboard?tab=commits&period=month/leaderboard?tab=streak&lang=typescriptVerified:
npm run lintpassesNotes
Local development database currently contains only one public leaderboard user, so local filtered leaderboard views may show limited results. The filtering system itself works correctly against the available dataset.
Closes #1045