Commit graph

4407 commits

Author SHA1 Message Date
Universe Creator
fe744c8d8d fix: Memoize formatRelativeTime per thread item
- Wrap formatRelativeTime call in useMemo with thread.updatedAt dependency
- Prevents creating new Date() on every render for each thread item
- Improves thread list rendering performance

Fixes: #1100
2026-04-04 05:44:17 +03:00
universe7creator
24a2406860 fix: Clear stagger toast timers on unmount in AnnouncementToastProvider
Fixes #1094 - Track inner timer IDs and clear all in cleanup to prevent setState on unmounted component.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-04 04:59:22 +03:00
ClawdBot
805eacb9fc fix(react): Add cancelAnimationFrame cleanup in useEffect
- Add cleanup function to cancel animation frame on unmount
- Prevents potential memory leaks and setState on unmounted component
- Closes #1093
2026-04-04 02:25:56 +03:00
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
Rohan Verma
6727266107
Merge pull request #1083 from SohamBhattacharjee2003/fix/bundle-barrel-imports
fix: bundle barrel imports
2026-04-02 12:49:05 -07:00
Rohan Verma
2195d894d4
Merge pull request #1082 from SohamBhattacharjee2003/fix/hoist-regexp-in-comment-composer
fix: hoist regexp in comment composer
2026-04-02 12:48:38 -07:00
Rohan Verma
38f270354a
Merge pull request #1081 from SohamBhattacharjee2003/fix/remove-unused-user-atom
fix: remove unused currentUserAtom import
2026-04-02 12:47:58 -07:00
SohamBhattacharjee2003
0cd2b8164d fix(ui): use scoped radix-ui imports to optimize bundle 2026-04-02 13:41:51 +05:30
SohamBhattacharjee2003
f1be2652a0 fix(comment-composer): hoist RegExp out of loop to satisfy js-hoist-regexp rule 2026-04-02 13:31:48 +05:30
SohamBhattacharjee2003
ccd0e3b807 fix(connector-popup): remove unused currentUserAtom import 2026-04-02 13:16:55 +05:30
Rohan Verma
55819b7d88
Merge pull request #1080 from ChisomUma/main
refactor: Converted disabledTools to Set for O(1) membership checks
2026-04-01 23:59:51 -07:00
Rohan Verma
c70f3338dd
Merge pull request #1078 from SohamBhattacharjee2003/perf/defer-search-params-reads
perf: add content-visibility: auto to long list items
2026-04-01 22:19:41 -07:00
Rohan Verma
23a8248c5e
Merge pull request #1077 from SohamBhattacharjee2003/perf/content-visibility-auto-lists
perf: content visibility auto lists
2026-04-01 22:18:23 -07:00
Rohan Verma
5690a96e79
Merge pull request #1076 from SohamBhattacharjee2003/perf/use-deferred-value-search-filters
perf: use useDeferredValue for search/filter transitions
2026-04-01 22:16:53 -07:00
Chisom Uma
6163503501 refactor: Converted disabledTools to Set for O(1) membership checks 2026-04-01 23:09:57 +00:00
SohamBhattacharjee2003
767c97682d perf: replace useSearchParams() with window.location.search in effects
Components were calling useSearchParams() at the top level but only
reading the value inside useEffect or callbacks, never in JSX. This
subscribed the entire component tree to every URL query change.

Fix: read from window.location.search directly inside the effect so
no React subscription is created.

Changes:
- new-chat/page.tsx: read commentId inside effect + popstate listener
  for SPA back/forward support; removes subscription from 1500+ line tree
- dashboard/page.tsx: read window.location.search at redirect time;
  removes searchParams from dep array
- public-chat-footer.tsx: one-shot mount read for action=clone param
- TokenHandler.tsx: one-shot mount read for token + refresh_token params

Implements Vercel React Best Practices Rule: rerender-defer-reads (5.2)
2026-04-02 02:45:46 +05:30
SohamBhattacharjee2003
ae3b69443f perf: add content-visibility: auto to long list items
Apply content-visibility: auto to off-screen list and sidebar items
to skip browser layout and painting until they scroll into view.

Changes:
- globals.css: add .list-item-lazy (48px) and .sidebar-item-lazy (40px) utilities
- DocumentsTableShell: apply list-item-lazy to desktop <tr> rows and mobile card divs
- AllPrivateChatsSidebar: apply sidebar-item-lazy to thread items
- AllSharedChatsSidebar: apply sidebar-item-lazy to thread items
- InboxSidebar: apply content-visibility inline (80px intrinsic height) to inbox items

Implements Vercel React Best Practices Rule: rendering-content-visibility (6.2)
2026-04-02 02:26:55 +05:30
SohamBhattacharjee2003
5bfeda62f2 perf: use useDeferredValue for search/filter transitions
- prompt-picker: defer externalSearch before filtering prompt list
- document-mention-picker: defer debouncedSearch for client-side single-char filtering
- InboxSidebar: defer activeSource.items and searchResponse.items before filteredItems memo

Keeps search inputs responsive under React 18 Concurrent Mode by marking
expensive filtering computations as non-urgent updates (rule: rerender-transitions 5.11)
2026-04-02 01:45:18 +05:30
Rohan Verma
a67e72d159
Merge pull request #1074 from JoeMakuta/feature/js-index-maps-optimization
feat: implement map and find optimization
2026-04-01 13:07:40 -07:00
Rohan Verma
4d501be034
Merge pull request #1072 from JoeMakuta/feature/defer-react-query-devtools
feat: add dynamic import  and dev only render of ReactQueryClientProvider
2026-04-01 13:05:52 -07:00
Rohan Verma
b5ee177f2e
Merge pull request #1071 from JoeMakuta/feature/optimize-package-imports
feature : optimize package imports
2026-04-01 13:03:56 -07:00
Rohan Verma
71a5b40513
Merge pull request #1075 from SohamBhattacharjee2003/fix/deduplicate-getpage-cache
fix: deduplicate getpage cache
2026-04-01 13:03:16 -07:00
Rohan Verma
e1a73c9d40
Merge pull request #1073 from bluehyena/fix/issue-1046-immutable-sort
fix: avoid mutating shared arrays in changelog and comments sync issue 1046 immutable sort
2026-04-01 13:02:30 -07:00
SohamBhattacharjee2003
0fa4939a71 fix: use React.cache() to deduplicate getPage calls 2026-04-02 01:06:37 +05:30
JoeMakuta
03a24686fe feat: implement map and find optimization 2026-04-01 18:47:57 +02:00
Jun Hyeok Lee
663096a074 chore: format issue 1046 frontend changes 2026-04-01 23:23:36 +09:00
JoeMakuta
e6ec589e12 feat: add dynamic import and dev only render of ReactQueryClientProvider 2026-04-01 16:10:27 +02:00
Jun Hyeok Lee
a42d4d219b fix: avoid mutating shared arrays in changelog and comments sync 2026-04-01 23:03:52 +09:00
JoeMakuta
0a65aa1a31 feat: dynamic import of PostHog 2026-04-01 15:59:11 +02:00
JoeMakuta
fc4f9ba7c0 refac: import of UI components for dropdown menu, separator, toggle group, toggle, tooltip, and checkbox 2026-04-01 15:41:11 +02:00
JoeMakuta
8a8af948db feat: add experimental package import optimization configuration 2026-04-01 13:07:27 +02:00
Rohan Verma
0811f9f252
Merge pull request #1070 from MODSetter/dev
fix: make migration 109 idempotent
2026-04-01 02:20:42 -07:00
Rohan Verma
b1631cd6f1
Merge pull request #1069 from CREDO23/fix/zero-cache
[Fix] Make migration 109 idempotent
2026-04-01 02:19:53 -07:00
CREDO23
2a809d0418 fix: make migration 109 idempotent 2026-04-01 11:12:21 +02:00
Rohan Verma
6c87840365
Merge pull request #1068 from CREDO23/fix/zero-cache
[Fix] zero-cache startup crash on high-core machines & restrict replication to needed tables
2026-04-01 01:43:35 -07:00
CREDO23
10e0e733af fix: configure zero-cache sync workers, connection limits, and publication 2026-04-01 10:18:51 +02:00
CREDO23
cd1bb79db8 feat: add migration to create zero_publication for zero-cache 2026-04-01 09:56:33 +02:00
Rohan Verma
deccbca506
Merge pull request #1067 from MODSetter/dev
feat: OneDrive & Dropbox connectors, desktop quick-ask, prompt library, and UX improvements
2026-03-31 23:10:43 -07:00
DESKTOP-RTLN3BA\$punk
c21d7dac3f feat: update README files to include OneDrive and Dropbox as external sources 2026-03-31 22:36:58 -07:00
DESKTOP-RTLN3BA\$punk
f9a79d5a5f feat: add Stripe configuration options for docker 2026-03-31 22:26:47 -07:00
Rohan Verma
63ec4be46c
Merge pull request #1066 from MODSetter/dev_mod
feat: bumped version to 0.0.14
2026-03-31 21:46:49 -07:00
DESKTOP-RTLN3BA\$punk
529af2be39 feat: bumped version to 0.0.14 2026-03-31 21:45:18 -07:00