Rohan Verma
ee043df942
Merge pull request #1135 from tmchow/fix/1053-passive-event-listeners
...
Build and Push Docker Images / tag_release (push) Has been cancelled
Build and Push Docker Images / build (./surfsense_backend, ./surfsense_backend/Dockerfile, backend, surfsense-backend, ubuntu-24.04-arm, linux/arm64, arm64) (push) Has been cancelled
Build and Push Docker Images / build (./surfsense_backend, ./surfsense_backend/Dockerfile, backend, surfsense-backend, ubuntu-latest, linux/amd64, amd64) (push) Has been cancelled
Build and Push Docker Images / build (./surfsense_web, ./surfsense_web/Dockerfile, web, surfsense-web, ubuntu-24.04-arm, linux/arm64, arm64) (push) Has been cancelled
Build and Push Docker Images / build (./surfsense_web, ./surfsense_web/Dockerfile, web, surfsense-web, ubuntu-latest, linux/amd64, amd64) (push) Has been cancelled
Build and Push Docker Images / create_manifest (backend, surfsense-backend) (push) Has been cancelled
Build and Push Docker Images / create_manifest (web, surfsense-web) (push) Has been cancelled
perf: add passive option to scroll and touch event listeners
2026-04-05 13:34:03 -07:00
Rohan Verma
d95bce1bf1
Merge pull request #1123 from SohamBhattacharjee2003/fix-timeout-leak
...
fix: resolve setTimeout memory leak on unmounted component
2026-04-05 13:29:02 -07:00
Rohan Verma
1e0cf21d4a
Merge pull request #1122 from okxint/fix/memoize-format-relative-time
...
fix: memoize formatRelativeTime in thread list
2026-04-05 13:27:46 -07:00
Rohan Verma
4231efc076
Merge pull request #1121 from sukarxn/feature/memoize-context-provider-values
...
perf: optimize ui components with react hooks memoization
2026-04-05 13:26:20 -07:00
Rohan Verma
3d2e25cdf3
Merge pull request #1120 from ArvinFarrelP/fix-mobile-navbar-remount
...
fix(navbar): remove key prop causing unnecessary remount in mobile navbar
2026-04-05 13:25:42 -07:00
Anish Sarkar
7fa1810d50
refactor: simplify CommentComposer button layout and update placeholder text in CommentItem
2026-04-05 23:14:54 +05:30
Anish Sarkar
c9e5fe9cdb
refactor: update icon usage in CommentActions and enhance Tooltip component for mobile responsiveness
2026-04-05 23:02:17 +05:30
Anish Sarkar
1f162f52c3
feat: add tooltip functionality to DocumentNode for title overflow handling and refactor ChatShareButton by removing unnecessary Tooltip wrapper
2026-04-05 22:50:36 +05:30
Anish Sarkar
c6e94188eb
refactor: remove destructive text classes from DocumentNode and enhance CreateSearchSpaceDialog with select-none and select-text classes
2026-04-05 18:23:32 +05:30
Trevin Chow
6b5b45d08d
perf: add passive option to scroll and touch event listeners
...
Browsers wait for scroll/touch listeners to finish to check if
preventDefault() is called, which delays scrolling. Since these
handlers (navbar scroll detection, click-outside detection, and
onboarding tour position updates) never call preventDefault(),
marking them as passive lets the browser scroll without waiting.
Fixes #1053
2026-04-04 22:03:06 -07:00
CREDO23
a180bf5576
fix merge conflicts
2026-04-04 09:39:20 +02:00
CREDO23
d7315e7f27
Merge upstream/dev into feat/vision-autocomplete
2026-04-04 09:15:13 +02:00
SohamBhattacharjee2003
0cd997f673
fix: resolve setTimeout memory leak on unmounted component
2026-04-04 01:28:45 +05:30
sukarxn
af5977691b
perf: optimize ui components with react hooks memoization
...
- toggle-group.tsx: Wrap contextValue in useMemo to prevent unnecessary re-renders
- animated-tabs.tsx: Hoist constants and memoize handlers with useCallback/useMemo
- LocaleContext.tsx: Wrap setLocale in useCallback and contextValue in useMemo
- plate-editor.tsx: Memoize SaveShortcutPlugin and contextProviderValue, use useRef for stable references
2026-04-03 23:23:54 +05:30
CREDO23
482238e5d4
add vision LLM role for screenshot analysis
2026-04-03 17:40:27 +02:00
Rohan Verma
92d75ad622
Merge pull request #1118 from SohamBhattacharjee2003/fix/logo-lcp-priority
...
Build and Push Docker Images / tag_release (push) Has been cancelled
Build and Push Docker Images / build (./surfsense_backend, ./surfsense_backend/Dockerfile, backend, surfsense-backend, ubuntu-24.04-arm, linux/arm64, arm64) (push) Has been cancelled
Build and Push Docker Images / build (./surfsense_backend, ./surfsense_backend/Dockerfile, backend, surfsense-backend, ubuntu-latest, linux/amd64, amd64) (push) Has been cancelled
Build and Push Docker Images / build (./surfsense_web, ./surfsense_web/Dockerfile, web, surfsense-web, ubuntu-24.04-arm, linux/arm64, arm64) (push) Has been cancelled
Build and Push Docker Images / build (./surfsense_web, ./surfsense_web/Dockerfile, web, surfsense-web, ubuntu-latest, linux/amd64, amd64) (push) Has been cancelled
Build and Push Docker Images / create_manifest (backend, surfsense-backend) (push) Has been cancelled
Build and Push Docker Images / create_manifest (web, surfsense-web) (push) Has been cancelled
fix: logo lcp priority
2026-04-03 08:16:38 -07:00
Rohan Verma
f35f5cef09
Merge pull request #1117 from sukarxn/feature/replace-raw-img-tags-with-next/image
...
fix: optimize image components with next/image
2026-04-03 08:15:59 -07:00
Rohan Verma
90228d5e0b
Merge pull request #1115 from SohamBhattacharjee2003/fix/memoize-json-stringify
...
fix: memoize json stringify
2026-04-03 08:14:24 -07:00
Rohan Verma
183169a37a
Merge pull request #1113 from SohamBhattacharjee2003/perf/optimize-threads-query
...
perf: normalize query keys and add placeholderData to optimize…
2026-04-03 08:12:16 -07:00
Rohan Verma
0ad72e21a5
Merge pull request #1112 from SohamBhattacharjee2003/fix/fetch-abort-controller
...
fix: add AbortController to properly cancel fetch requests on …
2026-04-03 08:11:42 -07:00
ArvinFarrelP
bb84bb25a3
perf(images): add sizes prop to improve Next.js image loading
2026-04-03 22:11:21 +07:00
Rohan Verma
3dba11d532
Merge pull request #1110 from mvanhorn/fix/upload-progress-interval-cleanup
...
fix: clear upload progress interval on unmount
2026-04-03 08:08:38 -07:00
Rohan Verma
71badbed31
Merge pull request #1109 from mvanhorn/fix/onboarding-timer-cleanup
...
fix: clean up onboarding tour timer leaks
2026-04-03 08:07:11 -07:00
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
ArvinFarrelP
fb20b0444f
fix(navbar): remove key prop causing unnecessary remount in mobile navbar
2026-04-03 21:51:08 +07:00
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
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
62b44889d1
Merge remote-tracking branch 'upstream/dev' into feat/local-folder-sync
2026-04-03 11:42:43 +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
e2ba509314
feat: enhance error handling in local folder indexing by adding rollback and refresh on IntegrityError
2026-04-03 09:29:59 +05:30