From 2da7b926edd7fa3d63862996da7d7b197b795e89 Mon Sep 17 00:00:00 2001 From: Alejandro Bailo <59607668+alejandrobailo@users.noreply.github.com> Date: Wed, 7 May 2025 14:14:56 +0200 Subject: [PATCH] feat: add DeltaIndicator in new findings (#7676) --- ui/CHANGELOG.md | 5 ++--- .../table/column-new-findings-to-date.tsx | 13 ++++++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/ui/CHANGELOG.md b/ui/CHANGELOG.md index 2d7e4f2940..a3a45bb720 100644 --- a/ui/CHANGELOG.md +++ b/ui/CHANGELOG.md @@ -10,17 +10,16 @@ All notable changes to the **Prowler UI** are documented in this file. - Support for the `M365` Cloud Provider. [(#7590)](https://github.com/prowler-cloud/prowler/pull/7590) - Added option to customize the number of items displayed per table page. [(#7634)](https://github.com/prowler-cloud/prowler/pull/7634) -- Add delta attribute in findings detail view.[(#7654)](https://github.com/prowler-cloud/prowler/pull/7654) +- Add delta attribute in findings detail view. [(#7654)](https://github.com/prowler-cloud/prowler/pull/7654) +- Add delta indicator in new findings table. [(#7676)](https://github.com/prowler-cloud/prowler/pull/7676) - Add a button to download the CSV report in compliance card. [(#7665)](https://github.com/prowler-cloud/prowler/pull/7665) - Show loading state while checking provider connection. [(#7669)](https://github.com/prowler-cloud/prowler/pull/7669) - ### 🔄 Changed - Finding URLs now include the ID, allowing them to be shared within the organization. [(#7654)](https://github.com/prowler-cloud/prowler/pull/7654) - Show Add/Update credentials depending on whether a secret is already set or not. [(#7669)](https://github.com/prowler-cloud/prowler/pull/7669) - ### 🐞 Fixes - Set a default session duration when configuring an AWS Cloud Provider using a role. [(#7639)](https://github.com/prowler-cloud/prowler/pull/7639) diff --git a/ui/components/overview/new-findings-table/table/column-new-findings-to-date.tsx b/ui/components/overview/new-findings-table/table/column-new-findings-to-date.tsx index 8bdae43ef9..fa9a3e58ed 100644 --- a/ui/components/overview/new-findings-table/table/column-new-findings-to-date.tsx +++ b/ui/components/overview/new-findings-table/table/column-new-findings-to-date.tsx @@ -4,6 +4,7 @@ import { ColumnDef } from "@tanstack/react-table"; import { useSearchParams } from "next/navigation"; import { DataTableRowDetails } from "@/components/findings/table"; +import { DeltaIndicator } from "@/components/findings/table/delta-indicator"; import { InfoIcon } from "@/components/icons"; import { DateWithTime, EntityInfoShort } from "@/components/ui/entities"; import { TriggerSheet } from "@/components/ui/sheet"; @@ -76,11 +77,17 @@ export const ColumnNewFindingsToDate: ColumnDef[] = [ const { attributes: { muted }, } = getFindingsData(row); + const { delta } = row.original.attributes; return (
-

- {checktitle} -

+
+ {(delta === "new" || delta === "changed") && ( + + )} +

+ {checktitle} +

+