Improve modal interaction
What does this MR do and why?
This MR addressed the issues mentioned here: #344881 (comment 748218527)
Screenshots or screen recordings
How to set up and validate locally
- Go to Project > Security && Compliance > Policies
- Interact with the modal
Here are the confusing states which are currently on master:
- When user clicks on edit policy project
- And changes the selected project
- And closes the modal without saving
- And reopens the modal
- Then they still see the newly selected project.
This is confusing because it looks like the changes were saved, even though they were not.
- When user clicks on edit policy project
- And has an already selected project
- And clicks on the remove button
- The design (as mentioned in the comment linked above) empties the project selector
However, the current implementation still keeps the project displayed, which is again, confusing.
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.
Related to #344881 (closed)