Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds an includeTitle option across Mermaid renderers and exposes it via both the CLI and MCP tool APIs, allowing callers to suppress the Mermaid title/frontmatter header (and CLI non-mermaid header rendering).
Changes:
- Add
IncludeTitlesupport to Mermaid graph/ERD/class renderers (and base solution graph console renderer). - Expose
includeTitleas an optional parameter on MCP tools and--titleoption in CLI commands. - Extend unit/contract tests and update docs/specs to reflect the new option.
Reviewed changes
Copilot reviewed 21 out of 21 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/ProjGraph.Tests.Unit.ProjectGraph/MermaidGraphRendererTests.cs | Adds coverage for disabling Mermaid title output. |
| tests/ProjGraph.Tests.Unit.EntityFramework/MermaidErdRendererTests.cs | Adds coverage for enabling/disabling ERD Mermaid title output. |
| tests/ProjGraph.Tests.Unit.ClassDiagram/MermaidClassDiagramRendererTests.cs | Adds coverage for enabling/disabling class diagram Mermaid title output. |
| tests/ProjGraph.Tests.Contract/McpErdContractTests.cs | Updates tool contract to require new includeTitle optional parameter. |
| tests/ProjGraph.Tests.Contract/McpContractTests.cs | Adds tool-count assertion and updates graph tool parameter contract for includeTitle. |
| tests/ProjGraph.Tests.Contract/McpClassDiagramTests.cs | Updates class diagram tool contract to require includeTitle optional parameter. |
| src/ProjGraph.Mcp/README.md | Documents new includeTitle parameter for MCP tools. |
| src/ProjGraph.Mcp/Program.cs | Adds includeTitle parameters and wires them to renderers. |
| src/ProjGraph.Lib.ProjectGraph/Rendering/SolutionGraphRendererBase.cs | Adds IncludeTitle to suppress console header rule. |
| src/ProjGraph.Lib.ProjectGraph/Rendering/MermaidGraphRenderer.cs | Adds IncludeTitle to suppress Mermaid frontmatter/title. |
| src/ProjGraph.Lib.EntityFramework/Rendering/MermaidErdRenderer.cs | Adds IncludeTitle to suppress Mermaid frontmatter/title. |
| src/ProjGraph.Lib.ClassDiagram/Rendering/MermaidClassDiagramRenderer.cs | Adds IncludeTitle to suppress Mermaid frontmatter/title. |
| src/ProjGraph.Cli/README.md | Documents --title usage and settings across commands. |
| src/ProjGraph.Cli/Commands/VisualizeCommand.cs | Adds --title option and threads it into renderer selection. |
| src/ProjGraph.Cli/Commands/ErdCommand.cs | Adds --title option and threads it into the Mermaid ERD renderer. |
| src/ProjGraph.Cli/Commands/ClassDiagramCommand.cs | Adds --title option and threads it into the Mermaid class renderer. |
| specs/003-mermaid-class-diagram/spec.md | Adds includeTitle parameter to spec. |
| specs/002-dbcontext-erd/spec.md | Adds includeTitle parameter to spec. |
| specs/001-cli-graph-rendering/spec.md | Adds includeTitle parameter to spec. |
| samples/visualize/simple-dependencies/README.md | Adjusts code-fence language for sample output block. |
| README.md | Adds example for generating Mermaid without title header. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
src/ProjGraph.Lib.EntityFramework/Rendering/MermaidErdRenderer.cs
Outdated
Show resolved
Hide resolved
src/ProjGraph.Lib.ClassDiagram/Rendering/MermaidClassDiagramRenderer.cs
Outdated
Show resolved
Hide resolved
Owner
Author
|
@copilot review the PR |
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.