Add vulnerability survey request banner
What does this MR do?
On the Vulnerability Report and Security Dashboard pages, we are adding a survey banner that invites the user to take a survey:
This MR adds the survey banner with the following features:
-
The banner will be temporarily shown to all users using a feature flag that was added in a previous MR (
vulnerability_management_survey
). -
The banner can be dismissed in one of two ways: if the "Ask again later" link button is clicked, the banner will be hidden and a toast notification will notify the user that it will show again in 7 days:
-
If the X button on the upper right is clicked, the banner will be hidden until the next survey round (more details in comments). In the future we may want to re-run the survey if we need more feedback.
-
The banner will show on the Vulnerability Report and Security Dashboard for all 3 levels (project, group, and instance level), for a total of 6 places:
Vulnerability Report:
Project level | Group level | Instance level |
---|---|---|
Security Dashboard:
Project level | Group level | Instance level |
---|---|---|
Does this MR meet the acceptance criteria?
Conformity
-
📋 Does this MR need a changelog?-
I have included a changelog entry. -
I have not included a changelog entry because _____.
-
- [-] Documentation (if required)
-
Code review guidelines -
Merge request performance guidelines -
Style guides - [-] Database guides
-
Separation of EE specific content
Availability and Testing
-
Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process. -
Tested in all supported browsers - [-] Informed Infrastructure department of a default or new setting change, if applicable per definition of done
Related to #324246