Commit graph

3935 commits

Author SHA1 Message Date
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
CREDO23
f92b1ab4d5 chore: add .pnpm-store to .gitignore 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
CREDO23
6c43e8aa09 fix (migration1): add 'if not exixst' guard 2025-12-08 11:02:01 +00:00
CREDO23
509ef211fa fix (migration 43): Add an 'if not exists' guard 2025-12-08 11:02:00 +00:00
CREDO23
1d8cfbb143 fix (migration 40): Add an 'if not exists' guard 2025-12-08 11:02:00 +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
Rohan Verma
2cf9fa7a39
Merge pull request #539 from MODSetter/dev
fix: add dos2unix to Dockerfile to handle line endings for entrypoint…
2025-12-07 02:01:54 -08:00
DESKTOP-RTLN3BA\$punk
3c5efee252 fix: add dos2unix to Dockerfile to handle line endings for entrypoint script 2025-12-07 02:01:09 -08:00
Rohan Verma
80dc2178ce
Merge pull request #538 from MODSetter/dev
fix: backend container fails with missing entrypoint when built locally
2025-12-06 21:32:47 -08:00
DESKTOP-RTLN3BA\$punk
bdffb17505 fix: backend container fails with missing entrypoint when built locally 2025-12-06 21:31:32 -08:00
Rohan Verma
e1e14c7ab6
Merge pull request #534 from ankitpasayat/fix/retriever-typo
fix(backend): rename retriver directory to retriever
2025-12-06 17:54:18 -08:00
Rohan Verma
1ef725fdb8
Merge pull request #528 from unitagain/feat/bookstack-connector
feat: add BookStack connector for wiki documentation indexing
2025-12-06 17:49:49 -08:00
Ankit Pasayat
b30f53bf0b fix(backend): rename retriver directory to retriever
Fixes typo in directory name and updates all import paths:
- Renamed surfsense_backend/app/retriver/ to surfsense_backend/app/retriever/
- Updated imports in db.py
- Updated imports in connector_service.py
2025-12-06 22:21:30 +05:30
Differ
71d7856565 fix: update migration id from 39 to 44 after syncing with upstream 2025-12-06 09:16:24 +08:00
Differ
e238fab638 Merge remote-tracking branch 'upstream/main' into feat/bookstack-connector 2025-12-06 09:15:02 +08:00
Rohan Verma
601489bec2
Merge pull request #525 from CREDO23/refactor/jira-connector-migrate-tot-rest-v3
[Refactor] Jira Connector | Migrate to atlassian rest api v3
2025-12-05 12:14:46 -08:00
Rohan Verma
d29bd6c12f
Merge pull request #530 from MODSetter/dev
fix: implement real-time streaming for responses
2025-12-05 00:20:32 -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
0457e9f735 feat: add alembic migration for BOOKSTACK_CONNECTOR enum 2025-12-05 15:38:38 +08:00
Rohan Verma
264532b3cf
Merge pull request #526 from waychan23/main
fix: copying api key to the clipboard fails in http context
2025-12-04 23:28:22 -08:00
Differ
22926ce23b style: format frontend files with biome 2025-12-05 10:05:10 +08:00
Differ
500bc60d02 fix: add input validation, retry limit, code formatting, and exclude i18n from secret detection 2025-12-05 09:58:49 +08:00
CREDO23
803f792a9d clean up 2025-12-04 12:55:19 +02:00
CREDO23
521cea3ef0 update query parmas for get issues by date range method 2025-12-04 12:53:18 +02: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
Rohan Verma
9bbea0ba0e
Merge pull request #523 from MODSetter/dev
security: fix CVE-2025-66478
2025-12-03 17:54:34 -08:00
DESKTOP-RTLN3BA\$punk
f76a94d9a9 security: fix CVE-2025-66478 2025-12-03 17:54:03 -08:00
Rohan Verma
5c113cb24b
Merge pull request #522 from waychan23/main
fix: retrieve wrong field for content in saving extension document.
2025-12-03 16:45:10 -08:00
WayChan
3c423436cc fix: retrieve wrong field for content in saving extension document. 2025-12-04 00:31:50 +00:00