Implement pagination in the file tree browser
What does this MR do and why?
Currently, the File tree browser only loads page 1 of the paginated list for each directory.. This MR displays a Show more
button when a directory contains more than 1 page (more than 100 items). When the button is clicked, the next page will be fetched.
References
Screenshots or screen recordings
Before | After |
---|---|
![]() |
![]() |
How to set up and validate locally
- Enable the
repository_file_tree_browser
feature flag - Navigate a repository/directory containing many files
- Feel free to clone this project if you need many files
- A show more button should render below lists containing more than 100 items
- Clicking Show more should fetch the next page
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 #550196 (closed)
Edited by Jacques Erasmus