mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-23 12:31:54 +00:00
feat: add DeltaIndicator in new findings (#7676)
This commit is contained in:
+2
-3
@@ -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)
|
||||
|
||||
@@ -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<FindingProps>[] = [
|
||||
const {
|
||||
attributes: { muted },
|
||||
} = getFindingsData(row);
|
||||
const { delta } = row.original.attributes;
|
||||
return (
|
||||
<div className="relative flex max-w-[410px] flex-row items-center gap-2 3xl:max-w-[660px]">
|
||||
<p className="mr-7 whitespace-normal break-words text-sm">
|
||||
{checktitle}
|
||||
</p>
|
||||
<div className="flex flex-row items-center gap-4">
|
||||
{(delta === "new" || delta === "changed") && (
|
||||
<DeltaIndicator delta={delta} />
|
||||
)}
|
||||
<p className="mr-7 whitespace-normal break-words text-sm">
|
||||
{checktitle}
|
||||
</p>
|
||||
</div>
|
||||
<span className="absolute -right-2 top-1/2 -translate-y-1/2">
|
||||
<Muted isMuted={muted} />
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user