diff --git a/src/components/admin/studio/batch-progress.tsx b/src/components/admin/studio/batch-progress.tsx index 09d514b0..8f3ee4bd 100644 --- a/src/components/admin/studio/batch-progress.tsx +++ b/src/components/admin/studio/batch-progress.tsx @@ -1,10 +1,36 @@ "use client"; -import { Ban, Check, Loader2, X } from "lucide-react"; +import { Ban, Check, Loader2, ShieldCheck, X } from "lucide-react"; import { Button } from "@/components/ui/button"; import { cn } from "@/lib/utils"; -import type { BatchItemStatus } from "./studio-types"; +import type { BatchItemStatus, VerificationSummary } from "./studio-types"; + +function SummaryRow({ + label, + value, + tone, +}: { + label: string; + value: string | number; + tone?: "ok" | "warn"; +}) { + return ( +
+ {label} + + {value} + +
+ ); +} export function BatchProgress({ progress, @@ -12,6 +38,7 @@ export function BatchProgress({ succeeded, failed, cancelling, + verification, onCancel, onDismiss, }: { @@ -20,6 +47,7 @@ export function BatchProgress({ succeeded: number; failed: number; cancelling?: boolean; + verification?: VerificationSummary | null; onCancel?: () => void; onDismiss?: () => void; }) { @@ -96,6 +124,45 @@ export function BatchProgress({ ))} + {done && verification && ( +
+
+ + Post-import verification +
+ + + 0 ? "warn" : "ok"} + /> + 0 ? "warn" : "ok"} + /> + + + +
+ )} +
{done ? (