Add pagination UI for branch rules

What does this MR do and why?

Adds cursor pagination (backend support added in !212624 (merged)) to branch rules page, with page size of 20.

References

Screenshots or screen recordings

CleanShot_2025-12-12_at_00.07.58

How to set up and validate locally

  • have a handful of branch rules in a project (Setting > Repository > Branch Rules)
  • for ease of testing, update PAGE_SIZE to a smaller number
  • next and prev buttons should work as expected

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #576206 (closed)

Edited by Chaoyue Zhao

Merge request reports

Loading