SurfSense/surfsense_web/components
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
..
announcements fix: remove unnecessary "use client" from pure presentational components 2026-03-26 11:50:39 +08:00
assistant-ui chore: linting 2026-03-31 21:42:03 -07:00
auth chore: linting 2026-03-27 03:17:05 -07:00
chat-comments chore: linting 2026-03-31 14:45:46 -07:00
connectors feat: enhance OneDrive folder management by adding mimeType handling and integrating DriveFolderTree component for improved UI 2026-03-29 03:29:31 +05:30
contact chore: linting 2026-03-27 03:17:05 -07:00
documents refactor: update document processing status handling and improve sidebar components 2026-03-31 21:29:46 -07:00
editor fix: update save shortcut to use cmd/ctrl+Shift+S for saving in PlateEditor and FixedToolbarButtons 2026-03-22 23:06:18 +05:30
editor-panel chore: linting 2026-03-31 14:45:46 -07:00
hitl-edit-panel chore: linting 2026-03-31 14:45:46 -07:00
homepage feat: update README files to include OneDrive and Dropbox as external sources 2026-03-31 22:36:58 -07:00
icons/providers feat: complete MiniMax LLM provider integration 2026-03-13 07:27:47 +08:00
layout perf: add content-visibility: auto to long list items 2026-04-02 02:26:55 +05:30
new-chat perf: use useDeferredValue for search/filter transitions 2026-04-02 01:45:18 +05:30
pricing feat: integrate Stripe for page purchases and reconciliation tasks 2026-03-31 18:39:45 -07:00
prompt-kit refactor: improve write_todos tool and UI components 2025-12-26 17:49:56 +05:30
providers feat: integrate Stripe for page purchases and reconciliation tasks 2026-03-31 18:39:45 -07:00
public-chat perf: replace useSearchParams() with window.location.search in effects 2026-04-02 02:45:46 +05:30
public-chat-snapshots fix: remove unnecessary "use client" from pure presentational components 2026-03-26 11:50:39 +08:00
report-panel chore: linting 2026-03-31 14:45:46 -07:00
settings chore: linting 2026-03-31 21:42:03 -07:00
shared chore: ran linting 2026-03-30 01:50:41 +05:30
sources refactor: update Alert component styles and structure for improved consistency across connector forms 2026-03-10 19:33:36 +05:30
theme chore: linting 2026-03-27 03:17:05 -07:00
tool-ui chore: linting 2026-03-31 21:42:03 -07:00
ui fix: adjust DrawerHandle dimensions for improved UI consistency 2026-03-30 02:11:42 +05:30
document-viewer.tsx Biome: fixes for compontents directory 2025-07-27 10:41:15 -07:00
inference-params-editor.tsx feat: integrate document upload dialog in ComposerAction and update sidebar components for improved user interaction and styling consistency 2026-03-07 03:29:46 +05:30
json-metadata-viewer.tsx chore: linting 2026-02-09 16:49:11 -08:00
LanguageSwitcher.tsx feat: add support for additional languages in LanguageSwitcher and SidebarUserProfile components 2026-02-11 00:39:01 -08:00
Logo.tsx fix: remove unnecessary "use client" from pure presentational components 2026-03-26 11:50:39 +08:00
markdown-viewer.tsx fix Gmail HTML rendering: unwrap layout tables and use native img 2026-03-10 18:57:49 +02:00
onboarding-tour.tsx chore: linting 2026-03-31 14:45:46 -07:00
pricing.tsx Add index parameter to plans.map callback in Pricing component 2026-03-24 20:44:14 -07:00
search-space-form.tsx ui: adjust dashboard search spaces heading text and padding responsiveness 2026-01-03 01:09:33 +07:00
TokenHandler.tsx perf: replace useSearchParams() with window.location.search in effects 2026-04-02 02:45:46 +05:30
UserDropdown.tsx fix: replace router.push with Link for static navigation in UserDropdown 2026-03-26 11:49:45 +08:00