Commit graph

2551 commits

Author SHA1 Message Date
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
19dfd9f907 feat: enhance folder synchronization by adding max wait time and batch size limits for processing file events 2026-04-03 10:13:46 +05:30
Anish Sarkar
1fa8e1cc83 feat: refactor folder indexing to support batch processing of multiple files, enhancing performance and error handling 2026-04-03 10:02:36 +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
Anish Sarkar
9a65163fe4 feat: improve DocumentUploadTab UI with updated styles, enhanced file size limit messages 2026-04-03 09:20:44 +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
fe7fcaae5d feat: update folder deletion process to queue document deletions first and handle folder cleanup in Celery task 2026-04-03 04:16:19 +05:30
Anish Sarkar
bd21c2842d feat: enhance document upload and folder synchronization UI with improved processing state indicators and responsive design adjustments 2026-04-03 04:14:09 +05:30
Anish Sarkar
530db10539 refactor: remove unused Electron API check and update search space ID handling in document upload 2026-04-03 02:56:24 +05:30
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
Anish Sarkar
e0b35cfbab feat: implement pending file event handling using durable queue with acknowledgment support in folder synchronization 2026-04-03 00:40:49 +05:30
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
25358fddcf feat: implement local folder synchronization and versioning with new metadata handling and document_versions table 2026-04-02 23:46:21 +05:30
Anish Sarkar
c27d24a117 feat: enhance folder indexing by adding root folder ID support and implement folder creation and cleanup logic 2026-04-02 22:41:45 +05:30
Anish Sarkar
149ccb97dd refactor: completely remove Local Folder connector references and update folder sync logic 2026-04-02 22:21:16 +05:30
Anish Sarkar
493d720b89 refactor: remove Local Folder connector references and enhance folder management features 2026-04-02 22:21:01 +05:30
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
ec2b7851b6 feat: add macOS permission infrastructure for autocomplete 2026-04-02 13:26:32 +02:00
CREDO23
bcc227a4dd feat: add suggestion tooltip UI and autocomplete API types 2026-04-02 13:19:59 +02: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
Anish Sarkar
543b8b9376 feat: add real-time folder watcher registration and unregistration for Local Folder connector 2026-04-02 12:08:18 +05:30
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
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
Anish Sarkar
c9ae4fcaca style: update badge component in LLM role manager for improved visual consistency 2026-04-02 10:12:34 +05:30
Anish Sarkar
000c2d9b5b style: simplify LLM model terminology in UI 2026-04-02 10:11:35 +05:30
Anish Sarkar
d2cf3fb3b7 refactor: update LLM role management logic and enhance UI feedback 2026-04-02 09:58:14 +05:30
Anish Sarkar
407175ffae style: replace loading indicators with Spinner component in alert dialogs 2026-04-02 09:26:16 +05:30
Anish Sarkar
2df9708df9 style: update alert components and empty state UI 2026-04-02 09:16:07 +05:30
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