diff --git a/surfsense_web/app/dashboard/[search_space_id]/documents/(manage)/components/DocumentsTableShell.tsx b/surfsense_web/app/dashboard/[search_space_id]/documents/(manage)/components/DocumentsTableShell.tsx index 1c246ed71..ceef9f2e1 100644 --- a/surfsense_web/app/dashboard/[search_space_id]/documents/(manage)/components/DocumentsTableShell.tsx +++ b/surfsense_web/app/dashboard/[search_space_id]/documents/(manage)/components/DocumentsTableShell.tsx @@ -947,36 +947,36 @@ export function DocumentsTableShell({ WebkitMaskImage: `linear-gradient(to bottom, ${previewScrollPos === "top" ? "black" : "transparent"}, black 16px, black calc(100% - 16px), ${previewScrollPos === "bottom" ? "black" : "transparent"})`, }} > - {viewingLoading ? ( -
- -
- ) : ( - <> - - {viewingDoc && ( -
- -
- )} - - )} + {viewingLoading ? ( +
+ +
+ ) : ( + <> + + {viewingDoc && ( +
+ +
+ )} + + )} 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 9e9374dd6..ac1fcdaf9 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 @@ -232,7 +232,7 @@ export default function NewChatPage() { const prevById = new Map(prev.map((m) => [m.id, m])); return syncedMessages.map((msg) => { - const member = msg.author_id ? memberById.get(msg.author_id) ?? null : null; + const member = msg.author_id ? (memberById.get(msg.author_id) ?? null) : null; // Preserve existing author info if member lookup fails (e.g., cloned chats) const existingMsg = prevById.get(`msg-${msg.id}`); diff --git a/surfsense_web/app/docs/[[...slug]]/page.tsx b/surfsense_web/app/docs/[[...slug]]/page.tsx index 166131f90..0905be8a0 100644 --- a/surfsense_web/app/docs/[[...slug]]/page.tsx +++ b/surfsense_web/app/docs/[[...slug]]/page.tsx @@ -1,8 +1,8 @@ import { DocsBody, DocsDescription, DocsPage, DocsTitle } from "fumadocs-ui/page"; import { notFound } from "next/navigation"; +import { cache } from "react"; import { source } from "@/lib/source"; import { getMDXComponents } from "@/mdx-components"; -import { cache } from "react"; const getDocPage = cache((slug?: string[]) => { return source.getPage(slug); diff --git a/surfsense_web/app/error.tsx b/surfsense_web/app/error.tsx index 3935f84d5..70c3d9632 100644 --- a/surfsense_web/app/error.tsx +++ b/surfsense_web/app/error.tsx @@ -1,6 +1,5 @@ "use client"; - import { useEffect } from "react"; export default function ErrorPage({ diff --git a/surfsense_web/components/chat-comments/comment-composer/comment-composer.tsx b/surfsense_web/components/chat-comments/comment-composer/comment-composer.tsx index bee3f2da6..3d6ea384b 100644 --- a/surfsense_web/components/chat-comments/comment-composer/comment-composer.tsx +++ b/surfsense_web/components/chat-comments/comment-composer/comment-composer.tsx @@ -16,10 +16,7 @@ function convertDisplayToData(displayContent: string, mentions: InsertedMention[ const sortedMentions = [...mentions].sort((a, b) => b.displayName.length - a.displayName.length); const mentionPatterns = sortedMentions.map((mention) => ({ - pattern: new RegExp( - `@${escapeRegExp(mention.displayName)}(?=\\s|$|[.,!?;:])`, - "g" - ), + pattern: new RegExp(`@${escapeRegExp(mention.displayName)}(?=\\s|$|[.,!?;:])`, "g"), dataFormat: `@[${mention.id}]`, })); diff --git a/surfsense_web/components/editor-panel/editor-panel.tsx b/surfsense_web/components/editor-panel/editor-panel.tsx index 4b7079aef..3f167dc24 100644 --- a/surfsense_web/components/editor-panel/editor-panel.tsx +++ b/surfsense_web/components/editor-panel/editor-panel.tsx @@ -223,7 +223,9 @@ export function EditorPanelContent({ - This document is too large for the editor ({Math.round((editorDoc.content_size_bytes ?? 0) / 1024 / 1024)}MB, {editorDoc.chunk_count ?? 0} chunks). Showing a preview below. + This document is too large for the editor ( + {Math.round((editorDoc.content_size_bytes ?? 0) / 1024 / 1024)}MB,{" "} + {editorDoc.chunk_count ?? 0} chunks). Showing a preview below.