SurfSense/surfsense_web/components/assistant-ui
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
..
connector-popup chore: ran linting 2026-04-08 18:23:03 +05:30
assistant-message.tsx chore: ran linting 2026-04-08 18:23:03 +05:30
chat-session-status.tsx feat: added incentive credits system 2026-01-26 23:32:30 -08:00
citation-metadata-context.tsx feat: add mobile citation drawer and enhance citation metadata context for improved citation management 2026-03-30 02:06:57 +05:30
connector-popup.tsx refactor: optimize navigation items in LayoutDataProvider, enhance button layout in InboxSidebar with tooltip support, full width in PageUsageDisplay 2026-04-06 12:14:17 +05:30
document-upload-popup.tsx chore: ran linting 2026-04-08 18:23:03 +05:30
edit-composer.tsx chore: ran frontend linting 2026-01-01 22:24:42 +05:30
image.tsx chore: ran linting 2026-04-07 05:55:39 +05:30
inline-citation.tsx chore: ran linting 2026-04-03 13:14:40 +05:30
inline-mention-editor.tsx perf: remove react-dom/server from client bundle 2026-04-09 05:10:16 -07:00
markdown-code-block.tsx feat(web): lazy-load markdown syntax highlighter 2026-03-28 04:22:17 -04:00
markdown-text.tsx chore: ran linting 2026-03-30 01:50:41 +05:30
thinking-steps.tsx chore: linting 2026-03-31 14:45:46 -07:00
thread-list.tsx chore: ran linting 2026-04-07 05:55:39 +05:30
thread-scroll-to-bottom.tsx feat: update UI components to utilize new main panel styling 2026-03-17 01:09:15 +05:30
thread.tsx Merge branch 'dev' into fix/replace-transition-all-with-specific-transitions 2026-04-08 05:38:30 +05:30
tool-fallback.tsx chore: ran linting 2026-04-07 05:55:39 +05:30
tooltip-icon-button.tsx chore: ran linting 2026-04-08 18:23:03 +05:30
user-message.tsx refactor: simplify author metadata handling in NewChatPage and UserMessage components 2026-03-29 16:11:00 +05:30