Skip to content

Rename resource 'Export JSON' action to 'View JSON' and clarify secret warning scope#18107

Open
nanookclaw wants to merge 1 commit into
microsoft:mainfrom
nanookclaw:fix/export-json-visualizer-text
Open

Rename resource 'Export JSON' action to 'View JSON' and clarify secret warning scope#18107
nanookclaw wants to merge 1 commit into
microsoft:mainfrom
nanookclaw:fix/export-json-visualizer-text

Conversation

@nanookclaw

Copy link
Copy Markdown
Contributor

What

Renames the resource Actions menu item Export JSON to View JSON, and clarifies the sensitive-value confirmation message in the Text Visualizer dialog. Closes #17690.

Why

The Export JSON action does not export a file — it opens the Text Visualizer dialog. The name implies a direct download, which mismatches the actual behavior. This applies View JSON (issue Option A: rename) to the resource menu, accurately describing what the action does. The braces icon and existing click behavior are unchanged.

The confirmation message previously read "...In the future, opening the text visualizer will automatically display all values", where the scope of "in the future" was ambiguous (this session? this resource? permanent?). The acknowledgement is persisted in browser local storage, so the wording is updated to "In this browser, opening the text visualizer in the future will automatically display all values" to reflect the real, browser-scoped persistence.

Notes

  • A new ViewJson resource string is added rather than repurposing ExportJson, since ExportJson is still used by the traces/spans/structured-log menus. New .xlf units are emitted with state="new"; the changed Dialogs description resets affected locale targets to needs-review-translation, matching the standard xliff-tasks output.
  • ResourceMenuBuilderTests assertions updated to the new key.

Local build/test verification was blocked: the repo pins SDK 10.0.201 via global.json and ./restore.sh cannot fetch it in this offline environment. Changes were validated by static cross-checks (resx/Designer/xlf key consistency, XML well-formedness) and an independent diff review.

@nanookclaw nanookclaw requested a review from JamesNK as a code owner June 11, 2026 04:33
Copilot AI review requested due to automatic review settings June 11, 2026 04:33
@nanookclaw nanookclaw requested a review from adamint as a code owner June 11, 2026 04:33

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.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

This PR renames the "Export JSON" resource menu item to "View JSON" and updates the text visualizer secret warning description to clarify that the preference is browser-specific ("In this browser, opening the text visualizer in the future...").

Changes:

  • Renamed the resource menu item from "Export JSON" to "View JSON" in the resource menu builder and added a new ViewJson localization string across all language XLF files.
  • Updated the TextVisualizerSecretWarningDescription source string to clarify the scope is browser-specific, marking all translations as needs-review-translation.
  • Updated tests to assert against the new ViewJson localized string.

Reviewed changes

Copilot reviewed 30 out of 32 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/Aspire.Dashboard/Model/ResourceMenuBuilder.cs Changed menu item text reference from ExportJson to ViewJson
src/Aspire.Dashboard/Resources/ControlsStrings.resx Added new ViewJson resource string
src/Aspire.Dashboard/Resources/Dialogs.resx Updated TextVisualizerSecretWarningDescription source text
src/Aspire.Dashboard/Resources/xlf/ControlsStrings.*.xlf Added ViewJson trans-unit with state="new"
src/Aspire.Dashboard/Resources/xlf/Dialogs.*.xlf Updated source and set target state to needs-review-translation
tests/Aspire.Dashboard.Tests/Model/ResourceMenuBuilderTests.cs Updated test assertions from ExportJson to ViewJson
Files not reviewed (2)
  • src/Aspire.Dashboard/Resources/ControlsStrings.Designer.cs: Language not supported
  • src/Aspire.Dashboard/Resources/Dialogs.Designer.cs: Language not supported

@github-actions

github-actions Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 18107

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 18107"

@@ -523,6 +523,9 @@
<data name="ExportJson" xml:space="preserve">

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is ExportJson used anymore? Can it be removed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Removed in 268b84b23; the menu code already moved to ViewJson, so the old ExportJson resource/designer/XLIFF entries are gone now.

</data>
<data name="TextVisualizerSecretWarningDescription" xml:space="preserve">
<value>Confirm you want to show the value. In the future, opening the text visualizer will automatically display all values</value>
<value>Confirm you want to show the value. In this browser, opening the text visualizer in the future will automatically display all values</value>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I like this more:

Suggested change
<value>Confirm you want to show the value. In this browser, opening the text visualizer in the future will automatically display all values</value>
<value>Confirm you want to show this value. Once confirmed, the text visualizer in the browser will show values automatically</value>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Applied in 268b84b23.

@nanookclaw nanookclaw force-pushed the fix/export-json-visualizer-text branch from cfccb7f to 268b84b Compare June 11, 2026 07:07
@JamesNK JamesNK enabled auto-merge (squash) June 12, 2026 07:09
@JamesNK

JamesNK commented Jun 12, 2026

Copy link
Copy Markdown
Member

Thanks!

@github-actions

Copy link
Copy Markdown
Contributor

Re-running the failed jobs in the CI workflow for this pull request because 1 job was identified as retry-safe transient failures in the CI run attempt.
GitHub was asked to rerun all failed jobs for that attempt, and the rerun is being tracked in the rerun attempt.
The job links below point to the failed attempt jobs that matched the retry-safe transient failure rules.

@adamint adamint left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me. I reviewed the dashboard string/localization updates and didn't find any blocking issues.

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.

Dashboard: "Export JSON" resource action opens Text Visualizer instead of direct download; name and sensitive-value message need improvement

4 participants