Commit graph

1716 commits

Author SHA1 Message Date
Anish Sarkar
287fc236ad refactor: enhance chat functionality with query invalidation and navigation improvements
- Integrated useQueryClient from React Query to manage query invalidation for threads, ensuring real-time updates in the sidebar when a new chat is created or a thread is deleted.
- Updated the AllChatsSidebar to close the sidebar and navigate to the new chat page if the currently open chat is deleted.
- Improved error handling and user experience during thread deletion by ensuring the sidebar closes smoothly before redirection.
2025-12-26 03:11:49 +05:30
DESKTOP-RTLN3BA\$punk
d9e6947fbd Revert "feat: added posthog"
This reverts commit c96be7d9e1.
2025-12-25 13:37:35 -08:00
DESKTOP-RTLN3BA\$punk
c96be7d9e1 feat: added posthog 2025-12-25 13:25:13 -08:00
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
9bc3f193c3 refactor: improve type safety in document extraction and UI components
- Introduced Zod schemas for type-safe parsing of mentioned document information in chat messages.
- Updated the extractMentionedDocuments function to utilize the new schemas for better validation.
- Made the 'alt' property optional in image-related components for improved flexibility and fallback handling.
2025-12-26 00:18:47 +05:30
Anish Sarkar
bea18960a4 refactor: enhance link preview functionality with Chromium fallback
- Added a fallback mechanism using headless Chromium to fetch page content when standard HTTP requests fail.
- Introduced utility functions for unescaping HTML entities and converting relative URLs to absolute.
- Updated HTTP request headers to mimic a browser for better compatibility with web servers.
- Improved error handling and logging for better debugging and user feedback.
- Made various properties in Zod schemas nullable for better type safety and flexibility in handling optional data.
2025-12-26 00:07:45 +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
ee5d14c86c refactor: improve type safety and structure in editor page
- Updated BlockNote document handling by defining TypeScript types for better clarity and maintainability.
- Refactored extractTitleFromBlockNote function to utilize the new types, enhancing type safety.
- Changed state management for editorContent to use the defined BlockNoteDocument type.
- Adjusted layout classes for improved responsiveness and visual consistency in the editor interface.
2025-12-25 19:28:46 +05:30
Anish Sarkar
8fae4b1742 refactor: update audio component for improved volume control and UI
- Removed the play overlay button from the artwork section for a cleaner design.
- Replaced the existing volume slider with a custom volume bar for better visual distinction.
- Enhanced the volume control layout for improved user experience and accessibility.
2025-12-25 18:37:35 +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
DESKTOP-RTLN3BA\$punk
433b46f859 fix: add festive greeting 2025-12-24 18:13:49 -08:00
DESKTOP-RTLN3BA\$punk
2603db74eb feat: released 0.0.9 changelog 2025-12-24 18:03:22 -08:00
DESKTOP-RTLN3BA\$punk
b86ec41348 refactor: update hero section images to use main_demo.webp for both light and dark modes 2025-12-24 00:04:07 -08:00
DESKTOP-RTLN3BA\$punk
dfed7187bc feat: updated version to 0.0.9 2025-12-23 22:12:53 -08:00
Rohan Verma
2f7def2a6a
Merge pull request #611 from CREDO23/documents-mentions
[Feat] Documents mentions
2025-12-23 21:17:57 -08:00
CREDO23
deec8c5c6c fix: formatting 2025-12-24 07:06:35 +02:00
DESKTOP-RTLN3BA\$punk
da559e4abc feat: removed All chats,notes sidebar sheet
- Integrated AnimatePresence and motion for smoother transitions in AllChatsSidebar and AllNotesSidebar.
- Added escape key handling to close the sidebar and body scroll locking when open.
- Refactored search input styles and layout for better usability and consistency.
- Ensured proper mounting of components before rendering to avoid layout shifts.
2025-12-23 20:51:10 -08: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
9430cd9768 refactor: update sidebar components for improved styling and layout
- Adjusted the AllChatsSidebar and AllNotesSidebar components to enhance visual consistency by removing unnecessary borders and refining padding.
- Updated search input styles to eliminate borders and improve focus visibility.
- Made minor layout adjustments to ensure better alignment and spacing within the sidebar components.
2025-12-24 02:24:01 +05:30
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
fd7e43181a refactor: update search space form text for clarity and conciseness
- Removed redundant editing instructions and replaced them with a more streamlined description of the search space functionality.
- Enhanced user understanding by clarifying the purpose of a search space as a personal workspace with AI integration.
2025-12-23 01:35:29 -08:00
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
5fd872b798 feat: implement Zod schemas for runtime validation across various components to enhance data integrity and error handling 2025-12-23 02:42:48 +05:30
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
24dd52ed99 feat: add web scraping tool to chat agent for extracting and summarizing webpage content 2025-12-23 01:49:29 +05:30
Anish Sarkar
da7cb81252 feat: introduce display image tool for enhanced image rendering in chat with metadata support 2025-12-23 01:11:56 +05:30
Anish Sarkar
4b69fdf214 feat: add link preview tool for enhanced URL metadata display in chat 2025-12-23 00:58:27 +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