diff --git a/surfsense_web/app/dashboard/[search_space_id]/documents/(manage)/components/DocumentsFilters.tsx b/surfsense_web/app/dashboard/[search_space_id]/documents/(manage)/components/DocumentsFilters.tsx index ed882916e..028f38098 100644 --- a/surfsense_web/app/dashboard/[search_space_id]/documents/(manage)/components/DocumentsFilters.tsx +++ b/surfsense_web/app/dashboard/[search_space_id]/documents/(manage)/components/DocumentsFilters.tsx @@ -226,7 +226,7 @@ export function DocumentsFilters({ )} {activeTypes.length > 0 && ( -
+
- Pending - waiting to be processed + Pending - waiting to be synced ); case "processing": @@ -191,7 +191,6 @@ export function DocumentsTableShell({ documents, loading, error, - onRefresh, selectedIds, setSelectedIds, columnVisibility, @@ -204,7 +203,6 @@ export function DocumentsTableShell({ documents: Document[]; loading: boolean; error: boolean; - onRefresh: () => Promise; selectedIds: Set; setSelectedIds: (update: Set) => void; columnVisibility: ColumnVisibility; @@ -361,10 +359,15 @@ export function DocumentsTableShell({ )} {columnVisibility.created_at && ( - + )} + {columnVisibility.status && ( + + + + )} Actions @@ -401,10 +404,15 @@ export function DocumentsTableShell({ )} {columnVisibility.created_at && ( - + )} + {columnVisibility.status && ( + + + + )} @@ -435,23 +443,26 @@ export function DocumentsTableShell({ )}
- +
+ {columnVisibility.status && ( + + )} + +
))} ) : error ? ( -
+
+

{t("error_loading")}

-
) : sorted.length === 0 ? ( -
+
{ - if (isRefreshing) return; - setIsRefreshing(true); - try { - if (isSearchMode) { - await refetchSearch(); - } - // Real-time view doesn't need manual refresh - Electric handles it - toast.success(t("refresh_success") || "Documents refreshed"); - } finally { - setIsRefreshing(false); - } - }, [isSearchMode, refetchSearch, t, isRefreshing]); - const onBulkDelete = async () => { if (selectedIds.size === 0) { toast.error(t("no_rows_selected")); @@ -293,7 +277,6 @@ export default function DocumentsTable() { documents={displayDocs} loading={!!loading} error={!!error} - onRefresh={refreshCurrentView} selectedIds={selectedIds} setSelectedIds={setSelectedIds} columnVisibility={columnVisibility} diff --git a/surfsense_web/contracts/enums/connectorIcons.tsx b/surfsense_web/contracts/enums/connectorIcons.tsx index aaf476215..18a872d94 100644 --- a/surfsense_web/contracts/enums/connectorIcons.tsx +++ b/surfsense_web/contracts/enums/connectorIcons.tsx @@ -92,7 +92,7 @@ export const getConnectorIcon = (connectorType: EnumConnectorName | string, clas case "FILE": return ; case "GOOGLE_DRIVE_FILE": - return ; + return Google Drive; case "COMPOSIO_GOOGLE_DRIVE_CONNECTOR": return Google Drive; case "COMPOSIO_GMAIL_CONNECTOR": diff --git a/surfsense_web/messages/en.json b/surfsense_web/messages/en.json index 75b186420..0dcf44776 100644 --- a/surfsense_web/messages/en.json +++ b/surfsense_web/messages/en.json @@ -328,7 +328,6 @@ "filter_placeholder": "Filter by title...", "rows_per_page": "Rows per page", "refresh": "Refresh", - "refresh_success": "Documents refreshed", "upload_documents": "Upload Documents", "create_shared_note": "Create Shared Note", "processing_documents": "Processing documents...", diff --git a/surfsense_web/messages/zh.json b/surfsense_web/messages/zh.json index 81121ef3e..bf5961fa7 100644 --- a/surfsense_web/messages/zh.json +++ b/surfsense_web/messages/zh.json @@ -313,7 +313,6 @@ "filter_placeholder": "按标题筛选...", "rows_per_page": "每页行数", "refresh": "刷新", - "refresh_success": "文档已刷新", "upload_documents": "上传文档", "create_shared_note": "创建共享笔记", "processing_documents": "正在处理文档...",