Add default branch to Pipelines page filter if no search term provided
What does this MR do and why?
This MR changes the "branch name" filter on the Pipelines page so that if no search term has been provided, it will add the default branch name as the first option.
Without this change, one must search for the default branch name using autocompletion until it appears in the list. Filtering the pipelines list on the default branch name is a common use case, so this should improve the UX a bit.
Screenshots or screen recordings
Before | After |
---|---|
How to set up and validate locally
- Visit http://localhost:3000/flightjs/Flight/-/pipelines
- Use the "Filter pipelines" feature and select "Branch name"
- Without entering a search term, confirm that the main branch name "master" appears at the top of the results
- Enter "a" as your search term and confirm that the main branch name disappears from the top of the results
- Enter "mast" as your search term and confirm that "master" does not appear twice in the results
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Closes #354473 (closed)