Skip to content

Merge main to release-1.1#1811

Merged
LeighFinegold merged 10 commits intorelease-1.1from
main
Nov 18, 2025
Merged

Merge main to release-1.1#1811
LeighFinegold merged 10 commits intorelease-1.1from
main

Conversation

@rocketstack-matt
Copy link
Member

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR merges changes from main into release-1.1, primarily introducing a mermaidId helper function to sanitize node identifiers in Mermaid diagrams. This prevents conflicts with Mermaid's reserved keywords by prefixing problematic identifiers with "node_".

Key changes:

  • Introduction of mermaidId helper function across three locations (docusaurus-transformer, widget-helpers, and utils) to handle Mermaid reserved word conflicts
  • Comprehensive updates to all Handlebars templates to use the new mermaidId helper for node IDs in Mermaid diagrams
  • HTML entity decoding before rendering Mermaid diagrams in the VSCode extension
  • Version bumps for CLI (1.14.1 → 1.14.2) and VSCode plugin (0.0.8 → 0.0.9)

Reviewed Changes

Copilot reviewed 21 out of 21 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
shared/src/docify/template-bundles/docusaurus/relationships.hbs Updated all node ID references to use mermaidId helper for safe Mermaid rendering
shared/src/docify/template-bundles/docusaurus/docusaurus-transformer.ts Added mermaidId helper implementation with reserved word detection and prefixing
cli/package.json Version bump from 1.14.1 to 1.14.2
cli/CHANGELOG.md Added changelog entry for version 1.14.2
calm-widgets/src/widgets/related-nodes/related-nodes-template.hbs Applied mermaidId helper to node IDs in relationship template
calm-widgets/src/widgets/related-nodes/interacts-relationship.hbs Applied mermaidId helper to interacts relationship nodes
calm-widgets/src/widgets/related-nodes/deployed-in-relationship.hbs Applied mermaidId helper to deployed-in relationship nodes
calm-widgets/src/widgets/related-nodes/connects-relationship.hbs Applied mermaidId helper to connects relationship nodes
calm-widgets/src/widgets/related-nodes/composed-of-relationship.hbs Applied mermaidId helper to composed-of relationship nodes
calm-widgets/src/widgets/block-architecture/typed-node.hbs Applied mermaidId helper to all node type shapes and class declarations
calm-widgets/src/widgets/block-architecture/core/utils.ts Added mermaidId function to sanitize IDs for Mermaid diagrams
calm-widgets/src/widgets/block-architecture/core/utils.spec.ts Added comprehensive tests for mermaidId function behavior
calm-widgets/src/widgets/block-architecture/container.hbs Applied mermaidId helper to container subgraphs and nodes
calm-widgets/src/widgets/block-architecture/click-links.hbs Applied mermaidId helper to click event bindings
calm-widgets/src/widgets/block-architecture/block-architecture.hbs Applied mermaidId helper to nodes, edges, attachments, and highlights
calm-widgets/src/widget-helpers.ts Added mermaidId Handlebars helper with sanitization and reserved word handling
calm-widgets/src/widget-helpers.spec.ts Added comprehensive tests for mermaidId Handlebars helper
calm-plugins/vscode/src/features/preview/webview/mermaid-renderer.ts Added HTML entity decoding before rendering Mermaid diagrams for security
calm-plugins/vscode/src/features/preview/docify-tab/view/docify-tab.view.ts Updated node ID extraction to handle node_ prefix added by mermaidId helper
calm-plugins/vscode/package.json Version bump from 0.0.8 to 0.0.9
.vscode/settings.json Changed Java VM arguments from ParallelGC with 4GB to G1GC with 2GB heap

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@LeighFinegold LeighFinegold merged commit 1d14f89 into release-1.1 Nov 18, 2025
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants