Design: Add "Show items" number control to Vulnerability Report
Problem to solve
Now that we're moving from infinite scroll to pagination on the Vulnerability Report, users will no longer be able to scroll down until more items load multiple times to take bulk actions on more than 20 items. Given that the default number of items in the table is 20, if I have 100 items I'd like to remove the status of, with infinite scroll I would have to scroll down (and wait for it to load more items) 5 times, then I'd select the bulk checkbox and take the action (e.g. Dismiss). However, when we move to pagination, this action would have to be taken 5 times on 5 separate pages until we have bulk select all across pages.
However, even when we do have bulk select across pages, this action might time out if there are thousands of vulnerabilities, whereas loading 50 or 100 on a page could be less to ask of the BE. Also, our filter limitations cause users to want to review the selected vulns before dismissing (or whatever the action is), which can't be done when selecting across pages. For these reasons, we may want to keep the show items control even after bulk select is available.
Solution
Add an item selector to the Vulnerability Reports.
/cc @matt_wilson @gitlab-com/gitlab-ux/secure-protect-ux