diff --git a/surfsense_web/components/assistant-ui/thread.tsx b/surfsense_web/components/assistant-ui/thread.tsx index 65e6db08c..0a332b1df 100644 --- a/surfsense_web/components/assistant-ui/thread.tsx +++ b/surfsense_web/components/assistant-ui/thread.tsx @@ -262,7 +262,7 @@ const BANNER_CONNECTORS = [ const BANNER_DISMISSED_KEY = "surfsense-connect-tools-banner-dismissed"; -const ConnectToolsBanner: FC = () => { +const ConnectToolsBanner: FC<{ isThreadEmpty: boolean }> = ({ isThreadEmpty }) => { const { data: connectors } = useAtomValue(connectorsAtom); const setConnectorDialogOpen = useSetAtom(connectorDialogOpenAtom); const [dismissed, setDismissed] = useState(() => { @@ -272,7 +272,7 @@ const ConnectToolsBanner: FC = () => { const hasConnectors = (connectors?.length ?? 0) > 0; - if (dismissed || hasConnectors) return null; + if (dismissed || hasConnectors || !isThreadEmpty) return null; const handleDismiss = (e: React.MouseEvent) => { e.stopPropagation(); @@ -566,7 +566,7 @@ const Composer: FC = () => { )} - + ); diff --git a/surfsense_web/messages/en.json b/surfsense_web/messages/en.json index 8cacbc47c..22097b212 100644 --- a/surfsense_web/messages/en.json +++ b/surfsense_web/messages/en.json @@ -656,7 +656,7 @@ "view_all_private_chats": "View all private chats", "show_all": "Show all", "hide": "Hide", - "no_chats": "No chats yet", + "no_chats": "No chats", "start_new_chat_hint": "Start a new chat", "error_loading_chats": "Error loading chats", "chat_deleted": "Chat deleted successfully", diff --git a/surfsense_web/messages/es.json b/surfsense_web/messages/es.json index 83da1b8ba..83a00e721 100644 --- a/surfsense_web/messages/es.json +++ b/surfsense_web/messages/es.json @@ -656,7 +656,7 @@ "view_all_private_chats": "Ver todos los chats privados", "show_all": "Ver todo", "hide": "Ocultar", - "no_chats": "Aún no hay chats", + "no_chats": "Sin chats", "start_new_chat_hint": "Iniciar un nuevo chat", "error_loading_chats": "Error al cargar chats", "chat_deleted": "Chat eliminado correctamente", diff --git a/surfsense_web/messages/hi.json b/surfsense_web/messages/hi.json index e1e6e6dd8..ae3a77c2e 100644 --- a/surfsense_web/messages/hi.json +++ b/surfsense_web/messages/hi.json @@ -656,7 +656,7 @@ "view_all_private_chats": "सभी निजी चैट देखें", "show_all": "सभी देखें", "hide": "छिपाएँ", - "no_chats": "अभी तक कोई चैट नहीं", + "no_chats": "कोई चैट नहीं", "start_new_chat_hint": "नई चैट शुरू करें", "error_loading_chats": "चैट लोड करने में त्रुटि", "chat_deleted": "चैट सफलतापूर्वक हटाया गया", diff --git a/surfsense_web/messages/pt.json b/surfsense_web/messages/pt.json index 465e2103d..f622c0e51 100644 --- a/surfsense_web/messages/pt.json +++ b/surfsense_web/messages/pt.json @@ -656,7 +656,7 @@ "view_all_private_chats": "Ver todos os chats privados", "show_all": "Ver tudo", "hide": "Ocultar", - "no_chats": "Nenhum chat ainda", + "no_chats": "Nenhum chat", "start_new_chat_hint": "Iniciar um novo chat", "error_loading_chats": "Erro ao carregar chats", "chat_deleted": "Chat excluído com sucesso", diff --git a/surfsense_web/messages/zh.json b/surfsense_web/messages/zh.json index 06583ba05..2a1688b63 100644 --- a/surfsense_web/messages/zh.json +++ b/surfsense_web/messages/zh.json @@ -640,7 +640,7 @@ "view_all_private_chats": "查看所有私人对话", "show_all": "查看全部", "hide": "隐藏", - "no_chats": "暂无对话", + "no_chats": "无对话", "start_new_chat_hint": "开始新对话", "error_loading_chats": "加载对话时出错", "chat_deleted": "对话删除成功",