Commit graph

125 commits

Author SHA1 Message Date
CREDO23
b0214c901d feat: add log mutation atoms 2025-12-26 16:51:12 +02:00
CREDO23
b70bca6345 feat: add log mutation atoms 2025-12-26 16:50:58 +02:00
CREDO23
f74a4a5662 fix: fix backward compatibility in web crawler connector page 2025-12-26 15:26:05 +02:00
CREDO23
f05a313d73 Merge upstream/dev and accept upstream deletions 2025-12-26 14:50:52 +02:00
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
eb70c055a4 refactor: introduce write_todos tool for enhanced task management
- Added a new write_todos tool to facilitate the creation and management of planning lists within the chat interface.
- Updated system prompt with detailed instructions on using the write_todos tool, including usage patterns and restrictions.
- Enhanced the chat message handling to support the new tool, ensuring proper integration and user experience.
- Implemented UI components for displaying and interacting with the planning lists, including progress tracking and status indicators.
2025-12-26 14:37:23 +05:30
CREDO23
deec8c5c6c fix: formatting 2025-12-24 07:06:35 +02:00
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
DESKTOP-RTLN3BA\$punk
c2dcb2045d feat: added attachment support 2025-12-21 22:26:33 -08:00
Anish Sarkar
b53b19170e feat: implement unsaved changes handling in editor and sidebar
- Introduced global state management for unsaved changes and pending navigation using Jotai atoms.
- Updated the editor component to sync local unsaved changes with global state and handle navigation prompts.
- Enhanced sidebar functionality to check for unsaved changes before navigating to a new note.
- Added cleanup logic for global state on component unmount to prevent stale data.
2025-12-19 22:59:42 +05:30
Anish Sarkar
ee46a43afc feat: enhance chat query handling and sidebar updates
- Updated chat query to include ordering by creation date for better organization.
- Improved optimistic updates in chat deletion and creation mutations to ensure UI consistency.
- Invalidate chat queries after mutations to refresh sidebar and components effectively.
- Adjusted cache key structure for chat queries to include additional parameters for better cache management.
2025-12-19 22:37:04 +05:30
Anish Sarkar
5fcaadf60b Merge remote-tracking branch 'upstream/main' into fix/chat-ui 2025-12-19 21:42:26 +05:30
DESKTOP-RTLN3BA\$punk
4d02e8768d chore: biome 2025-12-19 00:45:29 -08:00
Anish Sarkar
79e552520a refactor: remove old chat components and implement new sidebar structure
- Deleted `chats-client.tsx` and `page.tsx` as part of the chat management overhaul.
- Introduced `AllChatsSidebar` and `NavChats` components for improved chat navigation and management.
- Updated sidebar to integrate new chat components and removed the deprecated `NavProjects`.
- Enhanced chat deletion handling and added loading states for better user experience.
- Added new translation keys for chat-related UI strings.
2025-12-19 03:53:40 +05:30
CREDO23
96d937fe2d feat: add query atoms 2025-12-18 23:26:15 +02:00
CREDO23
797a8d4329 feat: add cache keys 2025-12-18 23:08:36 +02:00
CREDO23
4ffd857110 feat: add invitesAtom query atom 2025-12-18 18:29:41 +00:00
CREDO23
920ac210c7 fix: use centralized cache keys instead of hardcoded string 2025-12-18 18:29:41 +00:00
CREDO23
92e2414ff7 feat: add acceptInviteMutationAtom 2025-12-18 18:29:41 +00:00
CREDO23
5e0bc3823c feat: add deleteInviteMutationAtom 2025-12-18 18:29:41 +00:00
CREDO23
9c22ae2da5 feat: add updateInviteMutationAtom for invite updates 2025-12-18 18:29:41 +00:00
CREDO23
3cd9018626 feat: add createInviteMutationAtom for invite creation 2025-12-18 18:29:41 +00:00
CREDO23
03f6efb5aa feat: add myAccessAtom query for user access permissions 2025-12-18 18:29:41 +00:00
CREDO23
fbd5272096 feat: add membersAtom query for fetching members 2025-12-18 18:29:41 +00:00
CREDO23
b20587df60 feat: add leaveSearchSpaceMutationAtom 2025-12-18 18:29:41 +00:00
CREDO23
5f541cf206 feat: add deleteMemberMutationAtom 2025-12-18 18:29:41 +00:00
CREDO23
83a726737a feat: add updateMemberMutationAtom 2025-12-18 18:29:41 +00:00
DESKTOP-RTLN3BA\$punk
c768730b8c feat: fixed issues of note management
Issues Fixed

- Missing pagination fields in API response schemas (page, page_size, has_more)
- NOTE enum missing from frontend Zod schema
- Missing fields in DocumentRead response construction (content_hash, updated_at)
- BlockNote slash menu clipped by overflow-hidden CSS
- Sidebar click conflicts - hidden action buttons intercepting clicks
- Rewrote All Notes sidebar - replaced fragile custom portal with shadcn Sheet
- Missing translation keys for new UI strings
- Missing NOTE retrieval logic in researcher agent
- Added search to All Notes sidebar
- Removed frontend logging - was causing toasters on every page refresh
- Added backend logging to document reindex Celery task
2025-12-17 00:09:43 -08:00
CREDO23
51216f0d04 feat: add roles mutation atoms with improved type safety 2025-12-16 09:07:33 +00:00
CREDO23
c732c5deee feat: add cache keys and permissions query atom for RBAC 2025-12-16 09:07:33 +00:00
CREDO23
cee27f1263 feat: add current user query atom 2025-12-16 05:24:55 +00:00
CREDO23
ccce47846b fix: build issues 2025-12-15 09:55:01 +00:00
CREDO23
862288367d feat: add deleteSearchSpaceMutationAtom 2025-12-15 08:18:35 +00:00
CREDO23
a820598cfd fix: convert id to string for cache key detail function 2025-12-15 08:18:35 +00:00
CREDO23
46061f64ee fix: correct UpdateSearchSpaceRequest structure in mutation atom 2025-12-15 08:18:35 +00:00
CREDO23
d3dd2fc886 feat: add updateSearchSpaceMutationAtom 2025-12-15 08:18:35 +00:00
CREDO23
00b5b7dec8 refactor: merge search space query atoms into single file 2025-12-15 08:18:35 +00:00
CREDO23
2f2898f0c3 refactor: merge seach-spaces and search-spaces folders, fix typo 2025-12-15 08:18:35 +00:00
CREDO23
6bac012474 feat: add createSearchSpaceMutationAtom 2025-12-15 08:18:35 +00:00
CREDO23
fc08f721b0 feat(search-spaces): add communityPromptsAtom and remove obvious comments 2025-12-15 08:18:35 +00:00
CREDO23
b4874111e2 fix(search-spaces): correct pagination params to use skip/limit instead of page/page_size 2025-12-15 08:18:35 +00:00
CREDO23
58a14f422d feat(search-spaces): add searchSpacesAtom query atom for fetching search spaces list 2025-12-15 08:18:35 +00:00
CREDO23
90f4ce61b5 refact: format web project with biome 2025-12-14 20:33:15 +02:00
CREDO23
3a65277e8b feat(llm-config): add llmPreferencesAtom query atom for fetching LLM preferences 2025-12-14 20:22:00 +02:00
CREDO23
5b7e5770be feat: migrate createLLMConfig to jotai mutation atom and add query atoms for LLM configs 2025-12-14 20:20:57 +02:00
CREDO23
0c0491cd49 feat: add updateLLMPreferencesMutationAtom to handle LLM preferences updates 2025-12-14 20:17:27 +02:00
CREDO23
1aa10db910 feat: add deleteLLMConfigMutationAtom and fix cache key usage in all LLM config mutations 2025-12-14 20:17:27 +02:00