Commit graph

4374 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
SohamBhattacharjee2003
0fa4939a71 fix: use React.cache() to deduplicate getPage calls 2026-04-02 01:06:37 +05:30
Rohan Verma
0811f9f252
Merge pull request #1070 from MODSetter/dev
fix: make migration 109 idempotent
2026-04-01 02:20:42 -07:00
Rohan Verma
b1631cd6f1
Merge pull request #1069 from CREDO23/fix/zero-cache
[Fix] Make migration 109 idempotent
2026-04-01 02:19:53 -07:00
CREDO23
2a809d0418 fix: make migration 109 idempotent 2026-04-01 11:12:21 +02:00
Rohan Verma
6c87840365
Merge pull request #1068 from CREDO23/fix/zero-cache
[Fix] zero-cache startup crash on high-core machines & restrict replication to needed tables
2026-04-01 01:43:35 -07:00
CREDO23
10e0e733af fix: configure zero-cache sync workers, connection limits, and publication 2026-04-01 10:18:51 +02:00
CREDO23
cd1bb79db8 feat: add migration to create zero_publication for zero-cache 2026-04-01 09:56:33 +02:00
Rohan Verma
deccbca506
Merge pull request #1067 from MODSetter/dev
feat: OneDrive & Dropbox connectors, desktop quick-ask, prompt library, and UX improvements
2026-03-31 23:10:43 -07: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
f9a79d5a5f feat: add Stripe configuration options for docker 2026-03-31 22:26:47 -07:00
Rohan Verma
63ec4be46c
Merge pull request #1066 from MODSetter/dev_mod
feat: bumped version to 0.0.14
2026-03-31 21:46:49 -07:00
DESKTOP-RTLN3BA\$punk
529af2be39 feat: bumped version to 0.0.14 2026-03-31 21:45:18 -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
ad0e77c3d6 feat: enhance knowledge base search with date filtering 2026-03-31 20:13:46 -07:00
Rohan Verma
006dccbe4b
Merge pull request #1065 from MODSetter/dev_mod
feat: integrate Stripe
2026-03-31 18:41:51 -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
2361e8731b
Merge pull request #1059 from JoeMakuta/fix/use-functional-set-state
refactor: use functional setState for updating connectors in useSearhSourceConnectors hook
2026-03-31 14:34:02 -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
Rohan Verma
b650320b68
Merge pull request #1064 from CREDO23/feature/prompt-library
[Feature] Add Prompt Library
2026-03-31 14:32:46 -07:00
CREDO23
0f0bb5509c Merge upstream/dev, renumber migrations after dropbox 112 2026-03-31 22:43:14 +02: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
8f7dce3bbd Fix PromptMode enum to match PostgreSQL type 2026-03-31 20:12:04 +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
CREDO23
11387268a7 Seed default prompts on registration and for existing users 2026-03-31 18:12:09 +02:00
CREDO23
0c975a6f80 Simplify prompts to seed-based CRUD with version tracking 2026-03-31 18:05:42 +02:00
CREDO23
80d096db32 Add system prompt merge logic, upsert override, and reset endpoints 2026-03-31 16:47:51 +02:00
CREDO23
329e979d48 Remove icon from prompts, update schemas for system prompt overrides 2026-03-31 16:38:35 +02:00
CREDO23
16f4d007e4 Add system_prompt_slug column and migration for prompt overrides 2026-03-31 16:27:04 +02:00
CREDO23
2024e9b1ed Add system prompt defaults constant for copy-on-write overrides 2026-03-31 16:23:11 +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
8d591ce03c feat: add support for exporting Dropbox Paper .paper documents as markdown, enhancing content extraction capabilities 2026-03-31 18:47:11 +05:30
JoeMakuta
b28b2fac71 refactor: use functional setState for updating connectors in useSearchSourceConnectors hook 2026-03-31 14:22:34 +02:00