Update the Vulnerability Explanation feature to use `duo-user-feedback` component
We currently have several AI features using different User Feedback mechanisms. Explain Vulnerability feature is one of them. In the course of Move all User Feedback usage to the unified com... (&12971), it is suggested to assess the use of the standard, up-to-date GlDuoUserFeedback
component instead of the custom one.
Implementation
- <explain-vulnerability-user-feedback>...
+ <gl-duo-user-feedback>...
- Replace with
<gl-duo-user-feedback>
inexplain_vulnerability_drawer.vue
- Delete component and any related specs:
explain_vulnerability_drawer_spec.js
,explain_vulnerability_user_feedback_spec.js
,explain_vulnerability_user_feedback.vue
- Ensure
<gl-duo-user-feedback>
works as expected. - Note: for the feedback trigger text please consult
@rdickenson
for copy.
Current | Proposal |
---|---|
Use Duo component > https://gitlab-org.gitlab.io/gitlab-ui/?path=/docs/experimental-duo-duo-user-feedback--docs |
Verification
- Find a Sast Vulnerability ex > https://gitlab.com/gitlab-org/govern/threat-insights-demos/frontend/security-reports/-/security/vulnerabilities/63771972
- Click on "Explain vulnerability" to trigger the drawer
- Scroll down, and click on the feedback trigger
- It will open the feedback modal
Edited by Samantha Ming