Files
multica/packages
Jiayuan 38e7062b3d fix(views): prevent browser freeze on long-timeline issues in Inbox
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>
2026-05-01 09:08:06 +02:00
..
2026-04-30 12:28:22 +08:00