Skip to content

Standalone finding modal: Minor UX tweaks

David Pisek requested to merge dpisek-standalone-finding-modal-minor-polish into master

What does this MR do and why?

Addresses a few UX tweeks around the standalone security finding modal:

  • Increases padding of modal to make it consistent with other modals (work-items for example)
  • Fixes a layout issue that affects the spacing between the footer buttons
  • Makes the pressing the "esc" key close the comment text-area when it is focused, rather than closing the whole modal
  • Various other small fixes

Screenshots or screen recordings

description before after
padding Screenshot_2023-04-14_at_2.29.00_pm Screenshot_2023-04-14_at_2.29.26_pm
buttons Screenshot_2023-04-14_at_2.29.00_pm Screenshot_2023-04-14_at_2.29.35_pm
"esc" when commenting Screen_Recording_2023-04-14_at_2.38.17_pm Screen_Recording_2023-04-14_at_2.36.34_pm

How to set up and validate locally

  1. Have the related FF enabled: echo "Feature.enable(:pipeline_security_dashboard_graphql)" | rails c
  2. You'll need an EE License
  3. You'll need to have runners enabled (See $2408961 for setting up a runner)
  4. Import https://gitlab.com/gitlab-examples/security/security-reports
  5. Run a pipeline on master
  6. Go to the pipeline page
  7. Click on a finding and validate that:
  8. The padding has increased
  9. The footer buttons are evenly spaced
  10. When adding a dismissal comment the "Esc" button first closes the comment area and then the modal
  11. When the comment text-area is not focused the modal should close itself

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by David Pisek

Merge request reports

Loading