Commit graph

1855 commits

Author SHA1 Message Date
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
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
b46c5532b3 feat: add unified file and folder browsing functionality with IPC channel integration 2026-04-03 00:28:24 +05:30
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
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
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