Commit graph

32 commits

Author SHA1 Message Date
Anish Sarkar
56c5809170 chore: ran linting 2026-04-08 18:23:03 +05:30
SohamBhattacharjee2003
ac554974f6 perf: lazy load video presentation in public chat
Convert GenerateVideoPresentationToolUI from static import to dynamic import
with ssr: false in public-thread.tsx. This prevents Remotion and @babel/standalone
from being bundled in the public chat page.

The main app's assistant-message.tsx already correctly lazy-loads this component,
but the public thread was still using a static import, unnecessarily increasing
the bundle size for public shared chats.

Benefits:
- Removes Remotion and @babel/standalone from public chat bundle
- Reduces initial bundle size for public shared chats
- Video presentations still render correctly when present
- Faster page load for users viewing public chats

Fixes #1145
2026-04-08 06:32:05 +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
04691d572b chore: ran linting 2026-03-30 01:50:41 +05:30
Anish Sarkar
74826b3714 feat: enhance web search tool integration with citation management and UI enhancements 2026-03-30 01:38:36 +05:30
DESKTOP-RTLN3BA\$punk
ccf8454db5 Merge commit '59e21db42b' into dev 2026-03-24 21:20:30 -07:00
Nishant-k-sagar
6f64a2de9b perf: replace img with Next.js Image for avatars 2026-03-24 22:38:21 +00:00
Anish Sarkar
c674fb3054 chore: ran linting 2026-03-25 00:27:24 +05:30
Anish Sarkar
9eb8e4c48d refactor: reintroduce display_image tool for legacy AI generated images handling 2026-03-24 19:13:54 +05:30
Anish Sarkar
c926c3f62e refactor: remove display_image tool and associated UI components to streamline chat functionality 2026-03-24 19:00:55 +05:30
Anish Sarkar
337bab3650 refactor: add placeholder implementations for link_preview, multi_link_preview, and scrape_webpage tools in assistant-message and public-thread components 2026-03-24 18:57:14 +05:30
Anish Sarkar
3f4e1a7dfd refactor: remove frontend of scrape_webpage tool 2026-03-24 18:55:06 +05:30
Anish Sarkar
a009cae62a refactor: remove link_preview tool and associated components to streamline agent functionality 2026-03-24 17:15:29 +05:30
Anish Sarkar
6c507989d2 refactor: remove display_image tool and update related components to streamline image handling 2026-03-24 16:28:11 +05:30
Anish Sarkar
e587b588c9 refactor: migrate thinking steps handling to new data structure and streamline related components 2026-03-24 02:23:05 +05:30
Anish Sarkar
b8f3f41326 refactor: update dependencies and streamline assistant-ui package usages 2026-03-24 02:22:51 +05:30
Anish Sarkar
5c598e8588 Merge remote-tracking branch 'upstream/dev' into feat/human-in-the-loop 2026-03-22 15:45:45 +05:30
DESKTOP-RTLN3BA\$punk
b28f135a96 feat: init video presentation agent 2026-03-21 22:13:41 -07:00
Anish Sarkar
6f82a8ff9c refactor: enhance Navbar component to accept custom background class for scrolled state; update PublicChatView and PublicThread styles for consistency 2026-03-21 22:16:48 +05:30
DESKTOP-RTLN3BA\$punk
a8c1aa28c0 feat: remove pandoc and its respective engine dependencies 2026-02-13 01:34:43 -08:00
Anish Sarkar
e4244829ae feat: integrate report panel into chat interface
- Added a new ReportPanel component to display report details inline within the chat interface.
- Updated NewChatPage and PublicChatView to include the ReportPanel, enhancing user experience by allowing report viewing alongside chat interactions.
- Introduced report panel state management with Jotai atoms to control visibility and data handling.
- Refactored existing components to accommodate the new report panel layout and functionality.
2026-02-11 18:50:57 +05:30
Anish Sarkar
acad8c6d2b feat: implement report generation tool and associated routes for CRUD operations
- Added a new tool for generating structured Markdown reports based on user input.
- Implemented routes for creating, reading, exporting, and deleting reports.
- Integrated report generation into the chat flow, allowing users to generate reports inline.
- Updated schemas to support report data structures and responses.
- Enhanced frontend components to handle report generation and display results.
2026-02-11 17:55:52 +05:30
DESKTOP-RTLN3BA\$punk
db652116d6 chore: linting 2026-02-09 16:49:11 -08:00
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
8d9dfc7aa4 feat: add graceful public chat not found page 2026-02-02 20:08:38 +02:00
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
ee65e1377f feat: improve public chat UI and shared components 2026-01-26 18:39:59 +02:00
CREDO23
37adc54d6a feat: add public chat frontend 2026-01-26 17:08:26 +02:00