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
Screenshot_2026-02-06_at_12.49.03 Screenshot_2026-02-06_at_12.49.09

How to set up and validate locally

  1. Enable the feature flag:
    Feature.enable(:project_commits_refactor)
  2. Navigate to a project with many commits (e.g., /-/commits/main)
  3. 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.

Closes #555379 (closed)

Edited by Jacques Erasmus

Merge request reports

Loading