Edit Branch Rules: Update selector to support searching Groups
Context
Proposal
Update the reusable frontend component built in #428519 (closed) and make it support searching and selecting Groups (groups visible to all and only the project, which are "All groups" and "Project groups" respectively).
This will be used in these contexts:
- Branch Protections
- Allowed to merge
- Allowed to push & merge
- Approval Rules
Details
We have two more cases for a extremely similar component:
- Users
- Deploy keys
They seem to share the UI and IxD, only changing the objects being searched.
This should be taken into consideration when extending this foundational component to allow for easy customization of the queries and wording on the UI.
Mockup
See mockups in the epic and figma:
Edited by Paulina Sedlak-Jakubowska