Skip to content

Improve rewritten preview renderers - #1753

Merged
cyanzhong merged 1 commit into
mainfrom
develop
Sep 17, 2026
Merged

cyanzhong merged 1 commit into
mainfrom
develop

Conversation

@cyanzhong

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No unresolved blocking issues were identified.

Pull request overview

Improves preview rendering with live theme synchronization, Mermaid rerendering, and refined layout styling.

Changes:

  • Synchronizes colors across overlays and preview frames.
  • Handles serialized Mermaid theme updates.
  • Refines table, SVG, and close-button styling.
  • Adds regression tests.
File summaries
File Description
CoreEditor/test/previewFrame.test.ts Tests frame color updates and cleanup.
CoreEditor/test/preview.test.ts Tests overlay updates and Mermaid rerendering.
CoreEditor/src/styling/config.ts Dispatches color-change notifications.
CoreEditor/src/modules/preview/renderers/mermaid.ts Supports serialized theme-aware rerendering.
CoreEditor/src/modules/preview/overlay.ts Updates overlay colors and removes listeners on close.
CoreEditor/src/modules/preview/index.css Updates close-button styling.
CoreEditor/src/modules/preview/frame/style.css Refines table and SVG layout.
CoreEditor/src/modules/preview/frame/script.js Handles preview color messages.
CoreEditor/src/modules/preview/frame/index.ts Sends colors to frames and cleans up listeners.
Review details
  • Files reviewed: 9/9 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@cyanzhong
cyanzhong merged commit 3378b2c into main Sep 17, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants