feat: implement test score leaderboard with ranking, filtering, and cursor pagination#452
Open
Shadow-MMN wants to merge 5 commits into
Open
feat: implement test score leaderboard with ranking, filtering, and cursor pagination#452Shadow-MMN wants to merge 5 commits into
Shadow-MMN wants to merge 5 commits into
Conversation
…ursor pagination - add QuizAttempt model with relations and indexed fields - implement GET /api/leaderboard/test-scores endpoint - support filtering by courseId and testId - add sorting (score, timeSpent, attempts) with configurable order - implement shared ranking (RANK window function) - add cursor-based pagination with deterministic ordering - return currentUserEntry for highlighting outside current page - create TestScoreLeaderboard React component with: - current user highlighting - load more pagination - sorting controls - top 3 badges and formatted display - add API and component test coverage (all passing) - ensure performance via DB-level sorting, indexing, and no OFFSET usage
|
@Shadow-MMN Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
Author
|
@lishmanTech can we check this out now? |
Author
|
@lishmanTech can we check this out now ? |
Author
|
@LaGodxy can we check this out? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements a full "Leaderboard for Test Scores" feature, including backend API, database schema, and frontend UI.
Key Features
API
GET /api/leaderboard/test-scores
Supports:
Returns:
Database
Frontend
Performance Considerations
Notes
Many files were corrected which doesn't concern to the issue given to me but they were bugs I need to fix to keep the app working well. So my PR will have a lot of changes not concerning the issue.
Closes #379