From 993c8539e82489bc129e024bcc796a0394d3b6ec Mon Sep 17 00:00:00 2001
From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com>
Date: Tue, 17 Mar 2026 01:09:15 +0530
Subject: [PATCH] feat: update UI components to utilize new main panel styling
- Replaced background styles with `bg-main-panel` in various components for consistent theming.
- Enhanced the `Header`, `LayoutShell`, and `Thread` components to improve visual coherence.
- Adjusted tool management UI to reflect new design standards, ensuring a unified user experience.
---
.../app/agents/new_chat/system_prompt.py | 2 +-
.../new-chat/[[...chat_id]]/page.tsx | 4 +-
surfsense_web/app/globals.css | 3 +
.../assistant-ui/thread-scroll-to-bottom.tsx | 2 +-
.../components/assistant-ui/thread.tsx | 68 +++++++++--
.../components/layout/ui/header/Header.tsx | 2 +-
.../layout/ui/right-panel/RightPanel.tsx | 2 +-
.../layout/ui/shell/LayoutShell.tsx | 79 ++++++++-----
.../layout/ui/sidebar/InboxSidebar.tsx | 8 +-
.../components/layout/ui/sidebar/Sidebar.tsx | 14 ---
.../ui/sidebar/SidebarSlideOutPanel.tsx | 106 +++++++++++-------
.../components/new-chat/model-selector.tsx | 9 +-
12 files changed, 187 insertions(+), 112 deletions(-)
diff --git a/surfsense_backend/app/agents/new_chat/system_prompt.py b/surfsense_backend/app/agents/new_chat/system_prompt.py
index 274896229..cff13e8c6 100644
--- a/surfsense_backend/app/agents/new_chat/system_prompt.py
+++ b/surfsense_backend/app/agents/new_chat/system_prompt.py
@@ -566,7 +566,7 @@ DISABLED TOOLS (by user):
The following tools are available in SurfSense but have been disabled by the user for this session: {disabled_list}.
You do NOT have access to these tools and MUST NOT claim you can use them.
If the user asks about a capability provided by a disabled tool, let them know the relevant tool
-is currently disabled and they can re-enable it from the tools menu (wrench icon) in the composer toolbar.
+is currently disabled and they can re-enable it.
""")
parts.append("\n\n")
diff --git a/surfsense_web/app/dashboard/[search_space_id]/new-chat/[[...chat_id]]/page.tsx b/surfsense_web/app/dashboard/[search_space_id]/new-chat/[[...chat_id]]/page.tsx
index 8e877b99c..7a046bc9a 100644
--- a/surfsense_web/app/dashboard/[search_space_id]/new-chat/[[...chat_id]]/page.tsx
+++ b/surfsense_web/app/dashboard/[search_space_id]/new-chat/[[...chat_id]]/page.tsx
@@ -1596,7 +1596,7 @@ export default function NewChatPage() {
// Show loading state only when loading an existing thread
if (isInitializing) {
return (
-
+
{/* User message */}
@@ -1624,7 +1624,7 @@ export default function NewChatPage() {