From c1804173294c6754b9a976c5e8118c89a1a3709e Mon Sep 17 00:00:00 2001 From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com> Date: Thu, 14 May 2026 23:28:41 +0530 Subject: [PATCH] refactor: enhance loading and sidebar components with improved skeleton loading states and styling --- .../[search_space_id]/new-chat/loading.tsx | 85 +++++++++++-------- .../components/layout/ui/sidebar/Sidebar.tsx | 41 ++++----- 2 files changed, 72 insertions(+), 54 deletions(-) diff --git a/surfsense_web/app/dashboard/[search_space_id]/new-chat/loading.tsx b/surfsense_web/app/dashboard/[search_space_id]/new-chat/loading.tsx index 6eb9223ca..e18100e6a 100644 --- a/surfsense_web/app/dashboard/[search_space_id]/new-chat/loading.tsx +++ b/surfsense_web/app/dashboard/[search_space_id]/new-chat/loading.tsx @@ -2,42 +2,59 @@ import { Skeleton } from "@/components/ui/skeleton"; export default function Loading() { return ( -
{t("no_shared_chats")}
+{t("no_shared_chats")}
)} @@ -274,13 +281,7 @@ export function Sidebar({ } > {isLoadingChats ? ( -{t("no_chats")}
+{t("no_chats")}
)}