Commit graph

1553 commits

Author SHA1 Message Date
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
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
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
Anish Sarkar
b950299072 feat: add support for creating and deleting Dropbox files in chat tools and update connector display name 2026-03-30 23:09:36 +05:30
Anish Sarkar
6b922966e7 feat: integrate Dropbox support across various components, including document type labels, connector logic, and validation checks 2026-03-30 23:04:07 +05:30
Anish Sarkar
debe758ff5 fix: update date range selector visibility logic for file-based connectors in indexing configuration 2026-03-30 22:59:27 +05:30
JoeMakuta
fb72bb2b06 refactor: implement dynamic imports for PlateEditor in multiple components with loading skeletons 2026-03-30 19:26:33 +02:00
Anish Sarkar
86ce75ea39 feat: add Dropbox connector to display name mappings in UI and utility functions 2026-03-30 22:54:43 +05:30
Anish Sarkar
be5685c9a4 feat: add UI components for Dropbox file creation and deletion, enhancing document management capabilities 2026-03-30 22:37:19 +05:30
JoeMakuta
4d6cf983fd refactor: remove pending new chat state and streamline router synchronization in LayoutDataProvider 2026-03-30 19:06:25 +02:00
Anish Sarkar
d509148636 feat: implement Dropbox connector configuration and UI components for folder and file selection 2026-03-30 22:27:22 +05:30
JoeMakuta
574097126f fix: prevent renaming chat to the same name by updating button disabled condition 2026-03-30 18:39:03 +02:00
JoeMakuta
8263c73427 refactor: memoize ThreadListItemComponent for performance optimization using memo 2026-03-30 18:00:00 +02:00
JoeMakuta
e0cd8932da Use lazy state initialization in jira an linear issues 2026-03-30 17:36:52 +02:00
JoeMakuta
8f6c9f51ee Use lazy state initialization for update confluence page 2026-03-30 17:35:33 +02:00
JoeMakuta
7140b68474 Use lazy state initialization for llm role manager 2026-03-30 17:34:37 +02:00