Commit graph

31 commits

Author SHA1 Message Date
barry3406
d9841cb798 perf: remove react-dom/server from client bundle
Replace ReactDOMServer.renderToString with a client-side helper using
createRoot + flushSync to render small icon elements to HTML strings.

react-dom/server pulls the entire server rendering runtime into the
client JS bundle. Since this file is imported by the main chat
component (thread.tsx), the extra weight hits every chat page load.

react-dom and react-dom/client are already in the client bundle, so
the replacement adds zero new bundle weight.

Fixes #1189
2026-04-09 05:10:16 -07:00
DESKTOP-RTLN3BA\$punk
49441233e7 feat: enhance keyboard shortcut management and improve app responsiveness
- Updated the development script to include a build step before launching the app.
- Refactored the registration of quick ask and autocomplete functionalities to be asynchronous, ensuring proper initialization.
- Introduced IPC channels for getting and setting keyboard shortcuts, allowing users to customize their experience.
- Enhanced the platform module to support better interaction with the Electron API for clipboard operations.
- Improved the user interface for managing keyboard shortcuts in the settings dialog, providing a more intuitive experience.
2026-04-07 00:43:40 -07:00
Anish Sarkar
04691d572b chore: ran linting 2026-03-30 01:50:41 +05:30
CREDO23
cfddfa54c6 fix: harden quick-ask panel, prompt handling, and clipboard UX 2026-03-29 02:54:48 +02:00
CREDO23
407059ce84 add action chip in composer with prompt prepend at send time 2026-03-28 23:45:11 +02:00
CREDO23
cb6f4562de add / action trigger to InlineMentionEditor 2026-03-28 23:12:33 +02:00
CREDO23
7cbb67f0dd scroll to cursor after inserting clipboard text 2026-03-25 16:36:52 +02:00
CREDO23
f3d6ae95e1 fix: pull-based clipboard text and cursor at end with br 2026-03-25 16:22:32 +02:00
CREDO23
4a5a28805d start at /dashboard, focus cursor after clipboard text 2026-03-25 16:08:39 +02:00
CREDO23
f9be80ab76 re-add initialText prop to InlineMentionEditor 2026-03-24 19:26:13 +02:00
CREDO23
59e7f8f068 remove tray and clipboard-to-chat feature 2026-03-24 19:12:04 +02:00
CREDO23
9e058e1329 chore: clean up comments in editor and composer 2026-03-20 20:35:29 +02:00
CREDO23
5ab534511c feat(web): add initialText prop to InlineMentionEditor 2026-03-20 20:26:33 +02:00
Anish Sarkar
f8b0e946ce chore: ran linting 2026-03-07 04:46:48 +05:30
Anish Sarkar
58f620482f refactor: improve inline mention editor by enhancing chip element interactions and responsiveness for mobile and desktop devices 2026-03-06 16:07:34 +05:30
Anish Sarkar
3be26429ca refactor: integrate sidebar document selections into chat functionality, enhancing document mention management and improving user experience in the Composer and DocumentsSidebar components 2026-03-06 15:59:45 +05:30
Anish Sarkar
f0e4aa6539 refactor: enhance document mention functionality in chat by introducing pending mentions and removals atoms, and updating DocumentsSidebar and Composer components for improved document management 2026-03-06 15:35:58 +05:30
DESKTOP-RTLN3BA\$punk
5825ab9884 feat: updated homepage
- Added the 'lenis' library for smooth scrolling functionality.
- Integrated 'UseCasesGrid' component into the homepage layout.
- Updated 'HeroSection' to replace image elements with 'WalkthroughScroll' for enhanced user experience.
2026-02-16 05:50:47 -08:00
DESKTOP-RTLN3BA\$punk
28d93aed2a feat: enhance inline mention editor to preserve mention tokens
- Updated the text extraction logic to include inline mention tokens for chips, maintaining the original query structure sent to the backend.
- Refactored the text extraction process to improve readability and efficiency.
2026-02-16 01:34:36 -08:00
DESKTOP-RTLN3BA\$punk
c979609041 feat: simplified document upload handling
- Introduced a new endpoint for batch document status retrieval, allowing users to check the status of multiple documents in a search space.
- Enhanced the document upload process to return duplicate document IDs and improved response structure.
- Updated schemas to include new response models for document status.
- Removed unused attachment processing code from chat routes and UI components to streamline functionality.
2026-02-09 16:46:54 -08:00
Eric Lammertsma
b91e730963 feat: implement cycling onboarding placeholders in chat input 2026-02-01 17:26:50 -05:00
DESKTOP-RTLN3BA\$punk
d96ae66012 chore: linting 2026-01-20 00:32:31 -08:00
Anish Sarkar
685774ecb7 refactor: improve document mention editor and picker functionality
- Updated InlineMentionEditor to enhance visual styling of mention chips.
- Refactored DocumentMentionPicker to streamline the rendering of the document selection popover and improve keyboard navigation with smooth scrolling.
- Enhanced user experience by ensuring the mention mode remains active during search without closing the popup when no results are found.
2026-01-17 23:36:37 +05:30
Anish Sarkar
0b5568d7ab feat: enhance document mention editor and picker for better user experience
- Added document type icons in InlineMentionEditor for improved visual context.
- Updated DocumentMentionPicker to include client-side filtering, reducing false positives in search results.
- Enhanced loading state management by incorporating fetching indicators for better UX during data retrieval.
2026-01-17 22:25:40 +05:30
DESKTOP-RTLN3BA\$punk
25b9118306 feat: implement search space deletion and fixed rback issues with shared chats 2026-01-13 01:45:58 -08:00
CREDO23
cd3677b5fa feat: add SurfSense docs mention support in chat 2026-01-13 06:14:58 +02:00
DESKTOP-RTLN3BA\$punk
7f809ffa1b chore: linting 2025-12-25 11:42:12 -08:00
Anish Sarkar
2fdf567b71 refactor: replace DocumentsDataTable with DocumentMentionPicker for improved document selection
- Introduced DocumentMentionPicker component to enhance document selection experience in the chat interface.
- Updated InlineMentionEditor and Composer components to utilize the new DocumentMentionPicker.
- Removed the deprecated DocumentsDataTable component to streamline the codebase and improve maintainability.
- Enhanced type safety and validation in document handling logic.
2025-12-26 00:41:14 +05:30
Anish Sarkar
eb6192d480 chore: fix formatting 2025-12-25 14:29:44 +05:30
Anish Sarkar
7c8e269190 refactor: enhance InlineMentionEditor and Composer auto-focus functionality
- Refactored InlineMentionEditor to improve caret position handling and mention triggering logic.
- Removed unnecessary caret position saving and restoring functions for cleaner code.
- Updated mention handling to ensure proper closing of mention popover based on cursor position.
- Added auto-focus feature in Composer for new chat threads, enhancing user experience.
- Implemented checks to reset auto-focus when the thread is no longer empty.
2025-12-25 14:19:22 +05:30
Anish Sarkar
533084b433 feat: add InlineMentionEditor component for document mentions
- Introduced InlineMentionEditor to allow users to mention documents inline using '@'.
- Integrated the new editor into the Composer component, replacing the previous textarea input.
- Implemented functionality for handling document chips, mention triggers, and document removal.
- Enhanced user experience with real-time updates and improved keyboard navigation for mentions.
2025-12-25 13:44:18 +05:30