[Frontend] Use filter presets in filtered search component
Summary
In contrast to the old filtering mechanism, the new filtering does not take into account which filters are active for which version of the vulnerability report: development vs operational and project/group/instance.
This means that at the moment, the tool token is shown on the operational tab too, while this should not be the case.
We should pass the available filters (which are defined as presets) to vulnerability_report_filtered_search.vue
such that we can set the available tokens based on that.
Verification steps
- Go to https://gitlab.com/gitlab-org/govern/threat-insights-demos/verification-projects/verify-epic-3429/-/security/vulnerability_report
- On the "Development vulnerabilities" tab, verify that the "Tool" token can be used.
- On the "Operational vulnerabilities" tab, verify that the "Tool" token cannot be used.
Edited by Lorenz van Herwaarden