Update strings for Explain This Vulnerability feature
What does this MR do and why?
This MR makes the following changes to the Explain This Vulnerability feature on the vulnerability details page:
- Added a link to the Experiment badge that links off to https://docs.gitlab.com/ee/policy/alpha-beta-support.html#experiment
- Changed the text of the action button from "Explain this vulnerability" to "Try it out"
- In the drawer, added the sub-title "This response is generated by AI." and increased the title size.
- Reduced the spacing between the card title and the Experiment badge, to match the spacing in the design.
Design: #407124[design_1681921959398.png]
Before | After |
---|---|
![]() |
![]() |
How to set up and validate locally
- Enable the
openai_experimentation
andexplain_vulnerability
feature flags. - Clone this project: https://gitlab.com/gitlab-org/security-products/tests/webgoat.net
- Run a pipeline against the master branch.
- Go to
Security and Compliance -> Vulnerability report
. - The list should only contain SAST vulnerabilities. Click on any one to get to the vulnerability details page.
- Click on the "Explain this vulnerability" button.
- Verify that the changes mentioned in the description have been applied.
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 #406633 (closed)
Edited by Daniel Tian