Commit graph

2520 commits

Author SHA1 Message Date
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
Soham Bhattacharjee
e404b05b11
Merge branch 'dev' into fix/replace-transition-all-with-specific-transitions 2026-04-08 05:38:30 +05:30
SohamBhattacharjee2003
4a5af63715 fix: replace transition-all with specific transition properties for better performance
- Replace transition-all with transition-[width] in Sidebar.tsx for width animations
- Replace transition-all with specific properties in animated-tabs.tsx for hover/active indicators
- Replace transition-all with transition-[background-color,border-color,box-shadow] in navbar.tsx
- Replace transition-all with transition-[width] in audio.tsx volume bar
- Replace transition-all with transition-[background-color,border-color,color] in thread.tsx
- Replace transition-all with transition-[box-shadow] in all tool-ui status cards (28+ files)

This reduces unnecessary browser layout/paint work by only animating the specific
properties that change, avoiding expensive recalculations for properties like
width, height, margin, and padding that don't need animation.

Fixes #1147
2026-04-08 05:36:19 +05:30
Rohan Verma
f87a2efcaf
Merge pull request #1164 from AnishSarkar22/feat/azure-ocr
feat: add Azure Document Intelligence as accelerator for LlamaCloud & some UX fixes
2026-04-07 16:58:19 -07:00
SohamBhattacharjee2003
63855e0757 fix: use transform animation for sidebar slide-out panel
- Replace width animation with translateX for GPU acceleration
- Set fixed width on panel and animate x position instead
- Prevents layout recalculation on every animation frame
- Runs on compositor thread without triggering reflow
2026-04-08 05:26:18 +05:30
DESKTOP-RTLN3BA\$punk
1a6251eaaa feat: add desktop app section to README files
- Introduced a new section in the README files for the Desktop App, highlighting its features: General Assist, Quick Assist, and Extreme Assist.
- Updated all language-specific README files to include details about the desktop app's capabilities and download instructions.
2026-04-07 16:56:08 -07:00
SohamBhattacharjee2003
c7dfbcd95a fix: optimize DOM queries in thread component
- Store viewport element in ref instead of repeated querySelector calls
- Move getBoundingClientRect calls from render to useLayoutEffect
- Use ResizeObserver to update picker positions reactively
- Eliminates 120+ querySelector calls during message submit polling
- Prevents forced layout during React render phase
2026-04-08 05:21:39 +05:30
Anish Sarkar
8455451ce1 chore: ran linting 2026-04-08 05:20:03 +05:30
SohamBhattacharjee2003
693284c419 fix: remove forceMount from UserDropdown to reduce DOM nodes
- Remove forceMount prop from DropdownMenuContent
- Allows Radix to mount content only when dropdown is open
- Reduces unnecessary DOM nodes when dropdown is closed
- Improves performance by using default Radix behavior
2026-04-08 05:12:41 +05:30
DESKTOP-RTLN3BA\$punk
f20540f60c Merge branch 'dev' of https://github.com/MODSetter/SurfSense into dev 2026-04-07 16:41:10 -07:00
DESKTOP-RTLN3BA\$punk
417dc92926 feat: enhance hero section
- Updated TAB_ITEMS to include new features: General Assist, Quick Assist, Extreme Assist, and Video & Presentations.
- Removed outdated features: Connect & Sync and Upload Documents.
- Introduced a DownloadButton component that detects user OS for tailored download options.
- Removed the old DownloadApp component for a cleaner implementation.
2026-04-07 16:41:02 -07:00
SohamBhattacharjee2003
c8ff3d7e76 fix: debounce logs message filter to prevent UI jank
- Add local state for message filter input with 300ms debounce
- Use useDebouncedValue hook to delay table filter updates
- Prevents full filtering pipeline from running on every keystroke
- Improves responsiveness for large log datasets
2026-04-08 05:06:22 +05:30
Anish Sarkar
6038f6dfc0 Merge remote-tracking branch 'upstream/dev' into feat/azure-ocr 2026-04-08 05:00:32 +05:30
SohamBhattacharjee2003
36391acfd0 fix: add autoComplete attributes to form inputs for better UX
- Add autoComplete="username" and "current-password" to login form
- Add autoComplete="email" and "new-password" to register form inputs
- Add autoComplete="name" to profile display name input
- Add autoComplete="off" to connector search input
- Enables browser password managers and autofill functionality
2026-04-08 04:58:14 +05:30
Anish Sarkar
d264aec57d refactor: update button styling for better user experience in ConnectToolsBanner and enhance document type icon visibility in DocumentNode 2026-04-08 04:48:16 +05:30
Anish Sarkar
b7c9077fb2 feat: enhance folder watching experience by adding initial folder selection and updating state management in DocumentsSidebar and FolderWatchDialog 2026-04-08 04:42:07 +05:30
SohamBhattacharjee2003
4066cbc6f0 fix: remove unnecessary 'use client' directives to reduce client bundle
- Remove 'use client' from connector-document-mapping.ts (only exports constants and pure functions)
- Remove 'use client' from sidebar-separator.tsx (purely presentational component)
- Remove 'use client' and Framer Motion from logs/loading.tsx, replace with Tailwind animations
- Reduces client bundle size by moving server-compatible code to server components
2026-04-08 04:39:39 +05:30
SohamBhattacharjee2003
baada1457a fix: replace window.location with Next.js router for client-side navigation
- Replace window.location.href with router.push() + router.refresh() in UserDropdown logout
- Replace window.location.href with router.push() in CreateSearchSpaceDialog
- Replace window.location.reload() with router.refresh() in login page retry action
- Prevents full page reloads and preserves React state during in-app navigation
2026-04-08 04:28:41 +05:30
Anish Sarkar
3832bdbb91 refactor: replace FolderOpen icon with FolderClock in DocumentsSidebar and update button text in FolderWatchDialog 2026-04-08 04:12:54 +05:30
Anish Sarkar
078f735e3a feat: improve folder watching functionality with UI dialog for selecting and managing watched folders 2026-04-08 04:11:49 +05:30
Anish Sarkar
20fa93f0ba refactor: make Azure Document Intelligence an internal LLAMACLOUD accelerator instead of a standalone ETL service 2026-04-08 03:26:24 +05:30
CREDO23
936bac21e9 Merge remote-tracking branch 'upstream/dev' into feat/vision-autocomplete 2026-04-07 23:48:02 +02:00
CREDO23
26bffbcc47 Add dynamic vision model list from OpenRouter with combobox selector 2026-04-07 23:39:52 +02:00
Rohan Verma
e827a3906d
Merge pull request #1162 from CREDO23/feat/vision-autocomplete
[Feat] Multi-suggestion autocomplete, Vision LLM config & Desktop analytics
2026-04-07 14:01:44 -07:00
DESKTOP-RTLN3BA\$punk
00ee7974f6 fix(desktop): pasteback issues in quick ask
- Updated the quick ask window URL to include a query parameter for quick assist mode.
- Introduced a constant to detect quick assist mode based on the URL parameter in the assistant message component.
- Simplified state management for quick assist detection, improving component performance and clarity.
2026-04-07 13:13:16 -07:00
Anish Sarkar
1fa8d1220b feat: add support for Azure Document Intelligence in ETL pipeline 2026-04-08 00:59:12 +05:30
CREDO23
087b149843 Add setup prompt in overlay when vision model not configured 2026-04-07 21:06:11 +02:00
CREDO23
13625acdd5 Add vision model tab to chat page model selector 2026-04-07 20:47:17 +02:00
CREDO23
c5646eef66 Formatting 2026-04-07 20:28:07 +02:00
CREDO23
e85c355592 Add NEXT_PUBLIC_POSTHOG_KEY to desktop release CI and .env.example 2026-04-07 19:45:30 +02:00
Anish Sarkar
fcba577575 refactor: remove unused document management components and types, consolidating document-related functionality 2026-04-07 23:01:47 +05:30
Anish Sarkar
76c760b8dd fix: improve the notification content and improve tooltip 2026-04-07 23:00:52 +05:30
CREDO23
035a4862f9 Add Vision Models tab to settings dialog with i18n 2026-04-07 19:29:24 +02:00
CREDO23
3bbe6c3037 Add VisionModelManager and VisionConfigDialog components 2026-04-07 19:27:24 +02:00
CREDO23
3369b8a832 Add frontend vision LLM config types, API, atoms, and role manager wiring 2026-04-07 19:24:43 +02:00
CREDO23
5439b3991b fix: auto-dismiss overlay when no suggestions are available 2026-04-07 18:25:06 +02:00
CREDO23
70807cccd1 fix: hide scrollbar during streaming to prevent UI flicker 2026-04-07 18:22:16 +02:00
CREDO23
60b9f0f21c fix: nested button, empty options fallback, skip intermediate tool_calls 2026-04-07 18:12:34 +02:00
CREDO23
e8f82a0590 feat: add option card styles for multi-suggestion UI 2026-04-07 17:46:42 +02:00
CREDO23
2602248e7a feat: handle multi-option suggestions in suggestion page UI 2026-04-07 17:43:40 +02:00
DESKTOP-RTLN3BA\$punk
80f775581b feat: implement quick assist mode detection in AssistantActionBar
- Added state management for quick assist mode using the Electron API.
- Introduced a useEffect hook to asynchronously check and set the quick assist mode based on the API response, enhancing the component's interactivity.
2026-04-07 05:11:41 -07:00
DESKTOP-RTLN3BA\$punk
518cacf56e refactor: improve AssistantActionBar functionality and UI elements
- Removed unused quick ask mode state and effect, simplifying the component logic.
- Updated tooltip descriptions for action buttons to provide clearer user guidance.
- Enhanced the conditional rendering for the quick assist feature, improving user interaction with the clipboard functionality.
2026-04-07 05:03:20 -07:00
DESKTOP-RTLN3BA\$punk
7c6e52a0a5 feat: add active search space management to Electron API and UI
- Introduced IPC channels for getting and setting the active search space, enhancing user experience across the application.
- Updated the preload script to expose new API methods for active search space management.
- Modified the main window and quick ask functionalities to sync the active search space based on user navigation.
- Enhanced the desktop and web applications to allow users to select and manage their default search space seamlessly.
- Implemented automatic synchronization of the active search space during login and navigation events.
2026-04-07 04:45:48 -07:00
DESKTOP-RTLN3BA\$punk
b74ac8a608 feat: update shortcut icons and descriptions for improved clarity
- Replaced icons for "General Assist," "Quick Assist," and "Extreme Assist" shortcuts to better represent their functionalities.
- Updated descriptions for each shortcut to enhance user understanding of their actions.
- Refactored the layout of the shortcut recorder for a more streamlined user experience.
2026-04-07 04:22:22 -07:00
DESKTOP-RTLN3BA\$punk
27e9e8d873 feat: add general assist feature and enhance shortcut management
- Introduced a new "General Assist" shortcut, allowing users to open SurfSense from anywhere.
- Updated shortcut management to include the new general assist functionality in both the desktop and web applications.
- Enhanced the UI to reflect changes in shortcut labels and descriptions for better clarity.
- Improved the Electron API to support the new shortcut configuration.
2026-04-07 03:42:46 -07:00
DESKTOP-RTLN3BA\$punk
e574b5ec4a refactor: remove prompt picker display on quick ask text retrieval
- Eliminated the automatic display of the prompt picker when quick ask text is retrieved from the Electron API, streamlining the user experience.
2026-04-07 03:17:10 -07:00
DESKTOP-RTLN3BA\$punk
91ea293fa2 chore: linting 2026-04-07 03:10:06 -07:00
DESKTOP-RTLN3BA\$punk
82b5c7f19e Merge commit '056fc0e7ff' into dev_mod 2026-04-07 02:56:46 -07:00