Improve token access add form
What does this MR do and why?
Improve token access add form
Show form feedback when group/project path is already in allowlist
Replace text box with searchable collapsible listbox
Get groups and projects via graphql, list them in the box
Once selected, add group or project to allowlist when form is submitted
Changelog: changed
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
Before | After |
---|---|
Screen_Recording_2024-06-07_at_11.55.15 | Screen_Recording_2024-06-07_at_12.25.45 |
How to set up and validate locally
- navigate to a project
- in the sidebar, choose
Settings
=>CI/CD
- expand the
Job token permissions
section (previously known asToken Access
) - add groups and projects to the project's allowlist
- the form should:
- show a list of groups and projects
- be searchable
- warn you if you try to add the same group/project twice
- add the selected group/project to the allowlist on submit
- be cleared on cancel
Related to #415519 (closed)
Edited by Miranda Fluharty