Commit graph

656 commits

Author SHA1 Message Date
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
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
CREDO23
e38b925c2a refact: migrate all add connector page to jotai+tnstack 2025-12-19 00:32:59 +02: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
cd5b6becce refact: migrate all add connector page to jotai+tnstack 2025-12-19 00:19:15 +02:00
CREDO23
60c09687ab feat: migrate indexconnector handler 2025-12-18 23:42:45 +02:00
CREDO23
3c6f50fa8f feat: migrate updateconnector handler 2025-12-18 23:39:38 +02:00
CREDO23
6913a7b59f feat: migrate deleteconnector handler 2025-12-18 23:36:55 +02:00
CREDO23
68fe4daea1 feat: migrate get connectors handlers 2025-12-18 23:30:17 +02:00
CREDO23
9c378550ba refactor: complete RBAC migration cleanup - remove unused hooks and fix type imports 2025-12-18 18:37:26 +00:00
CREDO23
1c00e6f12e fix: update invite schemas to match backend and fix cache key reference 2025-12-18 18:36:32 +00:00
CREDO23
74c7e5e7b3 feat: migrate useUserAccess to myAccessAtom in client-layout 2025-12-18 18:36:32 +00:00
CREDO23
bce8340750 feat: migrate useUserAccess to myAccessAtom in team page 2025-12-18 18:36:32 +00:00
CREDO23
18ac6bf0c5 feat: remove unused useInvites hook references from team page 2025-12-18 18:36:32 +00:00
CREDO23
0d2f58001b feat: migrate revokeInvite to deleteInviteMutationAtom in team page 2025-12-18 18:36:32 +00:00
CREDO23
15541b71c9 feat: migrate createInvite to createInviteMutationAtom in team page 2025-12-18 18:36:32 +00:00
CREDO23
82b06d42c2 feat: migrate invites fetch query to useQuery in team page 2025-12-18 18:36:32 +00:00
CREDO23
6e288a59fb feat: migrate removeMember to deleteMemberMutationAtom in team page 2025-12-18 18:34:00 +00:00
CREDO23
7bb840b62a feat: migrate updateMemberRole to handleUpdateMember using jotai + tanstack query 2025-12-18 18:33:36 +00:00
CREDO23
3fc3016474 feat: migrate members fetch to membersAtom in team page 2025-12-18 18:30:49 +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
Rohan Verma
3c3527d498
Merge pull request #590 from CREDO23/feat/add-jotai-tanstack-rbac
[Feat] RBAC | Add jotai & tanstack
2025-12-16 22:45:46 -08:00
Rohan Verma
f18425d739
Merge pull request #589 from AnishSarkar22/feature/note-management
Feature: Note Management system
2025-12-16 22:44:57 -08:00
Anish Sarkar
8bb3c854ee feat: implement logging for document fetch and save operations in editor
Fetch:
1. Fetch error (HTTP) - ERROR
2. Missing BlockNote content - WARNING
3. Fetch success - INFO
4. Fetch exception - ERROR

Save:
5. New note save error - ERROR
6. New note created - INFO
7. Existing doc save error - ERROR
8. Existing doc saved - INFO
9. Save exception - ERROR
2025-12-17 02:04:57 +05:30
Anish Sarkar
4cef8cc93f feat: enhance validation and formatting in editor and sidebar components 2025-12-16 21:27:31 +05:30
Anish Sarkar
e8e393a0d5 fix: fixed linting for some files 2025-12-16 20:25:50 +05:30
Anish Sarkar
82d8320928 feat: enhance sidebar and editor functionality
- Updated AllNotesSidebar to render via portal for improved stacking context.
- Refactored sidebar styles and behavior for better user experience.
- Modified AppSidebarProvider to limit recent notes to 5 and sort by updated date.
- Improved editor page to handle document state updates and query invalidation on note creation.
- Added loading messages to translations for better user feedback during operations.
2025-12-16 20:14:54 +05:30
Anish Sarkar
e9d3d36dfc feat: improve note editing and creation workflow
- Enhanced the editor to handle new note creation directly, initializing with an empty state.
- Updated save functionality to create a note first if it's new, followed by saving the content.
- Modified breadcrumb navigation to accommodate new notes and improve user experience.
- Removed the old note creation page to streamline the editing process.
- Added error handling and dynamic title updates for better feedback during note creation.
2025-12-16 18:46:18 +05:30
CREDO23
78035a6e90 fix: update team page implementation 2025-12-16 09:07:33 +00:00
CREDO23
0397f716f8 chore: add TODO for edit role dialog implementation 2025-12-16 09:07:33 +00:00
CREDO23
5b85b1d090 fix: use correct groupedPermissions logic matching original implementation 2025-12-16 09:07:33 +00:00
CREDO23
55d204e05b fix: complete usePermissions migration to permissionsAtom in team page 2025-12-16 09:07:33 +00:00
CREDO23
b4cdf2dcc1 refactor: migrate deleteRole to use mutation atom and remove useRoles dependency in team page 2025-12-16 09:07:33 +00:00
CREDO23
cbe6a05253 refactor: migrate updateRole to use mutation atom in team page 2025-12-16 09:07:33 +00:00
CREDO23
7d89fea31d refactor: migrate createRole to use mutation atom with proper types in team page 2025-12-16 09:07:33 +00:00
CREDO23
635be2b4e6 refactor: migrate team page to use React Query for permissions and roles fetching 2025-12-16 09:07:33 +00:00
CREDO23
f69b49e4c0 fix: add type assertions for Motion animation properties in team page 2025-12-16 09:07:33 +00:00
Anish Sarkar
e1e813702a feat: enhance note creation and editing experience
- Added dynamic title extraction from the first block of BlockNote documents for NOTE type.
- Updated editor routes to support new note creation with a BlockNote editor.
- Implemented unsaved changes dialog for better user experience when navigating away from the editor.
- Refactored BlockNoteEditor to ensure the first block is a heading when creating new notes.
- Removed the old note creation page in favor of the new streamlined editor experience.
2025-12-16 13:57:06 +05:30
Anish Sarkar
8eceb7a5cb feat: add note management functionality with BlockNote support
- Introduced a new ENUM value 'NOTE' for document types in the database.
- Implemented backend routes for creating, listing, and deleting notes.
- Added a new frontend page for creating notes with a BlockNote editor.
- Updated sidebar to include recent notes and an option to add new notes.
- Enhanced API service for notes with validation and request/response schemas.
- Updated translations to support new note-related terms.
2025-12-16 12:28:30 +05:30
CREDO23
6b266ff128 refactor: migrate dashboard page from useUser to currentUserAtom 2025-12-16 05:26:43 +00:00
CREDO23
734265c645 feat: migrate dashboard page to use searchSpacesAtom and deleteSearchSpaceMutationAtom 2025-12-15 08:18:35 +00:00
CREDO23
4aa026cae4 feat: migrate searchspaces page to use createSearchSpaceMutationAtom 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
DESKTOP-RTLN3BA\$punk
7de87ada81 chore: recurse 2025-12-14 22:32:13 -08:00
CREDO23
90f4ce61b5 refact: format web project with biome 2025-12-14 20:33:15 +02:00
CREDO23
be381c833e cleanup 2025-12-14 20:22:00 +02:00
CREDO23
ce90672250 chore: commit all changes 2025-12-14 20:22:00 +02:00
CREDO23
eb448d8a5b refactor: migrate client-layout.tsx from useLLMPreferences hook to jotai atoms 2025-12-14 20:22:00 +02:00