From 685774ecb7411933e3f53fb8058bed9f0f0dbca8 Mon Sep 17 00:00:00 2001 From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com> Date: Sat, 17 Jan 2026 23:36:37 +0530 Subject: [PATCH] refactor: improve document mention editor and picker functionality - Updated InlineMentionEditor to enhance visual styling of mention chips. - Refactored DocumentMentionPicker to streamline the rendering of the document selection popover and improve keyboard navigation with smooth scrolling. - Enhanced user experience by ensuring the mention mode remains active during search without closing the popup when no results are found. --- .../assistant-ui/inline-mention-editor.tsx | 2 +- .../components/assistant-ui/thread.tsx | 57 ++++++-------- .../new-chat/document-mention-picker.tsx | 78 +++++++++++++++---- 3 files changed, 85 insertions(+), 52 deletions(-) diff --git a/surfsense_web/components/assistant-ui/inline-mention-editor.tsx b/surfsense_web/components/assistant-ui/inline-mention-editor.tsx index 917660cf6..570440f6a 100644 --- a/surfsense_web/components/assistant-ui/inline-mention-editor.tsx +++ b/surfsense_web/components/assistant-ui/inline-mention-editor.tsx @@ -167,7 +167,7 @@ export const InlineMentionEditor = forwardRef { {showDocumentPopover && typeof document !== "undefined" && createPortal( - <> - {/* Backdrop */} -