From d00397468ef02221d99b0dc9ca26964cd9f65d9b Mon Sep 17 00:00:00 2001 From: Prakshitha Malla Date: Sat, 30 May 2026 22:53:20 +0530 Subject: [PATCH] style: created reusable EmptyHistoryState dashboard graphic illustration panel #52 --- components/console/empty-history-state.tsx | 49 ++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 components/console/empty-history-state.tsx diff --git a/components/console/empty-history-state.tsx b/components/console/empty-history-state.tsx new file mode 100644 index 0000000..08fb956 --- /dev/null +++ b/components/console/empty-history-state.tsx @@ -0,0 +1,49 @@ +"use client"; + +import { History, LucideIcon, ArrowRight } from "lucide-react"; +import Link from "next/link"; + +interface EmptyHistoryStateProps { + title?: string; + description?: string; + icon?: LucideIcon; + actionLabel?: string; + actionHref?: string; +} + +export function EmptyHistoryState({ + title = "No execution history found", + description = "You haven't triggered any monitoring or analysis pipelines on this workspace yet.", + icon: Icon = History, + actionLabel = "Run your first scan", + actionHref +}: EmptyHistoryStateProps) { + return ( +
+ + {/* Decorative Icon Graphic Badge */} +
+ +
+ + {/* Typography Copy Sections */} +

+ {title} +

+

+ {description} +

+ + {/* Conditional Quick-Action CTA Affordance */} + {actionHref && ( + + {actionLabel} + + + )} +
+ ); +} \ No newline at end of file