diff --git a/ui/CHANGELOG.md b/ui/CHANGELOG.md index ded143758e..4556e959fd 100644 --- a/ui/CHANGELOG.md +++ b/ui/CHANGELOG.md @@ -7,6 +7,7 @@ All notable changes to the **Prowler UI** are documented in this file. ### 🚀 Added - Resources side drawer with redesigned detail panel [(#10673)](https://github.com/prowler-cloud/prowler/pull/10673) +- Syntax highlighting for remediation code blocks in finding groups drawer with provider-aware auto-detection (Shell, HCL, YAML, Bicep) [(#10698)](https://github.com/prowler-cloud/prowler/pull/10698) ### 🐞 Fixed diff --git a/ui/components/findings/table/resource-detail-drawer/resource-detail-drawer-content.test.tsx b/ui/components/findings/table/resource-detail-drawer/resource-detail-drawer-content.test.tsx index b2ebf425ac..1989235540 100644 --- a/ui/components/findings/table/resource-detail-drawer/resource-detail-drawer-content.test.tsx +++ b/ui/components/findings/table/resource-detail-drawer/resource-detail-drawer-content.test.tsx @@ -178,16 +178,30 @@ vi.mock("@/components/findings/markdown-container", () => ({ })); vi.mock("@/components/shared/query-code-editor", () => ({ + QUERY_EDITOR_LANGUAGE: { + OPEN_CYPHER: "openCypher", + PLAIN_TEXT: "plainText", + SHELL: "shell", + HCL: "hcl", + BICEP: "bicep", + YAML: "yaml", + }, QueryCodeEditor: ({ ariaLabel, + language, value, copyValue, }: { ariaLabel: string; + language?: string; value: string; copyValue?: string; }) => ( -
+
{ariaLabel} {value}