-
+
No artifacts yet
From 43ad064d3ce318618b68109c9218addac5f07f4e Mon Sep 17 00:00:00 2001
From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com>
Date: Fri, 24 Jul 2026 00:57:15 +0530
Subject: [PATCH 29/32] refactor(search-messages): remove redundant "try a
different search term" messages from various components and localization
files
---
.../connector-popup/tabs/active-connectors-tab.tsx | 1 -
.../assistant-ui/connector-popup/tabs/all-connectors-tab.tsx | 3 ---
surfsense_web/components/documents/FolderTreeView.tsx | 1 -
.../components/layout/ui/sidebar/AllChatsSidebar.tsx | 4 ----
surfsense_web/messages/en.json | 1 -
surfsense_web/messages/es.json | 1 -
surfsense_web/messages/hi.json | 1 -
surfsense_web/messages/ko.json | 1 -
surfsense_web/messages/pt.json | 1 -
surfsense_web/messages/zh.json | 1 -
10 files changed, 15 deletions(-)
diff --git a/surfsense_web/components/assistant-ui/connector-popup/tabs/active-connectors-tab.tsx b/surfsense_web/components/assistant-ui/connector-popup/tabs/active-connectors-tab.tsx
index 3d895f2c3..1e81ff709 100644
--- a/surfsense_web/components/assistant-ui/connector-popup/tabs/active-connectors-tab.tsx
+++ b/surfsense_web/components/assistant-ui/connector-popup/tabs/active-connectors-tab.tsx
@@ -147,7 +147,6 @@ export const ActiveConnectorsTab: FC = ({
No connectors found
-
Try a different search term
) : hasSources ? (
diff --git a/surfsense_web/components/assistant-ui/connector-popup/tabs/all-connectors-tab.tsx b/surfsense_web/components/assistant-ui/connector-popup/tabs/all-connectors-tab.tsx
index 8c82ecfb9..fb00ddd52 100644
--- a/surfsense_web/components/assistant-ui/connector-popup/tabs/all-connectors-tab.tsx
+++ b/surfsense_web/components/assistant-ui/connector-popup/tabs/all-connectors-tab.tsx
@@ -1,6 +1,5 @@
"use client";
-import { Search } from "lucide-react";
import type { FC } from "react";
import { useIsSelfHosted } from "@/components/providers/runtime-config";
import { EnumConnectorName } from "@/contracts/enums/connector";
@@ -252,9 +251,7 @@ export const AllConnectorsTab: FC
= ({
if (!hasAnyResults && searchQuery) {
return (
-
No connectors found
-
Try a different search term
);
}
diff --git a/surfsense_web/components/documents/FolderTreeView.tsx b/surfsense_web/components/documents/FolderTreeView.tsx
index 6c896b4b4..c75ac885a 100644
--- a/surfsense_web/components/documents/FolderTreeView.tsx
+++ b/surfsense_web/components/documents/FolderTreeView.tsx
@@ -324,7 +324,6 @@ export function FolderTreeView({
No matching documents
-
Try a different search term
);
}
diff --git a/surfsense_web/components/layout/ui/sidebar/AllChatsSidebar.tsx b/surfsense_web/components/layout/ui/sidebar/AllChatsSidebar.tsx
index bc861f443..ce57b871e 100644
--- a/surfsense_web/components/layout/ui/sidebar/AllChatsSidebar.tsx
+++ b/surfsense_web/components/layout/ui/sidebar/AllChatsSidebar.tsx
@@ -487,13 +487,9 @@ function AllChatsContent({ workspaceId, className }: AllChatsContentProps) {
) : isSearchMode ? (
-
{t("no_chats_found") || "No chats found"}
-
- {t("try_different_search") || "Try a different search term"}
-
) : (
diff --git a/surfsense_web/messages/en.json b/surfsense_web/messages/en.json
index 50b92b1f7..c9b73a09a 100644
--- a/surfsense_web/messages/en.json
+++ b/surfsense_web/messages/en.json
@@ -664,7 +664,6 @@
"chat_deleted": "Chat deleted successfully",
"error_deleting_chat": "Failed to delete chat",
"delete": "Delete",
- "try_different_search": "Try a different search term",
"updated": "Updated",
"more_options": "More options",
"clear_search": "Clear search",
diff --git a/surfsense_web/messages/es.json b/surfsense_web/messages/es.json
index ada68e841..84696e86e 100644
--- a/surfsense_web/messages/es.json
+++ b/surfsense_web/messages/es.json
@@ -664,7 +664,6 @@
"chat_deleted": "Chat eliminado correctamente",
"error_deleting_chat": "Error al eliminar el chat",
"delete": "Eliminar",
- "try_different_search": "Intenta con un término de búsqueda diferente",
"updated": "Actualizado",
"more_options": "Más opciones",
"clear_search": "Limpiar búsqueda",
diff --git a/surfsense_web/messages/hi.json b/surfsense_web/messages/hi.json
index 3b59c58dd..361284c2b 100644
--- a/surfsense_web/messages/hi.json
+++ b/surfsense_web/messages/hi.json
@@ -664,7 +664,6 @@
"chat_deleted": "चैट सफलतापूर्वक हटाया गया",
"error_deleting_chat": "चैट हटाने में विफल",
"delete": "हटाएं",
- "try_different_search": "कोई अलग खोज शब्द आज़माएं",
"updated": "अपडेट किया गया",
"more_options": "और विकल्प",
"clear_search": "खोज साफ करें",
diff --git a/surfsense_web/messages/ko.json b/surfsense_web/messages/ko.json
index 3b5d88852..5dd65166d 100644
--- a/surfsense_web/messages/ko.json
+++ b/surfsense_web/messages/ko.json
@@ -664,7 +664,6 @@
"chat_deleted": "채팅이 성공적으로 삭제되었습니다",
"error_deleting_chat": "채팅 삭제에 실패했습니다",
"delete": "삭제",
- "try_different_search": "다른 검색어를 시도해보세요",
"updated": "업데이트됨",
"more_options": "추가 옵션",
"clear_search": "검색 지우기",
diff --git a/surfsense_web/messages/pt.json b/surfsense_web/messages/pt.json
index 30fd09792..5cd735180 100644
--- a/surfsense_web/messages/pt.json
+++ b/surfsense_web/messages/pt.json
@@ -664,7 +664,6 @@
"chat_deleted": "Chat excluído com sucesso",
"error_deleting_chat": "Falha ao excluir chat",
"delete": "Excluir",
- "try_different_search": "Tente um termo de pesquisa diferente",
"updated": "Atualizado",
"more_options": "Mais opções",
"clear_search": "Limpar pesquisa",
diff --git a/surfsense_web/messages/zh.json b/surfsense_web/messages/zh.json
index 0a3cd6905..669e16e2b 100644
--- a/surfsense_web/messages/zh.json
+++ b/surfsense_web/messages/zh.json
@@ -663,7 +663,6 @@
"chat_deleted": "对话删除成功",
"error_deleting_chat": "删除对话失败",
"delete": "删除",
- "try_different_search": "尝试其他搜索词",
"updated": "更新时间",
"more_options": "更多选项",
"clear_search": "清除搜索",
From 9ec89f94dea8448879d33aae757c2623412150d9 Mon Sep 17 00:00:00 2001
From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com>
Date: Fri, 24 Jul 2026 00:57:58 +0530
Subject: [PATCH 30/32] fix(AllChatsSidebar): increase font size for "no chats
found" message for better visibility
---
surfsense_web/components/layout/ui/sidebar/AllChatsSidebar.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/surfsense_web/components/layout/ui/sidebar/AllChatsSidebar.tsx b/surfsense_web/components/layout/ui/sidebar/AllChatsSidebar.tsx
index ce57b871e..423eecb79 100644
--- a/surfsense_web/components/layout/ui/sidebar/AllChatsSidebar.tsx
+++ b/surfsense_web/components/layout/ui/sidebar/AllChatsSidebar.tsx
@@ -487,7 +487,7 @@ function AllChatsContent({ workspaceId, className }: AllChatsContentProps) {
) : isSearchMode ? (
-
+
{t("no_chats_found") || "No chats found"}
From 81e8c353f0e5e5f56b08ee13bad138bfba533dbb Mon Sep 17 00:00:00 2001
From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com>
Date: Fri, 24 Jul 2026 01:13:46 +0530
Subject: [PATCH 31/32] refactor(public-chat-snapshots-manager): extract info
alert into a constant for improved readability and reuse
---
.../public-chat-snapshots-manager.tsx | 27 +++++++++----------
1 file changed, 12 insertions(+), 15 deletions(-)
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 1a299fbe0..e3f8d3173 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
@@ -17,6 +17,16 @@ interface PublicChatSnapshotsManagerProps {
workspaceId: number;
}
+const infoAlert = (
+
+
+
+ Public chats allow anyone with the URL to view a snapshot of a chat. They do not update when
+ the original chat changes.
+
+
+);
+
export function PublicChatSnapshotsManager({
workspaceId: _workspaceId,
}: PublicChatSnapshotsManagerProps) {
@@ -81,14 +91,7 @@ export function PublicChatSnapshotsManager({
if (isLoading) {
return (
-
-
-
-
-
-
-
-
+ {infoAlert}
{/* Cards grid skeleton */}
@@ -135,13 +138,7 @@ export function PublicChatSnapshotsManager({
return (
-
-
-
- Public chats allow anyone with the URL to view a snapshot of a chat. They do not update
- when the original chat changes.
-
-
+ {infoAlert}
Date: Fri, 24 Jul 2026 02:07:42 +0530
Subject: [PATCH 32/32] refactor(composer-add-menu-drawer, thread): update
"Browse all connectors" text to "Manage connectors" for consistency
---
.../components/assistant-ui/composer-add-menu-drawer.tsx | 2 +-
surfsense_web/components/assistant-ui/thread.tsx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/surfsense_web/components/assistant-ui/composer-add-menu-drawer.tsx b/surfsense_web/components/assistant-ui/composer-add-menu-drawer.tsx
index 4b97a1aaf..86a923917 100644
--- a/surfsense_web/components/assistant-ui/composer-add-menu-drawer.tsx
+++ b/surfsense_web/components/assistant-ui/composer-add-menu-drawer.tsx
@@ -217,7 +217,7 @@ export function ComposerAddMenuDrawer({
}}
>
- Browse all connectors
+ Manage connectors
>
);
diff --git a/surfsense_web/components/assistant-ui/thread.tsx b/surfsense_web/components/assistant-ui/thread.tsx
index 50eadd237..b62d931b1 100644
--- a/surfsense_web/components/assistant-ui/thread.tsx
+++ b/surfsense_web/components/assistant-ui/thread.tsx
@@ -1281,7 +1281,7 @@ const ComposerAction: FC = ({
- Browse all connectors
+ Manage connectors