Commit graph

66 commits

Author SHA1 Message Date
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
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
CREDO23
737169248e feat: add updateLLMConfigMutationAtom to llm-config mutations 2025-12-14 20:17:27 +02:00
CREDO23
2200d7b63c feat: add LLM config cache keys and create mutation atom 2025-12-14 20:17:27 +02:00
DESKTOP-RTLN3BA\$punk
ede9dd010b fix: recurse 2025-12-10 14:46:26 -08:00
CREDO23
e7982ead4e feat: replace getDocumentTypeCounts with useQuery implementation (10min stale time) 2025-12-08 11:02:01 +00:00
CREDO23
7f80c9c408 feat: migrate document upload to use jotai + tanstack query mutation atom
- Replace imperative fetch API with uploadDocumentMutationAtom in DocumentUploadTab
- Maintain backward compatibility with existing UI behavior
- Remove unused document query atoms from document-query.atoms.ts
- Use mutation state (isPending) for loading state management
- Preserve progress animation and error handling
2025-12-08 11:02:01 +00:00
thierryverse
ed07699ffc add documents queries & mutations atoms 2025-12-08 11:02:00 +00:00
DESKTOP-RTLN3BA\$punk
b2a97b39ce refactor: centralize authentication handling
- Replaced direct localStorage token access with a centralized `getBearerToken` function across various components and hooks to improve code maintainability and security.
- Updated API calls to use `authenticatedFetch` for consistent authentication handling.
- Enhanced user experience by ensuring proper redirection to login when authentication fails.
- Cleaned up unused imports and improved overall code structure for better readability.
2025-12-02 01:24:09 -08:00
thierryverse
0ea974316b update generate podcast mutation 2025-11-20 08:17:57 +02:00
thierryverse
1cf36c6e6c Add create chat mutation 2025-11-20 08:17:57 +02:00