Add cursor pagination to commit list
What does this MR do and why?
Adds cursor-based pagination to the commit list page, allowing users to navigate through commits using Previous/Next buttons and configure the page size.
Screenshots or screen recordings
| before | after |
|---|---|
|
|
How to set up and validate locally
- Enable the feature flag:
Feature.enable(:project_commits_refactor) - Navigate to a project with many commits (e.g.,
/-/commits/main) - Verify:
- Pagination controls appear when there are more commits than the page size
- Clicking "Next" loads the next page
- Clicking "Previous" returns to the previous page
- Changing page size resets to the first page
- Applying filters resets pagination
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related issues
Closes #555379 (closed)
Edited by Jacques Erasmus

