Commit graph

1380 commits

Author SHA1 Message Date
DESKTOP-RTLN3BA\$punk
b8478f2ec0 chore: improved configuration management and logging 2025-12-09 00:53:55 -08:00
DESKTOP-RTLN3BA\$punk
5b0d2f82e6 try: docker all in one image 2025-12-08 20:45:20 -08:00
CREDO23
1d49378363 fix: improve scroll behavior and add missing import in SourceDetailSheet
- Added useLayoutEffect import
- Fixed scroll to highlighted chunk behavior
- Added open dependency to useEffect for proper re-triggering
2025-12-08 11:02:01 +00:00
CREDO23
55502579e1 fix: minor type adjustments and cleanup
- Added missing Document type export
- Fixed typeCounts usage in DocumentsTable
- Minor formatting adjustments in DocumentsDataTable
2025-12-08 11:02:01 +00:00
CREDO23
ede7020b61 refactor: replace imperative deleteDocument with mutation atom
- Replaced deleteDocument from useDocuments with deleteDocumentMutationAtom
- Removed unused useDocuments hook completely
- Updated DocumentsTable to use mutation atom for single and bulk deletes
- Maintains backward compatibility with existing delete functionality
2025-12-08 11:02:01 +00:00
CREDO23
8140a5fb6e fix: handle error states from useQuery in DocumentsTable 2025-12-08 11:02:01 +00:00
CREDO23
b8d629da71 fix: update DocumentsFilters type definitions and complete migration cleanup
- Updated type definitions in DocumentsFilters to use DocumentTypeEnum
- Fixed type consistency across activeTypes and onToggleType props
- Final cleanup of DocumentsTable migration to React Query
2025-12-08 11:02:01 +00:00
CREDO23
e7982ead4e feat: replace getDocumentTypeCounts with useQuery implementation (10min stale time) 2025-12-08 11:02:01 +00:00
CREDO23
42e10bbe55 feat: add useQuery implementation for document fetching in DocumentsDataTable with 3-minute stale time 2025-12-08 11:02:01 +00:00
CREDO23
bccbd65333 refactor: migrate document types fetch to jotai + tanstack query
- Replace useDocumentTypes hook with documentTypeCountsAtom in ChatInputGroup
- Replace useDocumentTypes hook with documentTypeCountsAtom in researcher page
- Delete obsolete use-document-types.ts hook
- Transform atom response to maintain backward compatibility
2025-12-08 11:02:01 +00:00
CREDO23
e5d1598270 refactor: remove unused use-document-by-chunk hook
- Delete use-document-by-chunk.ts file
- Remove export from hooks index
- Hook has been replaced with useQuery implementation in SourceDetailSheet
2025-12-08 11:02:01 +00:00
CREDO23
5ad9e718d1 refactor: migrate YouTube tab to use jotai + tanstack query mutation
- Replace imperative authenticatedFetch with createDocumentMutationAtom
- Use mutation's isPending state instead of local isSubmitting state
- Maintain backward compatibility with existing UI behavior
- Keep all validation, error handling, and toast notifications
- Remove dependency on auth-utils for API calls
2025-12-08 11:02:01 +00:00
CREDO23
034e42e15e refactor: update SourceDetailSheet to use useQuery with centralized cache keys
- Replace useDocumentByChunk hook with useQuery implementation
- Use descriptive variable names (isDocumentByChunkFetching, documentByChunkFetchingError)
- Integrate with centralized cache key management
- Update all loading and error state references
- Add 5-minute stale time for document queries
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
CREDO23
ecb48ddb03 refactor: replace useDocumentByChunk with useQuery implementation in SourceDetailSheet
- Remove useDocumentByChunk hook dependency
- Use useQuery with centralized cache keys and descriptive variable names
- Replace all document, loading, and error references with new implementation
- Remove manual fetch/clear effects as useQuery handles lifecycle automatically
2025-12-08 11:02:01 +00:00
CREDO23
9bff7a619f refactor: use descriptive variable names for useQuery destructuring in SourceDetailSheet 2025-12-08 11:02:01 +00:00
CREDO23
013bb1547d feat: add useQuery implementation with centralized cache key management in SourceDetailSheet 2025-12-08 11:02:01 +00:00
Thierry CH.
074c71aec3 Improve request validation in searchDocuments
Refactor error handling for searchDocuments method.
2025-12-08 11:02:01 +00:00
Thierry CH.
8bf7957827 Improve request validation for uploadDocument
Refactor error handling for document upload requests.
2025-12-08 11:02:01 +00:00
Thierry CH.
3ce1ec8225 Clean up comments in createDocument method
Removed unnecessary comments in createDocument function.
2025-12-08 11:02:01 +00:00
Thierry CH.
ccea51084c Refactor request validation in getDocument method 2025-12-08 11:02:01 +00:00
Thierry CH.
9cd3756c2f Refactor request validation in getDocuments method 2025-12-08 11:02:01 +00:00
thierryverse
ed07699ffc add documents queries & mutations atoms 2025-12-08 11:02:00 +00:00
thierryverse
5a887e9243 add documents api service 2025-12-08 11:02:00 +00:00
thierryverse
6378d27bcb add delete document request / response zod schema 2025-12-08 11:02:00 +00:00
thierryverse
dd652e36fc add update document request / response zod schema 2025-12-08 11:02:00 +00:00
thierryverse
0fa969925a add get document request / response zod schema 2025-12-08 11:02:00 +00:00
thierryverse
557e736a53 add get document by chunks request / response zod schema 2025-12-08 11:02:00 +00:00
thierryverse
6f3b34f38c add getdocuments types counts request / response zod schema 2025-12-08 11:02:00 +00:00
thierryverse
e7693bd19f add seach documents request / response zod schema 2025-12-08 11:02:00 +00:00
thierryverse
e237caf91a add upload document request / response zod schema 2025-12-08 11:02:00 +00:00
thierryverse
02ea730ab8 createdocuments reques / response zod schema 2025-12-08 11:02:00 +00:00
thierryverse
fc915fec13 getdocuments reques / response zod schema 2025-12-08 11:02:00 +00:00
Differ
e238fab638 Merge remote-tracking branch 'upstream/main' into feat/bookstack-connector 2025-12-06 09:15:02 +08:00
DESKTOP-RTLN3BA\$punk
481ec5533b chore: biome checks 2025-12-05 00:17:31 -08:00
DESKTOP-RTLN3BA\$punk
c97887a63d fix: implement real-time streaming for responses
- Added streaming service support to the Q&A agent for real-time token streaming.
- Updated `answer_question` method to stream responses token-by-token to the frontend.
- Modified `handle_qna_workflow` to handle both custom and values streaming modes.
- Enhanced state management to include streaming service for improved user experience.
2025-12-05 00:14:36 -08:00
Differ
22926ce23b style: format frontend files with biome 2025-12-05 10:05:10 +08:00
waychan23
5a4a786034 fix: copying api key to the clipboard fails when the page is accessed via insecure connection(http without tls). Fixed by adding a fallback method for copy text to clipboard. 2025-12-04 18:18:52 +08:00
Differ
6b1b8d0f2e feat: add BookStack connector for wiki documentation indexing 2025-12-04 14:08:44 +08:00
DESKTOP-RTLN3BA\$punk
f76a94d9a9 security: fix CVE-2025-66478 2025-12-03 17:54:03 -08: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
DESKTOP-RTLN3BA\$punk
9c858a520d refactor: enhance onboarding experience
- Replaced the completion step component with a more streamlined onboarding page that includes action cards for managing teams, adding sources, and starting chats.
- Updated the search space form to make the description field optional and improved validation messages.
- Adjusted the onboarding logic to support auto-configuration of LLM roles and improved loading states.
- Removed unused imports and components to clean up the codebase.
2025-12-02 00:05:28 -08:00
DESKTOP-RTLN3BA\$punk
5587b1270e fix: update API endpoint for fetching editor content
- Changed the API URL in the DashboardBreadcrumb component to include search space ID for fetching editor content, ensuring correct context is used when accessing documents.
2025-11-30 15:15:27 -08:00
DESKTOP-RTLN3BA\$punk
ea94c778c9 refactor: streamline document actions
- Simplified the RowActions component by removing unused imports and replacing the dropdown menu with tooltip buttons for editing, viewing metadata, and deleting documents.
- Updated the JsonMetadataViewer component to support controlled mode for better integration with the RowActions component.
- Adjusted CSS variables for destructive actions in globals.css for improved visual consistency.
2025-11-30 15:06:48 -08:00
DESKTOP-RTLN3BA\$punk
d0c7be7eca feat: update document editor routes to include search space context
- Modified API endpoints to include search space ID in the URL for fetching and saving documents.
- Added permission checks for reading and updating documents based on search space.
2025-11-30 14:27:27 -08:00
Anish Sarkar
b98c312fb1 Merge remote-tracking branch 'upstream/main' into feature/blocknote-editor 2025-11-30 04:10:49 +05:30
Anish Sarkar
f8e4926969 feat: Implement document saving with reindexing
- Updated the document saving endpoint to trigger reindexing after saving.
- Introduced a new Celery task for reindexing documents.
- Refactored the editor page to reflect the changes in the API endpoint and method.
2025-11-30 04:08:12 +05:30
Anish Sarkar
91bc344b56 feat: Added celery tasks to populate blocknote_document for existing documents 2025-11-30 03:49:43 +05:30
Anish Sarkar
e33b42f9a5 refactor: removed auto-save functionality in editor page 2025-11-30 02:37:13 +05:30
DESKTOP-RTLN3BA\$punk
73937f830e chore: updated pricing section 2025-11-28 23:43:03 -08:00