Initial MR for PDF Export functionality

What does this MR do and why?

This code change adds a new feature flag called newSecurityDashboardPdfExport that controls whether users can see and use a "PDF Export" button on security dashboards.

The main changes include:

  • Creating a new feature flag that is disabled by default
  • Adding the feature flag check to multiple security dashboard components (project, group, and shared dashboards)
  • The PDF export button now only appears when this feature flag is turned on
  • Adding comprehensive tests to verify the button shows/hides correctly based on the flag setting

References

Screenshots or screen recordings

Dashboard FF OFF FF ON
Project image image
Group image image

How to set up and validate locally

  1. Checkout https://gitlab.com/gitlab-examples/security/security-reports/ (make sure to add this project to a group)
  2. Run a pipeline against default branch to generate vulnerabilities
  3. Visit the Project & Group level security dashboards
  4. The Export button should not be visible
  5. Now enable the feature flag: http://gdk.test:3000/rails/features/new_security_dashboard_pdf_export
  6. Revisit the dashboards, and the button should be there

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #589203

Edited by Savas Vedova

Merge request reports

Loading