From db22174f27e21f67398c74cbacddb2408a4c2c4a Mon Sep 17 00:00:00 2001 From: Prowler Bot Date: Thu, 4 Dec 2025 10:40:58 +0100 Subject: [PATCH] fix(overview): risk severity must show only fails (#9452) Co-authored-by: Pepe Fagoaga --- ui/CHANGELOG.md | 5 +++-- .../risk-severity-chart/risk-severity-chart-detail.ssr.tsx | 2 ++ .../components/risk-severity-chart/risk-severity-chart.tsx | 3 +++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ui/CHANGELOG.md b/ui/CHANGELOG.md index bab5a74122..87da933ece 100644 --- a/ui/CHANGELOG.md +++ b/ui/CHANGELOG.md @@ -6,8 +6,9 @@ All notable changes to the **Prowler UI** are documented in this file. ### 🐞 Fixed -- Models list in Lighthouse selector when default model is not set for provider [(9402)](https://github.com/prowler-cloud/prowler/pull/9402) -- Sort compliance cards by name from the compliance overview [(9422)](https://github.com/prowler-cloud/prowler/pull/9422) +- Models list in Lighthouse selector when default model is not set for provider [(#9402)](https://github.com/prowler-cloud/prowler/pull/9402) +- Sort compliance cards by name from the compliance overview [(#9422)](https://github.com/prowler-cloud/prowler/pull/9422) +- Risk severity chart must show only FAIL findings [(#9448)](https://github.com/prowler-cloud/prowler/pull/XXXX) ### Security diff --git a/ui/app/(prowler)/_new-overview/components/risk-severity-chart/risk-severity-chart-detail.ssr.tsx b/ui/app/(prowler)/_new-overview/components/risk-severity-chart/risk-severity-chart-detail.ssr.tsx index a4de34e1a0..ebf4699396 100644 --- a/ui/app/(prowler)/_new-overview/components/risk-severity-chart/risk-severity-chart-detail.ssr.tsx +++ b/ui/app/(prowler)/_new-overview/components/risk-severity-chart/risk-severity-chart-detail.ssr.tsx @@ -11,6 +11,8 @@ export const RiskSeverityChartDetailSSR = async ({ searchParams: SearchParamsProps | undefined | null; }) => { const filters = pickFilterParams(searchParams); + // Filter by FAIL findings + filters["filter[status]"] = "FAIL"; const [findingsBySeverity, providersData] = await Promise.all([ getFindingsBySeverity({ filters }), diff --git a/ui/app/(prowler)/_new-overview/components/risk-severity-chart/risk-severity-chart.tsx b/ui/app/(prowler)/_new-overview/components/risk-severity-chart/risk-severity-chart.tsx index d592ddbadf..b9beda1b76 100644 --- a/ui/app/(prowler)/_new-overview/components/risk-severity-chart/risk-severity-chart.tsx +++ b/ui/app/(prowler)/_new-overview/components/risk-severity-chart/risk-severity-chart.tsx @@ -84,6 +84,9 @@ export const RiskSeverityChart = ({ // Add exclude muted findings filter params.set("filter[muted]", "false"); + // Filter by FAIL findings + params.set("filter[status__in]", "FAIL"); + // Navigate to findings page router.push(`/findings?${params.toString()}`); };