feat: implement real-time document updates and lazy loading for document content in DocumentsTable and DocumentsTableShell

This commit is contained in:
Anish Sarkar 2026-02-04 22:25:42 +05:30
parent 1cb578cffb
commit c19aa5fa99
9 changed files with 655 additions and 360 deletions

View file

@ -48,7 +48,7 @@ export const uploadDocumentMutationAtom = atomWithMutation((get) => {
},
onSuccess: () => {
toast.success("Files uploaded for processing");
// Note: Toast notification is handled by the caller (DocumentUploadTab) to use i18n
// Invalidate logs summary to show new processing tasks immediately on documents page
queryClient.invalidateQueries({
queryKey: cacheKeys.logs.summary(searchSpaceId ?? undefined),