Commit graph

26 commits

Author SHA1 Message Date
Trevin Chow
6b5b45d08d perf: add passive option to scroll and touch event listeners
Browsers wait for scroll/touch listeners to finish to check if
preventDefault() is called, which delays scrolling. Since these
handlers (navbar scroll detection, click-outside detection, and
onboarding tour position updates) never call preventDefault(),
marking them as passive lets the browser scroll without waiting.

Fixes #1053
2026-04-04 22:03:06 -07:00
Rohan Verma
183169a37a
Merge pull request #1113 from SohamBhattacharjee2003/perf/optimize-threads-query
perf: normalize query keys and add placeholderData to optimize…
2026-04-03 08:12:16 -07:00
SohamBhattacharjee2003
8eaa4e618d perf(hooks): normalize query keys and add placeholderData to optimize thread loading 2026-04-03 14:42:44 +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
DESKTOP-RTLN3BA\$punk
17642493eb chore: linting 2026-03-31 14:45:46 -07:00
JoeMakuta
1705e881ec refactor: use functional setState in useCallback for stable callbacks in onboarding tour and sidebar 2026-03-29 18:35:54 +02:00
Rohan Verma
7400f215af
Merge pull request #1024 from qorexdev/fix/onboarding-animation-state-in-handlers
refactor: move onboarding animation state into event handlers
2026-03-28 16:53:36 -07:00
DESKTOP-RTLN3BA\$punk
2cc2d339e6 feat: made agent file sytem optimized 2026-03-28 16:39:46 -07:00
qorexdev
6540e3f774 refactor: wrap onAnimationEnd in useCallback for stable reference 2026-03-28 15:28:50 +05:00
qorexdev
3b33a3efdb refactor: move onboarding animation state into event handlers
Remove useEffect that watched stepIndex to drive shouldAnimate/contentKey.
stepIndex only changes from handleNext/handlePrev, so set shouldAnimate
directly in those handlers. Replace contentKey state (always equal to
stepIndex) with stepIndex as the animation key.

Fixes #1017
2026-03-28 04:01:49 +05:00
Anish Sarkar
17091edb77 Merge remote-tracking branch 'upstream/dev' into refactor/indexing-pipelines 2026-03-27 22:36:34 +05:30
Anish Sarkar
ec79142d52 refactor: replace document type counts atom with real-time hook
- Removed the `documentTypeCountsAtom` and its associated logic from the document query atoms.
- Introduced `useZeroDocumentTypeCounts` hook to provide real-time document type counts, enhancing responsiveness as documents are indexed.
- Updated components to utilize the new hook for fetching document type counts, ensuring instant updates in the UI.
2026-03-27 12:04:01 +05:30
likiosliu
e5cabf95e4 fix: clean up recursive setTimeout calls in onboarding tour
- Add cancelled flag to prevent state updates after unmount in
  checkAndStartTour retry loop
- Store retry timer ID in a ref and clear it on cleanup in
  updateTarget effect

Closes #950
2026-03-25 22:09:56 +08:00
Anish Sarkar
ed3443bc9e refactor: remove documents management step from onboarding tour 2026-03-17 02:00:16 +05:30
Anish Sarkar
0edaf429ba feat: enhance onboarding tour and more pages UI
- Added a new joyride step for the upload button to guide users in uploading documents.
- Updated existing tour steps to reflect changes in document management and tool configuration.
- Adjusted tooltip styles for improved visibility and user experience.
- Enhanced MorePagesContent button styling for better interaction feedback.
2026-03-17 01:58:12 +05:30
Anish Sarkar
e3dc2ad39f fix: update icon styling in DocumentsTableShell and enhance mobile rendering conditions in OnboardingTour 2026-02-06 19:25:01 +05:30
Anish Sarkar
ce9e3b01b7 feat: expand onboarding tour with inbox step and update tooltip positioning
- Added a new onboarding tour step for the inbox, guiding users to view mentions and notifications.
- Updated tooltip positioning logic to accommodate the new inbox step, ensuring proper alignment during the tour.
- Enhanced the check for required elements to include the inbox step, improving the tour initiation process.
2026-01-24 19:53:56 +05:30
CREDO23
d689a8728a fix: query key caching for threads 2026-01-08 19:11:26 +02:00
DESKTOP-RTLN3BA\$punk
a6200ee3a2 chore: linting 2026-01-07 19:10:53 -08:00
Anish Sarkar
9f48f22d28 feat: enhance onboarding tour user ID tracking
- Added logic to track previous user ID to detect changes and reset tour state accordingly.
- Updated localStorage checks to ensure the onboarding tour is displayed only for new users who haven't seen it.
- Improved validation logic to prevent auto-marking the tour as seen if the user has existing data.
2026-01-07 01:43:11 +05:30
Anish Sarkar
6939eb975d chore: ran frontend lint 2026-01-06 23:03:51 +05:30
Anish Sarkar
e08eb7920c fix: update the content for document 2026-01-06 23:01:28 +05:30
Anish Sarkar
933917d8fd feat: enhance onboarding tour logic and data handling
- Integrated user data fetching and validation to determine if the onboarding tour should be displayed.
- Improved checks for user status by evaluating threads, documents, and connectors to identify new users.
- Added localStorage management to track whether users have completed or skipped the tour.
- Refactored the tour initiation logic to ensure it only runs when all necessary data is loaded and available.
2026-01-06 22:59:40 +05:30
Anish Sarkar
0621304fbd refactor: enhance onboarding tour UI and functionality
- Updated tooltip and spotlight styles for improved visibility and animation.
- Adjusted background and text colors based on dark mode settings for better user experience.
- Introduced animation for tooltip content changes to enhance user engagement.
- Refactored rendering logic to ensure spotlight updates sync with tooltip animations.
2026-01-06 22:43:59 +05:30
Anish Sarkar
e46a0e0a95 fix: improve onboarding tour functionality and UI
- Updated onboarding tour messages to include Gmail and Drive for better clarity.
- Refactored Spotlight component to enhance element targeting and prevent flickering.
- Optimized rendering logic for Spotlight and TourTooltip to ensure they only display when target data is available.
2026-01-06 22:14:11 +05:30
Anish Sarkar
605edee033 feat: add onboarding tour component and integrate into dashboard layout
- Introduced the OnboardingTour component to guide users through key features.
- Integrated the OnboardingTour into the DashboardClientLayout for improved user experience.
- Updated connector popup and sidebar navigation with data attributes for tour steps.
2026-01-06 21:37:49 +05:30