Repository navigation
Add Markdown descriptions to dashboard text visualizer dialogs - #20819
Conversation
Explain Mermaid exports and keep scrolling within the full-width content viewer. Co-authored-by: Copilot <[email protected]>
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 20819Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 20819" |
Tests selector13 / 98 PR test projects · 2 PR jobs, from 24 changed files. Selected PR test projects (13 / 98)
Selected PR jobs (2)
How these were chosen — grouped by what changed
🔧 📦 affected project 🔧 🧪 🧪 Job reasons
Selection computed for commit |
There was a problem hiding this comment.
🟡 Changes recommended
The consent-gating requirement lacks focused regression coverage for Markdown descriptions.
1 open finding
What changed in this PR
Adds localized Markdown guidance above Mermaid source in the dashboard text visualizer while preserving consent gating and existing copy/download behavior.
Changes:
- Adds optional Markdown descriptions with safe-link rendering.
- Updates dialog sizing and scrolling.
- Adds component coverage and localization resources.
| File | Description |
|---|---|
tests/.../Pages/ResourcesTests.cs |
Verifies Mermaid description wiring. |
tests/.../Controls/TextVisualizerDialogTests.cs |
Tests optional description rendering. |
src/Aspire.Dashboard/wwwroot/css/layout.css |
Sizes dialog content using CSS grid. |
Resources.zh-Hant.xlf |
Adds localization unit. |
Resources.zh-Hans.xlf |
Adds localization unit. |
Resources.tr.xlf |
Adds localization unit. |
Resources.ru.xlf |
Adds localization unit. |
Resources.pt-BR.xlf |
Adds localization unit. |
Resources.pl.xlf |
Adds localization unit. |
Resources.ko.xlf |
Adds localization unit. |
Resources.ja.xlf |
Adds localization unit. |
Resources.it.xlf |
Adds localization unit. |
Resources.fr.xlf |
Adds localization unit. |
Resources.es.xlf |
Adds localization unit. |
Resources.de.xlf |
Adds localization unit. |
Resources.cs.xlf |
Adds localization unit. |
Resources.resx |
Defines the Mermaid description. |
Resources.Designer.cs |
Exposes the localized description. |
TextVisualizerDialogViewModel.cs |
Carries optional Markdown content. |
OpenTextVisualizerDialogOptions.cs |
Accepts an optional description. |
Resources.razor.cs |
Supplies Mermaid guidance to the dialog. |
TextVisualizerDialog.razor.css |
Keeps descriptions stationary while content scrolls. |
TextVisualizerDialog.razor.cs |
Propagates description options. |
TextVisualizerDialog.razor |
Renders gated Markdown descriptions. |
Files not reviewed (1)
- src/Aspire.Dashboard/Resources/Resources.Designer.cs: Generated file
🧠 Review effort: Balanced
Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
|
Since you added SQL colorization, is it also possible to add a mermaid visualizer as an option? (I understand you'd want the text too) |
Documents changes from microsoft/aspire#20819 Co-authored-by: Copilot <[email protected]>
|
Pull request created: #1863
|
|
📝 Documentation has been drafted in microsoft/aspire.dev#1863 targeting PR #20819 adds an optional Markdown description above the text visualizer's content (triggered signals: Note This draft PR needs human review before merging. |

Description
Mermaid graph exports currently show diagram source without explaining the format. This change adds an optional Markdown description above text visualizer content and uses it to explain Mermaid with a link to Aspire's documentation.
No new dependencies are required.
User-facing usage
Open Resources > Graph > Export as Mermaid. Above the diagram source, the dialog now displays:
The source viewer uses the available dialog width. Copy and Download continue to use only the diagram source, not the description.
Screenshots / Recordings
Validation
Targeted component tests: passed, 33 tests, 0 failures, 0 skipped. Build output was isolated to avoid disturbing the running Dashboard:
Dashboard rebuild: passed with 0 warnings and 0 errors. Resource health check: passed.
Localization update: passed with 0 warnings and 0 errors.
Browser verification: passed at 1224x522, 1280x900, 375x667, and 844x390. Confirmed that the container and viewer fill the available content width, only the viewer scrolls, and the description and action buttons remain within the dialog.
Fixes # (issue)
Checklist
<remarks />and<code />elements on your triple slash comments?