Commit graph

4691 commits

Author SHA1 Message Date
Rohan Verma
d8231c2002
Merge pull request #1108 from mvanhorn/perf/throttle-scroll-handlers
perf: throttle scroll handlers with requestAnimationFrame
2026-04-03 08:06:25 -07:00
Rohan Verma
178c77782c
Merge pull request #1085 from AnishSarkar22/feat/local-folder-sync
feat: local folder synchronization with versioning in desktop app & some UX fixes
2026-04-03 08:05:25 -07:00
ArvinFarrelP
fb20b0444f
fix(navbar): remove key prop causing unnecessary remount in mobile navbar 2026-04-03 21:51:08 +07:00
CREDO23
8ba571566d remove uiohook-napi and keystroke monitoring 2026-04-03 16:10:52 +02:00
Anish Sarkar
9c0af6569d feat: implement page limit checks in local folder indexing to manage user page usage 2026-04-03 19:13:25 +05:30
SohamBhattacharjee2003
414c4c86e9 fix: add priority prop to Logo component for LCP optimization on auth pages
- Add optional priority prop to Logo component (defaults to false)
- Set priority=true on login and register pages to preload logo
- Logo on other pages remains lazy-loaded by default
- Improves LCP on critical auth pages by eliminating lazy-load delay
2026-04-03 18:32:13 +05:30
Anish Sarkar
5068a6b4f3 style: update button variant and improve drag-and-drop UI in DocumentUploadTab 2026-04-03 17:52:59 +05:30
Anish Sarkar
edda5b98cb chore: ran linting 2026-04-03 17:38:29 +05:30
Anish Sarkar
b759bb36a9 feat: add direct conversion support for CSV, TSV, and HTML files in local folder indexing 2026-04-03 17:36:48 +05:30
Anish Sarkar
6f4c0d5e6c chore: remove redundant file types description 2026-04-03 17:29:12 +05:30
Anish Sarkar
9d4c2f5b98 refactor: replace span with Dot component in public chat snapshots, model configuration and thread managers 2026-04-03 17:28:12 +05:30
Anish Sarkar
b7f916c4df chore: ran linting 2026-04-03 17:24:34 +05:30
Anish Sarkar
1c50106c81 refactor: simplify file upload logic in DocumentUploadTab by removing file count and size limits; update file size limit messages in multiple languages 2026-04-03 17:24:06 +05:30
sukarxn
416b3635bf fix: optimize image components with next/image
- Replace raw <img> with Next.js Image in markdown-viewer.tsx
- Use next/image with fill + sizes in assistant-ui image.tsx
- Optimize favicons with explicit dimensions in citation components
- Set unoptimized=true for data/blob URLs and external favicons
2026-04-03 17:10:55 +05:30
SohamBhattacharjee2003
4131e6bea9 Optimize tool-fallback by memoizing JSON.stringify to reduce render overhead 2026-04-03 14:49:45 +05:30
SohamBhattacharjee2003
8eaa4e618d perf(hooks): normalize query keys and add placeholderData to optimize thread loading 2026-04-03 14:42:44 +05:30
Soham Bhattacharjee
063e05db92
Merge branch 'dev' into fix/fetch-abort-controller 2026-04-03 14:39:09 +05:30
SohamBhattacharjee2003
8a8e5fcd76 fix(hooks): add AbortController to properly cancel fetch requests on unmount 2026-04-03 14:29:41 +05:30
Anish Sarkar
c964b47f99 style: enhance folder selection UI in DocumentUploadTab 2026-04-03 13:59:33 +05:30
okxint
fc84dcffb0 fix: memoize formatRelativeTime in thread list to prevent unnecessary re-renders 2026-04-03 13:59:14 +05:30
Anish Sarkar
746c730b2e chore: ran linting 2026-04-03 13:14:40 +05:30
Anish Sarkar
6ace8850bb fix: update button alignment in InlineCitation component for consistent styling 2026-04-03 13:10:25 +05:30
Anish Sarkar
8171605fae refactor: remove metadata viewing functionality from FolderNode, FolderTreeView, and DocumentsSidebar components 2026-04-03 13:05:42 +05:30
Matt Van Horn
134beec392 fix: clear upload progress interval on unmount
Store the progress setInterval ID in a ref and clear it in a
useEffect cleanup. Previously the interval was stored in a local
variable and only cleared in onSuccess/onError callbacks, leaking
if the component unmounted mid-upload.

Fixes #1090
2026-04-03 00:05:06 -07:00
Anish Sarkar
388811194e feat: update DocumentUploadTab to use a dropdown for file and folder selection, enhancing user experience; also update upload limits and file size messages in multiple languages 2026-04-03 12:33:47 +05:30
Matt Van Horn
b9b2bac16f fix: clean up onboarding tour timer leaks
Fix two timer cleanup bugs in onboarding-tour.tsx:

1. Remove cleanup return from useCallback (only works in useEffect).
   Clear retryTimerRef at the start of updateTarget and in a
   dedicated useEffect cleanup instead.

2. Track recursive setTimeout calls via startCheckTimerRef so they
   are properly cancelled on unmount instead of leaking.

Fixes #1091
2026-04-02 23:59:15 -07:00
Matt Van Horn
e38a0ff7c3 style: format useEffect cleanup to satisfy biome 2026-04-02 23:43:19 -07:00
Matt Van Horn
3621951f2a perf: throttle scroll handlers with requestAnimationFrame
Wrap scroll handlers in thread.tsx, InboxSidebar.tsx, and
DocumentsTableShell.tsx with requestAnimationFrame batching so scroll
position state updates fire at most once per animation frame instead of
on every scroll event (up to 60/sec at 60fps). Add cleanup useEffect to
cancel pending frames on unmount.

Fixes #1103
2026-04-02 23:21:57 -07:00
Anish Sarkar
3833084dad feat: changed the revision number of folder alembic migration 2026-04-03 11:45:53 +05:30
Anish Sarkar
62b44889d1 Merge remote-tracking branch 'upstream/dev' into feat/local-folder-sync 2026-04-03 11:42:43 +05:30
Anish Sarkar
525fae5abf feat: trigger document reindexing after restoring a document version to ensure content is up-to-date 2026-04-03 11:19:54 +05:30
Anish Sarkar
79f19b9bc6 fix: adjust layout in DocumentsSidebar for improved UI responsiveness and interaction, including changes to button styles and positioning 2026-04-03 11:10:46 +05:30
Anish Sarkar
ca250910c0 fix: update version history messages for clarity by removing unnecessary punctuation 2026-04-03 10:56:43 +05:30
Anish Sarkar
4ca0787ab7 feat: add version history functionality to document management, enabling users to view and manage document versions through UI updates and backend integration 2026-04-03 10:42:21 +05:30
Anish Sarkar
19dfd9f907 feat: enhance folder synchronization by adding max wait time and batch size limits for processing file events 2026-04-03 10:13:46 +05:30
Anish Sarkar
2b9d79d44c feat: add integration tests for batch processing of local folder indexing, covering multiple file scenarios and error handling 2026-04-03 10:04:14 +05:30
Anish Sarkar
1fa8e1cc83 feat: refactor folder indexing to support batch processing of multiple files, enhancing performance and error handling 2026-04-03 10:02:36 +05:30
Anish Sarkar
e2ba509314 feat: enhance error handling in local folder indexing by adding rollback and refresh on IntegrityError 2026-04-03 09:29:59 +05:30
Anish Sarkar
9a65163fe4 feat: improve DocumentUploadTab UI with updated styles, enhanced file size limit messages 2026-04-03 09:20:44 +05:30
Rohan Verma
c2bd2bc935
Merge pull request #1107 from MODSetter/dev
chore: optimize zero publication column migration process
2026-04-02 20:40:04 -07:00
DESKTOP-RTLN3BA\$punk
c1c4c534c0 Merge branch 'dev' of https://github.com/MODSetter/SurfSense into dev 2026-04-02 20:38:19 -07:00
DESKTOP-RTLN3BA\$punk
6b06d3abb1 chore: optimize zero publication column migration process
- Updated migration instructions to emphasize the importance of stopping zero-cache before and after running the migration.
- Added a function to terminate blocked PIDs that could interfere with the migration.
- Set a lock timeout to prevent deadlocks during the migration process.
2026-04-02 20:38:10 -07:00
DESKTOP-RTLN3BA\$punk
e13ca675d9 chore: optimize zero publication column migration process
- Updated migration instructions to emphasize the importance of stopping zero-cache before and after running the migration.
- Added a function to terminate blocked PIDs that could interfere with the migration.
- Set a lock timeout to prevent deadlocks during the migration process.
2026-04-02 20:26:34 -07:00
Rohan Verma
37e335da70
Merge pull request #1106 from MODSetter/dev
feat: Frontend performance optimizations, bundle improvements & backend doc upload refactor
2026-04-02 20:22:56 -07:00
Rohan Verma
e2d921dd47
Merge pull request #1105 from MODSetter/dev_mod
feat: improved long docs handling
2026-04-02 20:09:46 -07:00
DESKTOP-RTLN3BA\$punk
9a370a37d4 docs: update README files to highlight SurfSense advantages over NotebookLM
- Expanded sections detailing limitations of NotebookLM.
- Added comparison table between SurfSense and Google NotebookLM.
- Enhanced descriptions of SurfSense features and capabilities.
- Updated example links and images for better clarity and relevance.
2026-04-02 20:06:02 -07:00
DESKTOP-RTLN3BA\$punk
eb17850274 chore: linting 2026-04-02 19:45:28 -07:00
DESKTOP-RTLN3BA\$punk
62e698d8aa refactor: streamline document upload limits and enhance handling of mentioned documents
- Updated maximum file size limit to 500 MB per file.
- Removed restrictions on the number of files per upload and total upload size.
- Enhanced handling of user-mentioning documents in the knowledge base search middleware.
- Improved document reading and processing logic to accommodate new features and optimizations.
2026-04-02 19:39:10 -07:00
Anish Sarkar
fe7fcaae5d feat: update folder deletion process to queue document deletions first and handle folder cleanup in Celery task 2026-04-03 04:16:19 +05:30
Anish Sarkar
44e39792da feat: assign folder_id to documents before indexing to ensure correct folder visibility during processing 2026-04-03 04:14:28 +05:30