Add functionality to download custom reports as an image. (#4219)

* Add functionality to download custom reports as an image.

* Add functionality to download custom reports as an image.

* Switched from html2canvas to html-to-image due to size considerations.

* Snapshot filename

* Add functionality to download custom reports as an image.

* Add functionality to download custom reports as an image.

* Update ReportTopbar.tsx

Fixed mistake

* Use existing date function

* fix imports

* Update VRT

* move component out of common in aid of components lib migration

---------

Co-authored-by: Matt Fiddaman <github@m.fiddaman.uk>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
ADRROE
2025-04-08 17:20:22 +02:00
committed by GitHub
parent 6b22e7422b
commit 0d420ab4d9
30 changed files with 295 additions and 20 deletions

View File

@@ -65,6 +65,7 @@
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-rulesdir": "^0.2.2",
"globals": "^15.13.0",
"html-to-image": "^1.11.11",
"husky": "^9.1.7",
"lint-staged": "^15.5.0",
"node-jq": "^4.0.2",