Commit graph

901 commits

Author SHA1 Message Date
CREDO23
d7315e7f27 Merge upstream/dev into feat/vision-autocomplete 2026-04-04 09:15:13 +02:00
CREDO23
18103417bb fix: harden autocomplete endpoint security and error handling 2026-04-04 08:57:09 +02:00
CREDO23
46e8134b23 catch non-vision model errors with actionable user message 2026-04-04 08:40:55 +02:00
CREDO23
960b8fc012 add app context and KB grounding to autocomplete suggestions 2026-04-03 21:34:01 +02:00
CREDO23
080acf5e0a remove dead code: allPermissionsGranted, simulateCopy, pendingSuggestionText, updateSuggestionText 2026-04-03 20:16:23 +02:00
CREDO23
c5aa869adb switch to on-demand permission requests and improve suggestion UX 2026-04-03 19:57:48 +02:00
CREDO23
aeb3f13f91 replace text-based autocomplete with vision-based endpoint 2026-04-03 18:17:50 +02:00
Rohan Verma
92d75ad622
Merge pull request #1118 from SohamBhattacharjee2003/fix/logo-lcp-priority
Some checks failed
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
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
CREDO23
8ba571566d remove uiohook-napi and keystroke monitoring 2026-04-03 16:10:52 +02: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
746c730b2e chore: ran linting 2026-04-03 13:14:40 +05:30
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
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
b46c5532b3 feat: add unified file and folder browsing functionality with IPC channel integration 2026-04-03 00:28:24 +05:30
CREDO23
9c1d9357c4 refactor: fix dynamic tooltip resizing and split autocomplete into SPR modules 2026-04-02 20:19:16 +02:00
Anish Sarkar
1ef0d913e7 refactor: remove Local Folder connector components and related configurations from the UI 2026-04-02 22:19:55 +05:30
CREDO23
6899134a20 feat: add autocomplete toggle in desktop settings 2026-04-02 14:37:26 +02:00
CREDO23
eaabad38fc feat: add permission onboarding page and startup routing for macOS 2026-04-02 13:44:57 +02:00
CREDO23
bcc227a4dd feat: add suggestion tooltip UI and autocomplete API types 2026-04-02 13:19:59 +02:00
Anish Sarkar
5eeee99bb1 feat: enhance Local Folder connector with version history and folder sync capabilities 2026-04-02 11:40:04 +05:30
Anish Sarkar
e2f946b7c0 feat: add support for Local Folder connector in UI components and configuration 2026-04-02 11:38:40 +05:30
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
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
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
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
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
Anish Sarkar
33e7aeef9d style: enhance input field focus styles and transition effects in login and registration forms 2026-04-01 21:00:52 +05:30
Anish Sarkar
5c11a15fb6 refactor: update UI components by removing unused imports and adjusting loading states 2026-04-01 20:51:55 +05:30
Anish Sarkar
d7dd6db1b9 fix: improve document loading error handling and UI feedback for processing state 2026-04-01 20:31:45 +05:30
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
DESKTOP-RTLN3BA\$punk
5c8769508f chore: linting 2026-03-31 21:42:03 -07:00
DESKTOP-RTLN3BA\$punk
a9fd45844d feat: integrate Stripe for page purchases and reconciliation tasks 2026-03-31 18:39:45 -07:00
DESKTOP-RTLN3BA\$punk
17642493eb chore: linting 2026-03-31 14:45:46 -07:00
CREDO23
1aeb5ba645 Merge remote-tracking branch 'upstream/dev' into feature/prompt-library 2026-03-31 22:41:53 +02:00
Rohan Verma
d12d68d759
Merge pull request #1041 from AnishSarkar22/feat/dropbox-connector
feat: Dropbox connector with sensitive actions using HITL
2026-03-31 12:12:10 -07:00
CREDO23
440762fb07 Merge upstream/dev 2026-03-31 20:21:12 +02:00
CREDO23
950be8e17d Fix review issues: idempotent migration, toggle guard, picker states 2026-03-31 19:27:32 +02:00
CREDO23
aecb58e22b Fix review issues: authz, race conditions, UX safety, and consolidate migrations 2026-03-31 19:09:05 +02:00
CREDO23
5f4f7780d1 Fix create_prompt is_public bug, conditional version bump, and add Jotai prompts atoms
- Pass is_public from request body in create_prompt route
- Only bump version on content field changes (name, prompt, mode),
  not on is_public toggle
- Add prompts query and mutation atoms (atomWithQuery/atomWithMutation)
  with TanStack Query caching, replacing manual useEffect fetches
- Update PromptPicker, PromptsContent, and CommunityPromptsContent
  to consume shared atoms instead of local state
2026-03-31 18:34:10 +02:00
CREDO23
95620a4331 Unify frontend prompt rendering to use API-only prompt library
Remove hardcoded DEFAULT_ACTIONS and icon map from prompt-picker,
fetch all prompts from the backend. Simplify Zod types to match the
single-table schema (drop source/system_prompt_slug/is_modified,
add version). Update PromptsContent empty state copy.
2026-03-31 18:18:24 +02:00
Rohan Verma
30cb8ad44c
Merge pull request #1034 from JoeMakuta/feat/add-aria-label-and-replaced-hardcoded-colors
feat : add aria label and replaced hardcoded colors
2026-03-30 15:21:19 -07:00