From 61ff1582da0567d62080bac4dce97f5bee592e2b Mon Sep 17 00:00:00 2001 From: Adamsmith6300 Date: Fri, 11 Apr 2025 16:54:25 -0700 Subject: [PATCH] search card ux updates --- surfsense_web/app/dashboard/page.tsx | 73 +++++++++++++--------------- 1 file changed, 35 insertions(+), 38 deletions(-) diff --git a/surfsense_web/app/dashboard/page.tsx b/surfsense_web/app/dashboard/page.tsx index 4e19545a4..1418b8096 100644 --- a/surfsense_web/app/dashboard/page.tsx +++ b/surfsense_web/app/dashboard/page.tsx @@ -211,6 +211,7 @@ const DashboardPage = () => {
{searchSpaces && searchSpaces.map((space) => ( + { alt={space.name} className="h-full w-full object-cover grayscale duration-700 group-hover:grayscale-0" /> -
-
- - - - - -
+
- - - - - - - Delete Search Space - - Are you sure you want to delete "{space.name}"? This action cannot be undone. - All documents, chats, and podcasts in this search space will be permanently deleted. - - - - Cancel - handleDeleteSearchSpace(space.id)} - className="bg-destructive hover:bg-destructive/90" - > - Delete - - - - +
e.preventDefault()}> + + + + + + + Delete Search Space + + Are you sure you want to delete "{space.name}"? This action cannot be undone. + All documents, chats, and podcasts in this search space will be permanently deleted. + + + + Cancel + handleDeleteSearchSpace(space.id)} + className="bg-destructive hover:bg-destructive/90" + > + Delete + + + + +
@@ -298,6 +294,7 @@ const DashboardPage = () => { + ))} {searchSpaces.length === 0 && ( @@ -350,4 +347,4 @@ const DashboardPage = () => { ) } -export default DashboardPage \ No newline at end of file +export default DashboardPage