Skip to content

refactor(embed): a+ hardening — drop redis cache, dompurify, priority…

bc415c0
Select commit
Loading
Failed to load commit list.
Open

feat(embed): GitHub/GitLab-friendly diagram embed (SVG + iframe page) #677

refactor(embed): a+ hardening — drop redis cache, dompurify, priority…
bc415c0
Select commit
Loading
Failed to load commit list.
Codacy Production / Codacy Static Code Analysis succeeded May 9, 2026 in 0s

Your pull request is up to standards!

Codacy Here is an overview of what got changed by this pull request:

Complexity increasing per file
==============================
- standalone/server/src/resources/conversion-resource.ts  11
- standalone/webapp/src/components/navbar/NavbarFile.tsx  12
- standalone/server/src/services/conversion-service.ts  1
- standalone/server/src/__tests__/diagrams.int.test.ts  6
- standalone/server/src/http/app.ts  3
- standalone/server/src/services/conversion-renderer.ts  9
- standalone/server/src/services/preProcessSvgForPdf.ts  58
- standalone/server/src/workers/conversion-worker-thread.ts  1
- standalone/webapp/src/utils/exportErrors.ts  2
- standalone/webapp/src/utils/registerInterFonts.ts  7
- standalone/webapp/src/utils/svgToPng.ts  43
- standalone/webapp/src/workers/svgToPng.worker.ts  7
- standalone/webapp/tests/e2e/export.spec.ts  22
- standalone/webapp/tests/unit/NavbarFile.test.tsx  48
- standalone/webapp/tests/unit/serverConversion.test.ts  7
- standalone/webapp/tests/unit/svgToPng.render.test.ts  13
- standalone/webapp/tests/unit/svgToPng.test.ts  22
- standalone/webapp/tests/unit/useExportAsPDF.test.tsx  30
- standalone/webapp/tests/unit/useExportAsPNG.integration.test.tsx  17
- standalone/server/src/__tests__/embed.int.test.ts  30
- standalone/server/src/resources/conversion-resource.dequeue.test.ts  19
- standalone/server/src/routes/embed.ts  24
- standalone/server/src/services/conversion-service.sanitize.test.ts  5
- standalone/server/src/services/embed-preview.ts  17
- standalone/server/src/services/svg-source.ts  4
- standalone/webapp/src/components/modals/EmbedHints.tsx  10
         

Complexity decreasing per file
==============================
+ standalone/webapp/src/hooks/useExportAsPNG.ts  -5
+ standalone/webapp/src/hooks/useExportAsPDF.ts  -1
+ standalone/server/src/routes/conversion.ts  -1
         

See the complete overview on Codacy