From 82d832092804398cfd56e2d8e19610956c091d4f Mon Sep 17 00:00:00 2001 From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com> Date: Tue, 16 Dec 2025 20:14:54 +0530 Subject: [PATCH] feat: enhance sidebar and editor functionality - Updated AllNotesSidebar to render via portal for improved stacking context. - Refactored sidebar styles and behavior for better user experience. - Modified AppSidebarProvider to limit recent notes to 5 and sort by updated date. - Improved editor page to handle document state updates and query invalidation on note creation. - Added loading messages to translations for better user feedback during operations. --- .../components/DocumentsTableShell.tsx | 2 +- .../editor/[documentId]/page.tsx | 62 ++++++++------ .../components/sidebar/AppSidebarProvider.tsx | 62 +++++++------- .../components/sidebar/all-notes-sidebar.tsx | 81 ++++++++++--------- .../components/sidebar/nav-notes.tsx | 2 +- .../components/sidebar/page-usage-display.tsx | 42 +++++----- surfsense_web/messages/en.json | 3 +- surfsense_web/messages/zh.json | 3 +- 8 files changed, 139 insertions(+), 118 deletions(-) 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 0483940e0..a2fee25a4 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 @@ -150,7 +150,7 @@ export function DocumentsTableShell({ <>