Commit graph

9 commits

Author SHA1 Message Date
Anish Sarkar
aef4c90107 refactor: update UI components for improved layout in assistant message, public chat footer, and report panel 2026-04-17 09:03:34 +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
Anish Sarkar
e2dd80c604 chore: ran linting 2026-02-08 12:43:31 +05:30
Anish Sarkar
5ab672b8ff refactor: replace Loader2 with Spinner component across various components for consistent loading indicators 2026-02-08 12:39:06 +05:30
CREDO23
98991d2ed4 feat: update UI for snapshot-based public sharing 2026-01-30 14:20:06 +02:00
CREDO23
9a4da10b12 feat(frontend): two-phase cloning with loading state 2026-01-28 00:17:44 +02:00
CREDO23
988847922f feat: clone notifications UI and PGlite resync on clone 2026-01-27 10:22:38 +02:00
CREDO23
0ad59edda0 feat: auto-trigger clone after login redirect 2026-01-27 09:38:52 +02:00
CREDO23
37adc54d6a feat: add public chat frontend 2026-01-26 17:08:26 +02:00