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 aa712da5b..cddb3e79a 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 @@ -11,7 +11,7 @@ import { FileX, Network, PenLine, - Plus, + SearchX, Trash2, } from "lucide-react"; import { useRouter } from "next/navigation"; @@ -327,6 +327,7 @@ export function DocumentsTableShell({ mentionedDocIds, onToggleChatMention, onEditNavigate, + isSearchMode = false, }: { documents: Document[]; loading: boolean; @@ -345,6 +346,8 @@ export function DocumentsTableShell({ onToggleChatMention?: (doc: Document, mentioned: boolean) => void; /** Called when user navigates to the editor via Edit — use to close containing sidebar/panel */ onEditNavigate?: () => void; + /** Whether results are filtered by a search query or type filters */ + isSearchMode?: boolean; }) { const t = useTranslations("documents"); const { openDialog } = useDocumentUploadDialog(); @@ -569,21 +572,34 @@ export function DocumentsTableShell({ ) : sorted.length === 0 ? (
+ Try a different search term or adjust your filters. +
+- Get started by uploading your first document. -
+ ) : ( ++ Get started by uploading your first document. +
++ Try a different search term or adjust your filters. +
+- Get started by uploading your first document. -
+ ) : ( ++ Get started by uploading your first document. +
+