From 47eaa705bf0c9174f1912b387025730a8b806596 Mon Sep 17 00:00:00 2001 From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com> Date: Sun, 1 Feb 2026 03:52:00 +0530 Subject: [PATCH] feat: sync last indexed timestamp with live data for real-time updates in connector popup --- surfsense_web/components/assistant-ui/connector-popup.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/surfsense_web/components/assistant-ui/connector-popup.tsx b/surfsense_web/components/assistant-ui/connector-popup.tsx index 20d76faa2..7184d393f 100644 --- a/surfsense_web/components/assistant-ui/connector-popup.tsx +++ b/surfsense_web/components/assistant-ui/connector-popup.tsx @@ -240,6 +240,10 @@ export const ConnectorIndicator: FC = () => { ...editingConnector, config: connectorConfig || editingConnector.config, name: editingConnector.name, + // Sync last_indexed_at with live data from Electric SQL for real-time updates + last_indexed_at: + (connectors as SearchSourceConnector[]).find((c) => c.id === editingConnector.id) + ?.last_indexed_at ?? editingConnector.last_indexed_at, }} startDate={startDate} endDate={endDate}