[MR Widget V2] Make the vulnerability name clickable
Summary
The vulnerability name in the expanded section should be clickable, and it should open a modal.
Design
Clicking on the link should open a vulnerability finding modal.
Implementation plan
-
Reuse https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/app/assets/javascripts/vue_shared/security_reports/components/modal.vue in https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/app/assets/javascripts/vue_merge_request_widget/extensions/security_reports/mr_widget_security_reports.vue. Avoid using the Store because the new version is going to use GraphQL.
Verification steps
-
Go to https://gitlab.com/svedova/security-reports/-/merge_requests/1. -
Expand the security reports widget toggle -
Click on a finding. It should open a modal.
Edited by Savas Vedova