From dee17733a0f64735ab191b0eee82f91bfc6680a0 Mon Sep 17 00:00:00 2001 From: Pablo Lara Date: Mon, 3 Feb 2025 16:08:47 +0100 Subject: [PATCH] feat(scans): show scan details right after launch (#6791) --- ui/app/(prowler)/scans/page.tsx | 3 --- ui/components/scans/index.ts | 1 - ui/components/scans/scan-warning-bar.tsx | 18 ------------------ ui/components/scans/table/scan-detail.tsx | 8 +++----- .../scans/table/scans/column-get-scans.tsx | 8 ++++---- 5 files changed, 7 insertions(+), 31 deletions(-) delete mode 100644 ui/components/scans/scan-warning-bar.tsx diff --git a/ui/app/(prowler)/scans/page.tsx b/ui/app/(prowler)/scans/page.tsx index 9781627118..db38bd4e97 100644 --- a/ui/app/(prowler)/scans/page.tsx +++ b/ui/app/(prowler)/scans/page.tsx @@ -8,7 +8,6 @@ import { ButtonRefreshData, NoProvidersAdded, NoProvidersConnected, - ScanWarningBar, } from "@/components/scans"; import { LaunchScanWorkflow } from "@/components/scans/launch-workflow"; import { SkeletonTableScans } from "@/components/scans/table"; @@ -73,8 +72,6 @@ export default async function Scans({
- - )} diff --git a/ui/components/scans/index.ts b/ui/components/scans/index.ts index 98157857ab..aa42edfe3c 100644 --- a/ui/components/scans/index.ts +++ b/ui/components/scans/index.ts @@ -2,4 +2,3 @@ export * from "./button-refresh-data"; export * from "./link-to-findings-from-scan"; export * from "./no-providers-added"; export * from "./no-providers-connected"; -export * from "./scan-warning-bar"; diff --git a/ui/components/scans/scan-warning-bar.tsx b/ui/components/scans/scan-warning-bar.tsx deleted file mode 100644 index 4c9acbb978..0000000000 --- a/ui/components/scans/scan-warning-bar.tsx +++ /dev/null @@ -1,18 +0,0 @@ -"use client"; - -import { InfoIcon } from "../icons"; - -export const ScanWarningBar = () => { - return ( -
- -
- Waiting for Your Scan to Show Up? -

- It may take a few minutes for the scan to appear on the table and be - displayed. -

-
-
- ); -}; diff --git a/ui/components/scans/table/scan-detail.tsx b/ui/components/scans/table/scan-detail.tsx index 6e9c3e288c..7307ff53f0 100644 --- a/ui/components/scans/table/scan-detail.tsx +++ b/ui/components/scans/table/scan-detail.tsx @@ -117,11 +117,9 @@ export const ScanDetail = ({ - {scan.next_scan_at && ( - - - - )} + + + diff --git a/ui/components/scans/table/scans/column-get-scans.tsx b/ui/components/scans/table/scans/column-get-scans.tsx index 55087a0e66..72a70f9311 100644 --- a/ui/components/scans/table/scans/column-get-scans.tsx +++ b/ui/components/scans/table/scans/column-get-scans.tsx @@ -123,13 +123,13 @@ export const ColumnGetScans: ColumnDef[] = [ }, }, { - accessorKey: "next_scan_at", - header: "Next scan", + accessorKey: "scheduled_at", + header: "Scheduled at", cell: ({ row }) => { const { - attributes: { next_scan_at }, + attributes: { scheduled_at }, } = getScanData(row); - return ; + return ; }, }, {