Commit graph

53 commits

Author SHA1 Message Date
DESKTOP-RTLN3BA\$punk
2832d57bda chore: linting 2026-01-01 22:56:37 -08:00
Anish Sarkar
95878368c8 chore: ran frontend linting 2026-01-01 22:24:42 +05:30
Anish Sarkar
2373421212 refactor: Clean up imports and streamline component structure in thread.tsx and google-drive-folder-tree.tsx for improved maintainability 2026-01-01 02:03:11 +05:30
Anish Sarkar
fda682c9e7 Merge remote-tracking branch 'upstream/dev' into fix/connector 2026-01-01 02:03:02 +05:30
CREDO23
2b5377846d refactor: modularize thread.tsx into focused component modules
- Split 1,089-line thread.tsx into 10 smaller, focused modules
- Created dedicated files for thinking-steps, welcome, composer, messages, etc.
- No breaking changes - all logic preserved exactly as before
- Improved code organization and maintainability
2025-12-30 16:38:57 +02:00
Anish Sarkar
9f19bea284 feat: Extract connector indicator UI from thread into a new dedicated component. 2025-12-30 04:03:34 +05:30
Anish Sarkar
3bea989868 feat: implement responsive row action dropdowns and enhance mobile sidebar navigation 2025-12-28 23:25:22 +05:30
Anish Sarkar
a10bfe32cd feat: Adjust document mention picker max height and refine thread header shimmer display logic. 2025-12-28 21:29:28 +05:30
DESKTOP-RTLN3BA\$punk
d154f510a3 fix: Adjust viewport overflow behavior in Thread component for improved scrolling experience 2025-12-27 13:42:37 -08:00
Anish Sarkar
0164659f7a refactor: comment out ls tool handling, update assistant UI colors and spacing. 2025-12-28 01:30:53 +05:30
Anish Sarkar
a956b5ff87 feat: Introduce document processing indicator UI, update localization. 2025-12-27 19:09:42 +05:30
Anish Sarkar
ad47d94b40 refactor: use ChainOfThoughtItem for thinking step display and update dependency lock file. 2025-12-27 16:40:53 +05:30
Anish Sarkar
8a3ab3dfac refactor: enhance write_todos tool and system prompt
- Updated the write_todos tool to include an optional description field for todo items, improving task detail management.
- Enhanced the system prompt with clearer guidelines on using the write_todos tool, including refined usage patterns and examples for various user scenarios.
- Improved UI components to support the new description feature, ensuring better visibility of task details during planning and execution.
- Streamlined the code for better readability and maintainability, aligning with recent refactoring efforts.
2025-12-26 19:24:32 +05:30
Anish Sarkar
ebc04f590e refactor: improve write_todos tool and UI components
- Refactored the write_todos tool to enhance argument and result schemas using Zod for better validation and type safety.
- Updated the WriteTodosToolUI to streamline the rendering logic and improve loading states, ensuring a smoother user experience.
- Enhanced the Plan and TodoItem components to better handle streaming states and display progress, providing clearer feedback during task management.
- Cleaned up code formatting and structure for improved readability and maintainability.
2025-12-26 17:49:56 +05:30
Anish Sarkar
2860b789e3 chore: removed auto-focus implementation 2025-12-26 14:40:15 +05:30
Anish Sarkar
1dd740bb23 refactor: enhance chat functionality with new tools and attachment handling
- Updated system prompt to clarify usage of the display_image tool, emphasizing valid URL requirements and prohibiting user-uploaded image displays.
- Introduced write_todos tool for creating and updating planning lists, with detailed usage instructions and examples.
- Enhanced message handling to persist attachments and mentioned documents, ensuring they survive page reloads.
- Improved UI components to integrate the new write_todos tool and ensure consistent user experience across chat interactions.
2025-12-26 11:38:32 +05:30
Anish Sarkar
ad5a49c2c6 refactor: enhance auto-focus behavior in Composer component
- Implemented a mechanism to auto-focus the editor immediately after the first message is sent, improving user experience by allowing quick follow-up queries.
- Introduced a reference to track the previous state of the thread to ensure focus only occurs during the transition from empty to non-empty.
2025-12-26 01:55:45 +05:30
DESKTOP-RTLN3BA\$punk
7f809ffa1b chore: linting 2025-12-25 11:42:12 -08:00
Anish Sarkar
2fdf567b71 refactor: replace DocumentsDataTable with DocumentMentionPicker for improved document selection
- Introduced DocumentMentionPicker component to enhance document selection experience in the chat interface.
- Updated InlineMentionEditor and Composer components to utilize the new DocumentMentionPicker.
- Removed the deprecated DocumentsDataTable component to streamline the codebase and improve maintainability.
- Enhanced type safety and validation in document handling logic.
2025-12-26 00:41:14 +05:30
Anish Sarkar
4c2de73694 refactor: update UI components for consistent styling 2025-12-25 19:40:43 +05:30
Anish Sarkar
46bb52a444 chore: run biome lints 2025-12-25 19:32:18 +05:30
Anish Sarkar
5c4a445456 refactor: streamline ThinkingStepsDisplay and ChainOfThought components
- Removed unnecessary calculations for in-progress and last completed step states in ThinkingStepsDisplay.
- Simplified the getStepOpenState function to focus on current step status.
- Introduced constants for animation timing and file extension categories in ChainOfThought for better maintainability.
- Enhanced icon retrieval logic based on file types and step statuses, improving clarity and performance.
- Updated component props to use TypeScript interfaces for better type safety and readability.
2025-12-25 18:26:36 +05:30
Anish Sarkar
9e7f8d7fe3 feat: enhance chat functionality with improved attachment handling and user experience
- Updated system prompt to clarify usage of the display_image tool, emphasizing URL requirements and restrictions on user-uploaded images.
- Enhanced the streaming chat process to provide more context about user attachments and documents during analysis.
- Implemented state resets when switching between chats to prevent stale data and race conditions.
- Added new components for displaying image previews and document attachments in the chat interface.
- Improved attachment processing to support image data URLs for persistent display after uploads.
2025-12-25 17:52:48 +05:30
Anish Sarkar
eb6192d480 chore: fix formatting 2025-12-25 14:29:44 +05:30
Anish Sarkar
7c8e269190 refactor: enhance InlineMentionEditor and Composer auto-focus functionality
- Refactored InlineMentionEditor to improve caret position handling and mention triggering logic.
- Removed unnecessary caret position saving and restoring functions for cleaner code.
- Updated mention handling to ensure proper closing of mention popover based on cursor position.
- Added auto-focus feature in Composer for new chat threads, enhancing user experience.
- Implemented checks to reset auto-focus when the thread is no longer empty.
2025-12-25 14:19:22 +05:30
Anish Sarkar
533084b433 feat: add InlineMentionEditor component for document mentions
- Introduced InlineMentionEditor to allow users to mention documents inline using '@'.
- Integrated the new editor into the Composer component, replacing the previous textarea input.
- Implemented functionality for handling document chips, mention triggers, and document removal.
- Enhanced user experience with real-time updates and improved keyboard navigation for mentions.
2025-12-25 13:44:18 +05:30
Anish Sarkar
bf22156664 refactor: update navigation and chat initialization logic
- Changed navigation from researcher to new-chat in EditorPage.
- Updated NewChatPage to support lazy thread creation on first message.
- Adjusted breadcrumb to not display thread ID for new-chat sections.
- Improved user experience by modifying error messages and loading states.
- Enhanced styling in model-selector component for better visibility.
2025-12-25 12:18:45 +05:30
CREDO23
deec8c5c6c fix: formatting 2025-12-24 07:06:35 +02:00
CREDO23
96bf469a1f align the user action edit button 2025-12-24 06:46:58 +02:00
Thierry CH.
c4400a0ec2
Merge branch 'dev' into documents-mentions 2025-12-24 06:31:49 +02:00
DESKTOP-RTLN3BA\$punk
aeb9379c27 feat: UX fixes 2025-12-23 19:10:58 -08:00
DESKTOP-RTLN3BA\$punk
ee546a7e03 chore: linting 2025-12-23 18:50:24 -08:00
DESKTOP-RTLN3BA\$punk
40e982d541 refactor: fix scroll to last user query ux
- Updated DashboardClientLayout to improve child component overflow handling.
- Refactored NewChatPage to streamline the layout and integrate ChatHeader directly within the Thread component.
- Added optional header prop to Thread component for better customization.
- Cleaned up ChatHeader by removing unnecessary wrapper for improved design.
2025-12-23 18:49:37 -08:00
Anish Sarkar
ed63e5a1d6 feat: add auto-scroll functionality for new user queries
- Introduced NewQueryScrollHandler component to automatically scroll to the latest user message when a new query is submitted, enhancing user experience.
- Updated ChatHeader component to remove unnecessary border for a cleaner design.
- Adjusted ModelSelector styles for improved visual consistency and accessibility.
2025-12-24 02:09:24 +05:30
Anish Sarkar
1d646d3b5f refactor: improve message content filtering and update dependencies in new chat
- Enhanced the message content filtering logic to exclude both "thinking-steps" and "mentioned-documents" for better clarity in chat messages.
- Updated the dependency imports in the thread component for improved organization and consistency.
- Adjusted the effect dependencies in the NewChatPage component to include the message documents map for better state management.
2025-12-23 16:04:39 +05:30
Anish Sarkar
6f330e7b8d Merge remote-tracking branch 'upstream/dev' into pr-611 2025-12-23 15:45:28 +05:30
Anish Sarkar
8e3f4f4ed7 feat: implement document mention extraction and management in new chat
- Added functionality to extract and manage mentioned documents within the new chat interface.
- Introduced new atoms for storing mentioned documents and their mappings to user messages.
- Enhanced the message persistence logic to include mentioned documents, ensuring they are displayed correctly in the chat.
- Updated the UI components to support document mentions, including a refined document selection interface.
- Improved state management for document mentions to ensure a seamless user experience.
2025-12-23 15:13:03 +05:30
DESKTOP-RTLN3BA\$punk
4a0c3e368a feat: migrated to surfsense deep agent 2025-12-23 01:16:25 -08:00
Anish Sarkar
ceb01dc544 feat: enhance new chat functionality with document mentions support
- Updated the new chat routes to include handling for mentioned document IDs, allowing users to reference specific documents in their chat.
- Modified the NewChatRequest schema to accommodate optional document IDs.
- Implemented document mention formatting in the chat streaming service for improved context.
- Enhanced the frontend to manage document mentions, including a new atom for state management and UI updates for document selection.
- Refactored the DocumentsDataTable component for better integration with the new mention functionality.
2025-12-23 14:24:36 +05:30
Anish Sarkar
9caaf6dee4 Merge remote-tracking branch 'upstream/dev' into pr-611 2025-12-23 13:05:45 +05:30
DESKTOP-RTLN3BA\$punk
b14283e300 feat: refactor new chat agent to support configurable tools and remove deprecated components
- Enhanced the new chat agent module to allow for configurable tools, enabling users to customize their experience with various functionalities.
- Removed outdated tools including display image, knowledge base search, link preview, podcast generation, and web scraping, streamlining the codebase.
- Updated the system prompt and agent factory to reflect these changes, ensuring a more cohesive and efficient architecture.
2025-12-22 20:17:08 -08:00
CREDO23
7766161f84 add document mentions table 2025-12-22 23:29:49 +02:00
CREDO23
b038e96a76 add document mentions table 2025-12-22 23:17:48 +02:00
Anish Sarkar
7ca490c740 feat: enhance chain-of-thought display with smart expand/collapse behavior and state management for improved user interaction 2025-12-23 02:21:41 +05:30
Anish Sarkar
28985e6af4 style: update greeting messages for improved user engagement and consistency 2025-12-23 00:35:08 +05:30
Anish Sarkar
3703487c59 style: improve connector display and layout in the UI for better readability and user interaction 2025-12-23 00:26:45 +05:30
Anish Sarkar
898b062bed fix: removed revamped connectors 2025-12-23 00:22:50 +05:30
Anish Sarkar
a3b22e61e5 refactor: update connector navigation to use router.back() for improved user experience 2025-12-22 23:57:16 +05:30
Anish Sarkar
8a99752f2f feat: enhance chat functionality with chain-of-thought display and thinking steps management 2025-12-22 22:54:22 +05:30
Anish Sarkar
2f622891ae feat: implement dynamic greeting and thinking steps display in Thread component 2025-12-22 18:38:08 +05:30