From 0d56cfb663e9b48e52dc4ba32bec5b8a3414db23 Mon Sep 17 00:00:00 2001 From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com> Date: Tue, 17 Mar 2026 15:19:16 +0530 Subject: [PATCH] chore: ran linting --- .../components/assistant-ui/thread.tsx | 141 +++++++++--------- 1 file changed, 70 insertions(+), 71 deletions(-) diff --git a/surfsense_web/components/assistant-ui/thread.tsx b/surfsense_web/components/assistant-ui/thread.tsx index f87f74d30..80cdbbb3d 100644 --- a/surfsense_web/components/assistant-ui/thread.tsx +++ b/surfsense_web/components/assistant-ui/thread.tsx @@ -694,40 +694,40 @@ const ComposerAction: FC = ({ isBlockedByOtherUser = false {filteredEnabledCount}/{filteredTools?.length ?? 0} enabled -
- {groupedTools.map((group) => ( -
-
- {group.label} +
+ {groupedTools.map((group) => ( +
+
+ {group.label} +
+ {group.tools.map((tool) => { + const isDisabled = disabledTools.includes(tool.name); + const ToolIcon = getToolIcon(tool.name); + return ( +
+ + + {formatToolName(tool.name)} + + toggleTool(tool.name)} + className="shrink-0" + /> +
+ ); + })}
- {group.tools.map((tool) => { - const isDisabled = disabledTools.includes(tool.name); - const ToolIcon = getToolIcon(tool.name); - return ( -
- - - {formatToolName(tool.name)} - - toggleTool(tool.name)} - className="shrink-0" - /> -
- ); - })} -
- ))} - {!filteredTools?.length && ( -
- Loading tools... -
- )} -
+ ))} + {!filteredTools?.length && ( +
+ Loading tools... +
+ )} +
@@ -946,7 +946,6 @@ const TOOL_GROUPS: { label: string; tools: string[] }[] = [ }, ]; - const MessageError: FC = () => { return (