Commit graph

2574 commits

Author SHA1 Message Date
Rohan Verma
fe6f830eab
Merge pull request #1185 from AnishSarkar22/fix/folder-watch
Some checks are pending
Build and Push Docker Images / tag_release (push) Waiting to run
Build and Push Docker Images / build (./surfsense_backend, ./surfsense_backend/Dockerfile, backend, surfsense-backend, ubuntu-24.04-arm, linux/arm64, arm64) (push) Blocked by required conditions
Build and Push Docker Images / build (./surfsense_backend, ./surfsense_backend/Dockerfile, backend, surfsense-backend, ubuntu-latest, linux/amd64, amd64) (push) Blocked by required conditions
Build and Push Docker Images / build (./surfsense_web, ./surfsense_web/Dockerfile, web, surfsense-web, ubuntu-24.04-arm, linux/arm64, arm64) (push) Blocked by required conditions
Build and Push Docker Images / build (./surfsense_web, ./surfsense_web/Dockerfile, web, surfsense-web, ubuntu-latest, linux/amd64, amd64) (push) Blocked by required conditions
Build and Push Docker Images / create_manifest (backend, surfsense-backend) (push) Blocked by required conditions
Build and Push Docker Images / create_manifest (web, surfsense-web) (push) Blocked by required conditions
fix: harden folder watch feature with file hash dedup, mtime seeding, and stable spinner
2026-04-08 14:00:05 -07:00
Anish Sarkar
56c5809170 chore: ran linting 2026-04-08 18:23:03 +05:30
Anish Sarkar
3f2602165a feat: enhance dialog components with improved styling and structure for document upload and folder watch functionalities 2026-04-08 18:14:20 +05:30
Anish Sarkar
37c52ce7ea feat: implement indexing progress management in local folder indexing process and enhance related test coverage 2026-04-08 18:01:55 +05:30
Anish Sarkar
f3aa514240 feat: integrate subtree ID retrieval in local folder cleanup process and enhance UI component styling for folder selection 2026-04-08 17:25:18 +05:30
Anish Sarkar
ae98f64760 feat: enhance folder indexing with metadata management and improve folder structure handling in UI components 2026-04-08 16:48:40 +05:30
Anish Sarkar
b76a6babc1 refactor: update terminology in AllConnectorsTab and enhance styling in FolderTreeView 2026-04-08 16:20:41 +05:30
Anish Sarkar
c9c1d239f8 refactor: optimize button rendering in CreateSearchSpaceDialog and enhance watched folder ID retrieval in DocumentsSidebar 2026-04-08 16:17:34 +05:30
Anish Sarkar
d009d06432 feat: add seedFolderMtimes API for seeding file modification times during folder synchronization 2026-04-08 16:07:25 +05:30
Anish Sarkar
e8c2377824 refactor: adjust className formatting in LayoutShell and optimize motion.div properties in SidebarSlideOutPanel 2026-04-08 16:04:11 +05:30
Anish Sarkar
5eada7bcab fix: update button variant in FolderWatchDialog and refine metadata type in folder.types 2026-04-08 15:55:37 +05:30
Anish Sarkar
6f9f69c3e8 refactor: remove local folder indexing endpoints and update related API calls 2026-04-08 15:49:36 +05:30
Anish Sarkar
5f5954e932 feat: implement upload-based folder indexing and synchronization features 2026-04-08 15:46:52 +05:30
DESKTOP-RTLN3BA\$punk
daa0194024 chore: update GIF assets in hero tutorial section 2026-04-08 03:10:31 -07:00
DESKTOP-RTLN3BA\$punk
74ccb347c1 chore: replace GIFs with videos in README files for better performance 2026-04-08 03:02:34 -07:00
DESKTOP-RTLN3BA\$punk
ca79ee1060 chore: update GIF assets in readmes 2026-04-08 02:55:12 -07:00
Anish Sarkar
b3925654dd fix: update MoreHorizontal icon styling in FolderNode component 2026-04-08 15:20:19 +05:30
DESKTOP-RTLN3BA\$punk
b740761492 feat: update instrumentation-client to include platform property in events
Added a platform property set to "web" in event properties for better tracking. Updated GIF assets in the hero tutorial section.
2026-04-08 02:41:33 -07:00
Anish Sarkar
ef358e067a feat: add chat session and message synchronization hooks 2026-04-08 14:43:21 +05:30
Rohan Verma
36908241f1
Merge pull request #1184 from mvanhorn/fix/cancel-animation-frame-cleanup
fix: add cancelAnimationFrame cleanup in animated-tabs useEffect
2026-04-08 02:03:01 -07:00
Rohan Verma
d73658a8f3
Merge pull request #1183 from mvanhorn/perf/remove-simple-usememo
perf: remove unnecessary useMemo wrapping simple boolean expressions
2026-04-08 02:02:28 -07:00
Matt Van Horn
833ea18800 fix: add cancelAnimationFrame cleanup in animated-tabs useEffect
Store the requestAnimationFrame ID and cancel it on unmount
to prevent updateActiveIndicator from running on an unmounted
component.

Fixes #1093
2026-04-08 01:39:14 -07:00
Matt Van Horn
90ed853a26 perf: remove unnecessary useMemo wrapping simple boolean expressions
Replace useMemo calls that wrap trivial boolean checks with plain
const expressions. The memo overhead exceeds the cost of these
simple permission checks and mode comparisons.

Fixes #1052
2026-04-08 01:36:24 -07:00
Matt Van Horn
67ee8f4bb7 fix: replace window.location with router.push for client-side navigation 2026-04-08 00:01:30 -07:00
Rohan Verma
553843ab06
Merge pull request #1179 from SohamBhattacharjee2003/perf/dynamic-tool-ui-imports
perf: dynamic tool UI imports
2026-04-07 23:42:11 -07:00
Rohan Verma
74f2e1ea3f
Merge pull request #1178 from SohamBhattacharjee2003/perf/dynamic-settings-tabs
perf: dynamic settings tabs
2026-04-07 23:41:57 -07:00
Rohan Verma
ca2fe959fd
Merge pull request #1177 from SohamBhattacharjee2003/perf/dynamic-connector-imports
perf: dynamic connector imports
2026-04-07 23:41:37 -07:00
Rohan Verma
88834e7b1a
Merge pull request #1176 from SohamBhattacharjee2003/perf/dynamic-locale-loading
perf: dynamic locale loading
2026-04-07 23:41:19 -07:00
Rohan Verma
8566160db0
Merge pull request #1175 from SohamBhattacharjee2003/refactor/remove-unused-drizzle-import
refactor: remove unused drizzle import
2026-04-07 23:40:54 -07:00
Rohan Verma
de6f5a2393
Merge pull request #1174 from SohamBhattacharjee2003/perf/lazy-load-video-presentation-in-public-chat
perf: lazy load video presentation in public chat
2026-04-07 23:40:35 -07:00
Rohan Verma
46ef0db8ab
Merge pull request #1173 from SohamBhattacharjee2003/perf/lazy-load-mobile-panels
Perf: lazy load mobile panels
2026-04-07 23:40:09 -07:00
Rohan Verma
0696445112
Merge pull request #1172 from SohamBhattacharjee2003/fix/replace-transition-all-with-specific-transitions
fix: replace transition all with specific transitions
2026-04-07 23:39:30 -07:00
Rohan Verma
387e517fda
Merge pull request #1171 from SohamBhattacharjee2003/fix/use-transform-for-sidebar-animation
fix: use transform for sidebar animation
2026-04-07 23:39:07 -07:00
Rohan Verma
bc3e510968
Merge pull request #1170 from SohamBhattacharjee2003/fix/optimize-dom-queries-in-thread
fix: optimize dom queries in thread
2026-04-07 23:38:49 -07:00
Rohan Verma
ac4f5477b5
Merge pull request #1169 from SohamBhattacharjee2003/fix/remove-forcemount-from-user-dropdown
fix: remove forcemount from user dropdown
2026-04-07 23:38:23 -07:00
Rohan Verma
d26b986125
Merge pull request #1168 from SohamBhattacharjee2003/fix/debounce-logs-message-filter
fix: debounce logs message filter
2026-04-07 23:37:34 -07:00
Rohan Verma
35c155387b
Merge pull request #1167 from SohamBhattacharjee2003/fix/add-autocomplete-attributes
Fix/add autocomplete attributes
2026-04-07 23:36:56 -07:00
Rohan Verma
cf2115bc90
Merge pull request #1166 from SohamBhattacharjee2003/fix/remove-unnecessary-use-client-directives
fix: remove unnecessary use client directives
2026-04-07 23:36:33 -07:00
DESKTOP-RTLN3BA\$punk
f428cd97d9 feat: enhance hero section with download functionality and OS detection
- Integrated a dropdown menu for alternative download options based on user OS and architecture.
- Updated the OS detection logic to provide accurate architecture information.
- Improved the download button to dynamically link to the latest release assets from GitHub.
- Added new components for better user experience in the download process.
2026-04-07 19:51:52 -07:00
DESKTOP-RTLN3BA\$punk
1162ae6eab fix: update pricing details in pricing section and more pages content
- Adjusted the demo plans to reflect a new offer of 500 pages included to start and a maximum of 3,000 bonus pages.
- Updated descriptions and dialog titles throughout the application to align with the new offer, ensuring consistency in messaging.
2026-04-07 19:11:57 -07:00
DESKTOP-RTLN3BA\$punk
86d48206dd feat: update README and hero section with new desktop app feature
- Enhanced README files in multiple languages to include the new "Watch Local Folder" feature for the desktop app, detailing its functionality and benefits.
- Updated the hero section to showcase the "Watch Local Folder" feature with a new tutorial video.
- Improved overall clarity and consistency across documentation regarding desktop app capabilities.
2026-04-07 18:59:40 -07:00
SohamBhattacharjee2003
439a27830a perf: implement dynamic imports for tool UI components (#1140)
- Replace 20+ static tool UI imports with dynamic imports
- Dynamically load: Confluence, Dropbox, Gmail, Google Calendar, Google Drive, OneDrive, Jira, Linear, Notion, Generate Image, Generate Report, Generate Podcast, Generate Video Presentation, Sandbox Execute, User Memory
- Dramatically reduces chat page initial bundle size
- Tool UIs load on demand when assistant uses them
- ToolFallback remains synchronous as fallback component
2026-04-08 06:50:07 +05:30
SohamBhattacharjee2003
15560f297f perf: implement dynamic imports for settings dialog tabs (#1141)
- Replace 6 static imports in user-settings-dialog with dynamic imports
- Replace 8 static imports in search-space-settings-dialog with dynamic imports
- Each settings tab loads content only when selected
- Reduces initial settings dialog bundle size
- All tab functionality preserved
2026-04-08 06:48:51 +05:30
SohamBhattacharjee2003
2b02ecaa6f perf: implement dynamic imports for connector configs and forms (#1142)
- Replace 23 static connector config imports with dynamic imports
- Replace 10 static connect form imports with dynamic imports
- Add component caching to avoid recreating dynamic components
- Significantly reduces connector popup chunk size
- Only selected connector components load on demand
2026-04-08 06:47:31 +05:30
SohamBhattacharjee2003
d5f46dd7de perf: implement dynamic locale loading and remove unused zod import
Replace static imports of all 5 locale JSON files with dynamic imports.
Only English is bundled by default, other locales (es, hi, pt, zh) load
on demand when the user switches languages.

Also removes unused 'set' import from zod (line 5) that was dragging
Zod surface into this module unnecessarily.

Changes:
- Removed static imports for es, hi, pt, zh locale files
- Removed unused zod import
- Added loadMessages() function for dynamic locale loading
- Updated setLocale() to load messages asynchronously
- Added useEffect to load non-English locale on mount if stored

Benefits:
- Only active locale's JSON in initial bundle (English default)
- 80% reduction in locale data in initial bundle
- Other locale files load on demand (~50-100KB each)
- Removed unnecessary zod dependency from module
- Locale switching still works seamlessly
- Faster initial page load

Fixes #1143
2026-04-08 06:39:37 +05:30
SohamBhattacharjee2003
d114d43fef refactor: remove unused drizzle-orm import from markdown-viewer
Remove unused 'is' import from drizzle-orm in markdown-viewer.tsx (line 5).
This import was never used in the file and unnecessarily dragged ORM code
into the UI component's bundle chunk.

Benefits:
- Removes drizzle-orm from markdown-viewer bundle chunk
- Reduces bundle size for components using MarkdownViewer
- Cleaner imports with no unused dependencies
- Markdown viewer functionality unchanged

Fixes #1144
2026-04-08 06:36:50 +05:30
SohamBhattacharjee2003
ac554974f6 perf: lazy load video presentation in public chat
Convert GenerateVideoPresentationToolUI from static import to dynamic import
with ssr: false in public-thread.tsx. This prevents Remotion and @babel/standalone
from being bundled in the public chat page.

The main app's assistant-message.tsx already correctly lazy-loads this component,
but the public thread was still using a static import, unnecessarily increasing
the bundle size for public shared chats.

Benefits:
- Removes Remotion and @babel/standalone from public chat bundle
- Reduces initial bundle size for public shared chats
- Video presentations still render correctly when present
- Faster page load for users viewing public chats

Fixes #1145
2026-04-08 06:32:05 +05:30
SohamBhattacharjee2003
7c4500c707 perf: lazy load mobile panels with dynamic imports
Convert MobileEditorPanel, MobileHitlEditPanel, and MobileReportPanel from
static imports to dynamic imports with ssr: false. These panels pull in heavy
dependencies (PlateEditor, MarkdownViewer) that are only needed when users
interact with them on mobile.

Benefits:
- Reduces initial bundle size for chat page
- Mobile panels load only when opened by user
- Faster initial page load and Time to Interactive
- Heavy editor dependencies are code-split into separate chunks

Fixes #1146
2026-04-08 06:26:27 +05:30
DESKTOP-RTLN3BA\$punk
0af6b3882a refactor: replace button with div for improved accessibility in DocumentUploadTab
- Changed the button element to a div with role="button" to enhance keyboard accessibility.
- Updated event handling for click and keydown events to ensure consistent behavior across devices.
- Maintained existing styling and functionality while improving semantic structure.
2026-04-07 17:23:46 -07:00
DESKTOP-RTLN3BA\$punk
b6b8f9dc7b Merge branch 'dev' of https://github.com/MODSetter/SurfSense into dev 2026-04-07 17:14:11 -07:00