From 9ed85af2a5d5b17a0047f1ae0276f29562ac27d2 Mon Sep 17 00:00:00 2001 From: SohamBhattacharjee2003 <125297948+SohamBhattacharjee2003@users.noreply.github.com> Date: Thu, 9 Apr 2026 22:09:49 +0530 Subject: [PATCH] fix: add user feedback for snapshot deletion failures (#1197) - Add toast.error notification when snapshot deletion fails - Preserve console.error logging for debugging - Consistent with error handling patterns in other components - Improves user experience by providing visible error feedback --- .../public-chat-snapshots/public-chat-snapshots-manager.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/surfsense_web/components/public-chat-snapshots/public-chat-snapshots-manager.tsx b/surfsense_web/components/public-chat-snapshots/public-chat-snapshots-manager.tsx index 24d801409..568608f2b 100644 --- a/surfsense_web/components/public-chat-snapshots/public-chat-snapshots-manager.tsx +++ b/surfsense_web/components/public-chat-snapshots/public-chat-snapshots-manager.tsx @@ -74,6 +74,7 @@ export function PublicChatSnapshotsManager({ }); } catch (error) { console.error("Failed to delete snapshot:", error); + toast.error("Failed to delete snapshot"); } finally { setDeletingId(undefined); }