Skip to content

Add pagination to ranking system#67

Open
kcprdev wants to merge 2 commits into
codepvg:mainfrom
kcprdev:add-pagination
Open

Add pagination to ranking system#67
kcprdev wants to merge 2 commits into
codepvg:mainfrom
kcprdev:add-pagination

Conversation

@kcprdev
Copy link
Copy Markdown

@kcprdev kcprdev commented May 31, 2026

Description

Added pagination support to the leaderboard/ranking system to improve navigation and scalability for larger datasets.

Linked Issue

Fixes #35

Changes Made

  • Added Previous and Next navigation buttons
  • Added numbered page controls
  • Added configurable rows-per-page selector (10, 25, 50)
  • Added active page highlighting
  • Added leaderboard statistics display (total users, current range, current page)
  • Integrated pagination with existing search functionality
  • Integrated pagination with Overall, Monthly, Weekly, and Daily tabs
  • Improved usability for large ranking datasets

Type of Change

  • Bug fix
  • New feature
  • UI/Visual update
  • Documentation update
  • Refactor

Testing

  • Tested locally
  • Tested on mobile viewport (if applicable)
  • No console errors introduced

Test Cases Performed

  • Verified page navigation using Previous and Next buttons
  • Verified numbered page controls
  • Verified rows-per-page selector (10, 25, 50)
  • Verified active page highlighting
  • Verified leaderboard statistics update correctly
  • Verified search functionality works with pagination
  • Verified Overall, Monthly, Weekly, and Daily tabs work correctly

Checklist

  • My code follows the project's coding style
  • I have performed a self-review of my code
  • My changes generate no new warnings or errors
  • I have linked the relevant issue

Screenshots / Screen Recording

Screenshot from 2026-05-31 12-43-51 Screenshot from 2026-05-31 12-43-56 Screenshot from 2026-05-31 12-44-03 Screenshot from 2026-05-31 12-44-13
demo.mp4

Attached screenshots demonstrating:

  • Pagination controls
  • Active page highlighting
  • Rows-per-page selector
  • Leaderboard statistics display

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello! Thank you for your first Pull Request!
We are excited to review your contribution to the CodePVG LeetCode Leaderboard.
Please make sure you have run Prettier on your code locally, as our GitHub Actions will fail if the code is unformatted. A maintainer will review your code soon. Thanks for helping out!

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.

Feature: to add pagination

1 participant