Skip to content

Fix Security Policy Project modal refresh on infinite scroll

Artur Fedorov requested to merge 448593-policies-spp-selector-loading into master

What does this MR do and why?

The code changes introduce a new component called spp_selector that allows users to search and select projects. It displays a loading indicator while searching for projects and provides feedback when no results are found or the search query is too short. Additionally, it now supports infinite scrolling for loading more projects when the user reaches the bottom of the list.

And it fixes constant list refresh

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.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Description UI
Infinite scrolling laoding.mov

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Go to Project/Group
  2. Secure -> Policies
  3. If you don't have enough project with common first 3 letters, please create 20+ projects
  4. Go to Policies, edit policy project on top right corner
  5. Type at least 3 letters in search and scroll to bottom
  6. List should stay visible and more projects appended to it after loading is finished

Related to #448593 (closed)

Merge request reports