-
+
{attributes.check_id}
@@ -160,7 +163,7 @@ export const FindingDetail = ({
{/* CLI Command section */}
{attributes.check_metadata.remediation.code.cli && (
-
+
{attributes.check_metadata.remediation.code.cli}
@@ -191,7 +194,7 @@ export const FindingDetail = ({
{/* Resource Details */}
-
+
{renderValue(resource.uid)}
diff --git a/ui/components/icons/Icons.tsx b/ui/components/icons/Icons.tsx
index b8f448afd3..963f7d9b4f 100644
--- a/ui/components/icons/Icons.tsx
+++ b/ui/components/icons/Icons.tsx
@@ -808,3 +808,27 @@ export const InfoIcon: React.FC = ({
);
+
+export const SpinnerIcon: React.FC = ({
+ size = 24,
+ width,
+ height,
+ className,
+ ...props
+}) => (
+
+);
diff --git a/ui/components/invitations/invitation-details.tsx b/ui/components/invitations/invitation-details.tsx
index 17525e1eca..f91aef5f19 100644
--- a/ui/components/invitations/invitation-details.tsx
+++ b/ui/components/invitations/invitation-details.tsx
@@ -98,7 +98,7 @@ export const InvitationDetails = ({ attributes }: InvitationDetailsProps) => {
}}
hideSymbol
variant="bordered"
- className="overflow-hidden text-ellipsis whitespace-nowrap"
+ className="overflow-hidden text-ellipsis whitespace-nowrap bg-gray-50 py-1 dark:bg-slate-800"
>
{invitationLink}
diff --git a/ui/components/overview/new-findings-table/table/finding-detail.tsx b/ui/components/overview/new-findings-table/table/finding-detail.tsx
index d2febae564..71927e520b 100644
--- a/ui/components/overview/new-findings-table/table/finding-detail.tsx
+++ b/ui/components/overview/new-findings-table/table/finding-detail.tsx
@@ -105,7 +105,11 @@ export const FindingDetail = ({
{remediation.code.cli && (
CLI Command:
-
+
{remediation.code.cli}
@@ -148,7 +152,11 @@ export const FindingDetail = ({
Resource ID
-
+
{resource.uid}
diff --git a/ui/components/providers/workflow/credentials-role-helper.tsx b/ui/components/providers/workflow/credentials-role-helper.tsx
index 282a64e38e..90bad1b5e7 100644
--- a/ui/components/providers/workflow/credentials-role-helper.tsx
+++ b/ui/components/providers/workflow/credentials-role-helper.tsx
@@ -33,7 +33,11 @@ export const CredentialsRoleHelper = () => {
The External ID will also be required:
-
+
{session?.tenantId}
diff --git a/ui/components/scans/auto-refresh.tsx b/ui/components/scans/auto-refresh.tsx
new file mode 100644
index 0000000000..218d5ccc32
--- /dev/null
+++ b/ui/components/scans/auto-refresh.tsx
@@ -0,0 +1,24 @@
+"use client";
+
+import { useRouter } from "next/navigation";
+import { useEffect } from "react";
+
+interface AutoRefreshProps {
+ hasExecutingScan: boolean;
+}
+
+export function AutoRefresh({ hasExecutingScan }: AutoRefreshProps) {
+ const router = useRouter();
+
+ useEffect(() => {
+ if (!hasExecutingScan) return;
+
+ const interval = setInterval(() => {
+ router.refresh();
+ }, 5000);
+
+ return () => clearInterval(interval);
+ }, [hasExecutingScan, router]);
+
+ return null;
+}
diff --git a/ui/components/scans/button-refresh-data.tsx b/ui/components/scans/button-refresh-data.tsx
deleted file mode 100644
index 41d05e3981..0000000000
--- a/ui/components/scans/button-refresh-data.tsx
+++ /dev/null
@@ -1,30 +0,0 @@
-"use client";
-
-import { RefreshCcwIcon } from "lucide-react";
-import { useTransition } from "react";
-
-import { CustomButton } from "../ui/custom";
-
-export const ButtonRefreshData = ({
- onPress,
-}: {
- onPress: () => Promise;
-}) => {
- const [isPending, startTransition] = useTransition();
-
- return (
- }
- isLoading={isPending}
- onPress={() => {
- startTransition(async () => {
- await onPress();
- });
- }}
- />
- );
-};
diff --git a/ui/components/scans/index.ts b/ui/components/scans/index.ts
index aa42edfe3c..9da9587028 100644
--- a/ui/components/scans/index.ts
+++ b/ui/components/scans/index.ts
@@ -1,4 +1,4 @@
-export * from "./button-refresh-data";
+export * from "./auto-refresh";
export * from "./link-to-findings-from-scan";
export * from "./no-providers-added";
export * from "./no-providers-connected";
diff --git a/ui/components/scans/table/scan-detail.tsx b/ui/components/scans/table/scan-detail.tsx
index 7307ff53f0..2db2bb20fc 100644
--- a/ui/components/scans/table/scan-detail.tsx
+++ b/ui/components/scans/table/scan-detail.tsx
@@ -62,7 +62,8 @@ export const ScanDetail = ({
{/* Header */}
@@ -86,11 +87,20 @@ export const ScanDetail = ({
+
+
+ {renderValue(taskDetails?.attributes.task_args.scan_id)}
+
+
+
{scan.state === "failed" && taskDetails?.attributes.result && (
<>
{taskDetails.attributes.result.exc_message && (
-
+
{taskDetails.attributes.result.exc_message.join("\n")}
@@ -101,11 +111,6 @@ export const ScanDetail = ({
{renderValue(taskDetails.attributes.result.exc_type)}
-
-
- {renderValue(taskDetails?.attributes.task_args.scan_id)}
-
-
>
)}
diff --git a/ui/components/scans/table/scans/column-get-scans.tsx b/ui/components/scans/table/scans/column-get-scans.tsx
index 72a70f9311..5dcddd18cb 100644
--- a/ui/components/scans/table/scans/column-get-scans.tsx
+++ b/ui/components/scans/table/scans/column-get-scans.tsx
@@ -87,10 +87,12 @@ export const ColumnGetScans: ColumnDef