Commit graph

41 commits

Author SHA1 Message Date
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
CREDO23
8d60fc7279 remove searchSpacesAtom from quick-ask, forward params via dashboard 2026-03-27 18:41:58 +02:00
Anish Sarkar
ba304be977 fix: remove message from loading UI 2026-01-27 15:28:30 +05:30
Anish Sarkar
66a3c877ef feat: replace unified loading approach with global loading provider and refactor loading handling across components
- Introduced GlobalLoadingProvider to manage a consistent loading overlay across the application.
- Replaced existing loading implementations with useGlobalLoadingEffect hook for better control and to prevent animation resets.
- Updated components such as LoginPage, AuthCallbackPage, and DashboardLayout to utilize the new global loading mechanism.
- Removed UnifiedLoadingScreen component to streamline loading management and enhance user experience.
2026-01-25 16:15:25 +05:30
Anish Sarkar
22bd5e0f39 feat: implement unified loading screens across various components
- Introduced a new UnifiedLoadingScreen component for consistent loading indicators in the application.
- Replaced existing loading implementations in LoginPage, AuthCallbackPage, DashboardLayout, and other components with the new unified loading screen.
- Updated translations for loading messages to enhance user experience and clarity.
- Improved loading states in the ElectricProvider and TokenHandler components to utilize the new loading screen, ensuring a cohesive look and feel during loading processes.
2026-01-24 19:42:07 +05:30
DESKTOP-RTLN3BA\$punk
73a57589ac chore: linting 2026-01-12 14:17:15 -08:00
CREDO23
0d4d227c26 Replace aggressive dialog with friendly empty state for new users 2026-01-12 16:55:05 +02:00
CREDO23
38fd1995aa Refactor dashboard with smart redirect and AllSearchSpacesSheet 2026-01-12 16:38:40 +02:00
CREDO23
a5d47cae31 Merge remote-tracking branch 'upstream/dev' into sur-70-feature-streamline-onboarding-auto-create-default-workspace 2026-01-09 14:56:41 +02:00
CREDO23
a099bcf5fb refactor: remove frontend auto-create search space logic
- Removed auto-creation of default search space from frontend dashboard
- Frontend now only handles auto-redirect for users with exactly 1 search space
- All default search space creation should be handled by backend on_after_register
2026-01-09 14:47:00 +02:00
DESKTOP-RTLN3BA\$punk
2e8d3fd721 feat: updated logo 2026-01-08 23:03:43 -08:00
CREDO23
1d3fd8d47c remove redundant comments 2026-01-07 18:34:51 +02:00
CREDO23
edc5f379d3 auto-redirect only for single search space users 2026-01-07 18:33:32 +02:00
CREDO23
2f8919baef auto-redirect to chat on dashboard load 2026-01-07 17:22:49 +02:00
Anish Sarkar
ed6470525a feat: Enhance mobile navbar animations and responsiveness across various components 2025-12-29 00:24:49 +05:30
Anish Sarkar
dee18233c5 feat: Implement responsive design for dashboard layout and user dropdown, and remove unused imports. 2025-12-29 00:06:38 +05:30
DESKTOP-RTLN3BA\$punk
c2dcb2045d feat: added attachment support 2025-12-21 22:26:33 -08:00
DESKTOP-RTLN3BA\$punk
c768730b8c feat: fixed issues of note management
Issues Fixed

- Missing pagination fields in API response schemas (page, page_size, has_more)
- NOTE enum missing from frontend Zod schema
- Missing fields in DocumentRead response construction (content_hash, updated_at)
- BlockNote slash menu clipped by overflow-hidden CSS
- Sidebar click conflicts - hidden action buttons intercepting clicks
- Rewrote All Notes sidebar - replaced fragile custom portal with shadcn Sheet
- Missing translation keys for new UI strings
- Missing NOTE retrieval logic in researcher agent
- Added search to All Notes sidebar
- Removed frontend logging - was causing toasters on every page refresh
- Added backend logging to document reindex Celery task
2025-12-17 00:09:43 -08:00
Rohan Verma
f18425d739
Merge pull request #589 from AnishSarkar22/feature/note-management
Feature: Note Management system
2025-12-16 22:44:57 -08:00
Anish Sarkar
4cef8cc93f feat: enhance validation and formatting in editor and sidebar components 2025-12-16 21:27:31 +05:30
CREDO23
6b266ff128 refactor: migrate dashboard page from useUser to currentUserAtom 2025-12-16 05:26:43 +00:00
CREDO23
734265c645 feat: migrate dashboard page to use searchSpacesAtom and deleteSearchSpaceMutationAtom 2025-12-15 08:18:35 +00:00
DESKTOP-RTLN3BA\$punk
3a3712ceac refactor(ux): Update dashboard links and enhance settings page layout
- Changed document links to point to the researcher page in the dashboard.
- Removed unused team and settings links from the dashboard layout.
- Redesigned settings page with a sidebar for navigation and improved layout for better user experience.
- Added delete confirmation dialog for model configurations in the settings manager.
- Updated card components for better visual consistency and responsiveness.
2025-12-13 22:43:38 -08:00
DESKTOP-RTLN3BA\$punk
b2a97b39ce refactor: centralize authentication handling
- Replaced direct localStorage token access with a centralized `getBearerToken` function across various components and hooks to improve code maintainability and security.
- Updated API calls to use `authenticatedFetch` for consistent authentication handling.
- Enhanced user experience by ensuring proper redirection to login when authentication fails.
- Cleaned up unused imports and improved overall code structure for better readability.
2025-12-02 01:24:09 -08:00
DESKTOP-RTLN3BA\$punk
e9d32c3516 feat: Implement Role-Based Access Control (RBAC) for search space resources.
-Introduce granular permissions for documents, chats, podcasts, and logs.
- Update routes to enforce permission checks for creating, reading, updating, and deleting resources. - Refactor user and search space interactions to align with RBAC model, removing ownership checks in favor of permission validation.
2025-11-27 22:45:04 -08:00
thierryverse
78ab020d80 organize seach space apis 2025-11-17 08:09:17 +02:00
DESKTOP-RTLN3BA\$punk
4dd7e8fc1f chore: Updated UserRead schema to include pages_limit and pages_used fields
- Expanded installation options in README to include SurfSense Cloud as a new method.
- Updated UserRead schema to include pages_limit and pages_used fields.
- Added AnnouncementBanner component to the dashboard layout for improved user notifications.
- Refactored DashboardPage to utilize useUser hook for user state management.
- Integrated page usage display in AppSidebar to show user-specific page limits and usage.
- Removed deprecated apiClient code and replaced it with hooks for better API interaction.
2025-11-03 22:34:37 -08:00
DESKTOP-RTLN3BA\$punk
a3a5b13f48 chore: linting 2025-11-03 16:00:58 -08:00
msinha569
d59478e23b Search Space container not fully clickable on dashboard #453 2025-10-31 18:55:26 +05:30
DESKTOP-RTLN3BA\$punk
81ddc81026 feat(removed): sub_section_writer
- Its bad and not needed.
2025-10-27 20:30:10 -07:00
Differ
f58c7e4602 feat(i18n): Add next-intl framework with full bilingual support (EN/ZH)
- Implement next-intl framework for scalable i18n
- Add complete Chinese (Simplified) localization
- Support 400+ translated strings across all pages
- Add language switcher with persistent preference
- Zero breaking changes to existing functionality

Framework additions:
- i18n routing and middleware
- LocaleContext for client-side state
- LanguageSwitcher component
- Translation files (en.json, zh.json)

Translated components:
- Homepage: Hero, features, CTA, navbar
- Auth: Login, register
- Dashboard: Main page, layout
- Connectors: Management, add page (all categories)
- Documents: Upload, manage, filters
- Settings: LLM configs, role assignments
- Onboarding: Add provider, assign roles
- Logs: Task logs viewer

Adding a new language now requires only:
1. Create messages/<locale>.json
2. Add locale to i18n/routing.ts
2025-10-26 17:18:57 +08:00
DESKTOP-RTLN3BA\$punk
811a9ad061 biome checks 2025-10-04 12:20:28 -07:00
DESKTOP-RTLN3BA\$punk
1a3faf03d5 feat: added contact and pricing
- Updated framer motion
2025-09-30 20:27:34 -07:00
DESKTOP-RTLN3BA\$punk
d804be5fb3 fix: Streaming Dulplicate Sources & Delete Search Space UI 2025-08-19 11:05:12 -07:00
Utkarsh-Patel-13
07063a1a18 Biome: fixes for app/dashboard/(api-key, searchspaces) directories 2025-07-27 10:54:25 -07:00
Utkarsh-Patel-13
758603b275 Initial formatting using biome 2025-07-27 10:05:37 -07:00
MSI\ModSetter
d103e21a68 feat(FRONTEND): Moved User Dropdown to Search Space Dashboard 2025-07-17 04:10:24 -07:00
DESKTOP-RTLN3BA\$punk
521ee4a1c4 feat: Removed Hard Dependecy on Google Auth
- Introduced LOCAL auth mode
2025-05-21 20:56:23 -07:00
DESKTOP-RTLN3BA\$punk
e3e5a2fb90 Fix(ui): key prop warning in dashboard page by adding a key to the Link component for each search space. 2025-04-11 19:36:32 -07:00
Adamsmith6300
61ff1582da search card ux updates 2025-04-11 16:54:25 -07:00
DESKTOP-RTLN3BA\$punk
a1474ca49e feat: monorepo 2025-04-07 23:47:06 -07:00