mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-28 05:46:58 +02:00
Three changes to address the performance freeze when opening issues with thousands of timeline entries from the Inbox: 1. Truncate initial timeline to ~50 most recent groups with a "Show earlier entries" button. When a highlightCommentId is provided (e.g. from Inbox click), the full timeline is expanded automatically so scroll-to-comment still works. 2. Wrap CommentCard with React.memo so parent re-renders (from Inbox WS events, state changes in IssueDetail) skip reconciliation of unchanged comment trees. 3. Wrap ReadonlyContent with React.memo so the heavy markdown pipeline (react-markdown + rehype-raw + rehype-sanitize + rehype-katex + lowlight) is skipped when content/className haven't changed. Closes #1968 Co-authored-by: multica-agent <github@multica.ai>