Commit graph

1566 commits

Author SHA1 Message Date
Universe Creator
fe744c8d8d fix: Memoize formatRelativeTime per thread item
- Wrap formatRelativeTime call in useMemo with thread.updatedAt dependency
- Prevents creating new Date() on every render for each thread item
- Improves thread list rendering performance

Fixes: #1100
2026-04-04 05:44:17 +03:00
universe7creator
24a2406860 fix: Clear stagger toast timers on unmount in AnnouncementToastProvider
Fixes #1094 - Track inner timer IDs and clear all in cleanup to prevent setState on unmounted component.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-04 04:59:22 +03:00
ClawdBot
805eacb9fc fix(react): Add cancelAnimationFrame cleanup in useEffect
- Add cleanup function to cancel animation frame on unmount
- Prevents potential memory leaks and setState on unmounted component
- Closes #1093
2026-04-04 02:25:56 +03:00
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
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
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
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
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
JoeMakuta
fc4f9ba7c0 refac: import of UI components for dropdown menu, separator, toggle group, toggle, tooltip, and checkbox 2026-04-01 15:41:11 +02:00
DESKTOP-RTLN3BA\$punk
c21d7dac3f feat: update README files to include OneDrive and Dropbox as external sources 2026-03-31 22:36:58 -07:00
DESKTOP-RTLN3BA\$punk
5c8769508f chore: linting 2026-03-31 21:42:03 -07:00
DESKTOP-RTLN3BA\$punk
0201fd319d refactor: update document processing status handling and improve sidebar components 2026-03-31 21:29:46 -07:00
DESKTOP-RTLN3BA\$punk
d8f403efba feat: re arranged connectors list 2026-03-31 20:38:43 -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
Rohan Verma
5ae5a671e7
Merge pull request #1063 from JoeMakuta/optimize/memoize-chunk-card
refactor: memoize ChunkCard component for performance optimization
2026-03-31 14:35:08 -07:00
Rohan Verma
5783646dea
Merge pull request #1062 from JoeMakuta/optimize/dynamic-video-tool-import
feat: dynamically import video presentation tool to optimize bundle size
2026-03-31 14:34:51 -07:00
Rohan Verma
97139bc239
Merge pull request #1061 from JoeMakuta/feat/use-key-to-reset-connectors
refactor: Use key={connector.id} to reset connector config forms and cleanup useEffects
2026-03-31 14:34:34 -07:00
Rohan Verma
0508a39c40
Merge pull request #1040 from JoeMakuta/feat/disable-rename-button-and-dynamic-imports
feat : disable rename button and dynamic imports
2026-03-31 14:33:17 -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
JoeMakuta
5fb4f49bc0 refactor: memoize ChunkCard component for performance optimization 2026-03-31 15:49:56 +02:00
JoeMakuta
f17a0edf86 feat: dynamically import video presentation tool to optimize bundle size 2026-03-31 15:39:22 +02:00
JoeMakuta
3ed5a741f7 refactor: Use key={connector.id} to reset connector config forms then useEffect hooks from connector config components 2026-03-31 15:27:28 +02:00
Anish Sarkar
9d7b172ae7 style: update tooltips in assistant UI 2026-03-31 17:31:54 +05:30
Anish Sarkar
0b4336e76e style: update button styling in InlineCitation component for improved appearance and consistency 2026-03-31 17:16:51 +05:30
JoeMakuta
be11dea7b3 Merge branch 'dev' into feat/disable-rename-button-and-dynamic-imports 2026-03-31 13:20:36 +02:00
Anish Sarkar
2327869147 style: adjust header and sidebar heights for improved layout consistency and update TabBar component for better responsiveness 2026-03-31 16:35:29 +05:30
Rohan Verma
25b068f420
Merge pull request #1038 from JoeMakuta/fix/narrow-effect-use-lazy-state-init-add-memo
fix : narrow effect, use lazy state init and add memo
2026-03-30 15:22:44 -07:00
Rohan Verma
d836eea554
Merge pull request #1035 from JoeMakuta/fix/derive-has-changes-and-use-functional-setstate
fix : derive has changes and use functional setstate
2026-03-30 15:22:01 -07: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
CREDO23
1fd3a36c57 chore: format upstream files 2026-03-30 20:33:40 +02:00
Anish Sarkar
781984c224 fix: update date range selector visibility logic for file-based connectors in connector edit view 2026-03-31 00:00:32 +05:30
Anish Sarkar
86dce54294 refactor: simplify tool visibility logic and update UI labels in the ComposerAction component 2026-03-30 23:56:46 +05:30
Anish Sarkar
d8d5102416 feat: introduce incremental sync option for Dropbox indexing, enhancing performance and user control 2026-03-30 23:27:48 +05:30
CREDO23
1238efaf99 add community prompts tab and public toggle in prompt form 2026-03-30 19:41:14 +02:00