Skip to content

Add run persistence help to dashboard - #20469

Merged
James Newton-King (JamesNK) merged 5 commits into
mainfrom
dashboard-run-help
Sep 25, 2026
Merged

James Newton-King (JamesNK) merged 5 commits into
mainfrom
dashboard-run-help

Conversation

@JamesNK

@JamesNK James Newton-King (JamesNK) commented Sep 25, 2026 •

Copy link
Copy Markdown
Member

Description

The dashboard run selector doesn't currently explain what runs are or how persisted runs behave. This adds a separated Learn about runs option at the bottom of the menu so users can discover the run persistence documentation without adding more header UI.

The help option summarizes live, historical, and pinned runs in its tooltip and opens https://aka.ms/aspire/run-persistence in a new window. External-link menu item construction is shared with resource URL menu items.

The run button's light-theme hover and pressed states are also slightly lighter, while the existing dark-theme colors are preserved.

User-facing usage

Open the run selector in the dashboard header and select Learn about runs to open the run persistence documentation.

Screenshots / Recordings

Dashboard Run menu close-up Light-theme hover
Dashboard with the run menu open Run menu showing the Learn about runs option Run button with its lighter hover state

Validation

  • dotnet build /t:UpdateXlf .\src\Aspire.Dashboard\Aspire.Dashboard.csproj
  • dotnet test --project .\tests\Aspire.Dashboard.Components.Tests\Aspire.Dashboard.Components.Tests.csproj --configuration Release --no-launch-profile -- --filter-class "*.MainLayoutTests" --filter-not-trait "quarantined=true" --filter-not-trait "outerloop=true" (43 passed)
  • Focused tooltip test (1 passed)
  • Manually verified the light-theme hover/pressed variables and unchanged dark-theme override in TestShop

Fixes # (issue)

Checklist

  • Is this feature complete?
    • Yes. Ready to ship.
    • No. Follow-up changes expected.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
    • No
  • Did you add public API?
    • Yes
      • If yes, did you have an API Review for it?
        • Yes
        • No
      • Did you add <remarks /> and <code /> elements on your triple slash comments?
        • Yes
        • No
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
      • If yes, have you done a threat model and had a security review?
        • Yes
        • No
    • No

@github-actions

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 -- 20469

Or

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

@github-actions

This comment has been minimized.

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.

Copilot review overview

🟢 Approval recommended

The focused UI behavior, shared helper refactor, localization artifacts, and regression coverage are consistent and complete.

Review effort: Balanced
Findings: None

What changed in this PR

Adds discoverable run-persistence help to the dashboard run selector.

Changes:

  • Adds a separated “Learn about runs” external documentation item.
  • Shares external-link menu-item construction with resource URLs.
  • Adds localized resources and updates component tests.
File Description
src/​Aspire.Dashboard/​Components/​Controls/​DashboardRunSelect.razor.cs Adds the help menu item.
src/​Aspire.Dashboard/​Model/​MenuButtonItem.cs Adds an external-link factory.
src/​Aspire.Dashboard/​Model/​ResourceMenuBuilder.cs Reuses the external-link factory.
src/​Aspire.Dashboard/​Resources/​Layout.resx Adds help strings.
src/​Aspire.Dashboard/​Resources/​Layout.Designer.cs Exposes generated resource properties.
src/​Aspire.Dashboard/​Resources/​xlf/​Layout.cs.xlf Updates Czech localization inputs.
src/​Aspire.Dashboard/​Resources/​xlf/​Layout.de.xlf Updates German localization inputs.
src/​Aspire.Dashboard/​Resources/​xlf/​Layout.es.xlf Updates Spanish localization inputs.
src/​Aspire.Dashboard/​Resources/​xlf/​Layout.fr.xlf Updates French localization inputs.
src/​Aspire.Dashboard/​Resources/​xlf/​Layout.it.xlf Updates Italian localization inputs.
src/​Aspire.Dashboard/​Resources/​xlf/​Layout.ja.xlf Updates Japanese localization inputs.
src/​Aspire.Dashboard/​Resources/​xlf/​Layout.ko.xlf Updates Korean localization inputs.
src/​Aspire.Dashboard/​Resources/​xlf/​Layout.pl.xlf Updates Polish localization inputs.
src/​Aspire.Dashboard/​Resources/​xlf/​Layout.pt-BR.xlf Updates Brazilian Portuguese localization inputs.
src/​Aspire.Dashboard/​Resources/​xlf/​Layout.ru.xlf Updates Russian localization inputs.
src/​Aspire.Dashboard/​Resources/​xlf/​Layout.tr.xlf Updates Turkish localization inputs.
src/​Aspire.Dashboard/​Resources/​xlf/​Layout.zh-Hans.xlf Updates Simplified Chinese localization inputs.
src/​Aspire.Dashboard/​Resources/​xlf/​Layout.zh-Hant.xlf Updates Traditional Chinese localization inputs.
tests/​Aspire.Dashboard.Components.Tests/​Layout/​MainLayoutTests.cs Verifies menu placement, metadata, and ordering.
Files not reviewed (1)
  • src/Aspire.Dashboard/Resources/Layout.Designer.cs: Generated file

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

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.

Copilot review overview

🟢 Approval recommended

The implementation is consistent with existing menu behavior and includes focused component coverage.

Review effort: Balanced
Findings: None

Files not reviewed (1)
  • src/Aspire.Dashboard/Resources/Layout.Designer.cs: Generated file

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

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.

Copilot review overview

🟢 Approval recommended

The focused implementation preserves existing link behavior and includes appropriate component coverage.

Review effort: Balanced
Findings: None

Files not reviewed (1)
  • src/Aspire.Dashboard/Resources/Layout.Designer.cs: Generated file

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Tests selector

13 / 99 PR test projects · 2 PR jobs, from 21 changed files.

Selected PR test projects (13 / 99)

Aspire.Dashboard.Components.Tests, Aspire.Dashboard.Tests, Aspire.Hosting.Azure.Kubernetes.Tests, Aspire.Hosting.Azure.Tests, Aspire.Hosting.Blazor.Tests, Aspire.Hosting.Dotnet.Tests, Aspire.Hosting.DotnetTool.Tests, Aspire.Hosting.JavaScript.Tests, Aspire.Hosting.Radius.Tests, Aspire.Hosting.Testing.Tests, Aspire.Hosting.Tests, Aspire.Playground.Tests, Aspire.Templates.Tests

Selected PR jobs (2)

extension-e2e, native-dashboard-validation


How these were chosen — grouped by what changed

⚠️ 10 of the 13 selected test projects come from a single change — src/Aspire.Dashboard/Components/Controls/DashboardRunSelect.razor.cs.

🔧 src/Aspire.Dashboard/Components/Controls/DashboardRunSelect.razor.cs (changed source)
→ 10 via the project graph: Aspire.Hosting.Azure.Kubernetes.Tests (3 hops), Aspire.Hosting.Azure.Tests (2 hops), Aspire.Hosting.Blazor.Tests (2 hops), Aspire.Hosting.Dotnet.Tests (2 hops), Aspire.Hosting.DotnetTool.Tests (2 hops), Aspire.Hosting.JavaScript.Tests, Aspire.Hosting.Radius.Tests (2 hops), Aspire.Hosting.Testing.Tests, Aspire.Hosting.Tests, Aspire.Playground.Tests (2 hops)

📦 affected project Aspire.Dashboard
→ 1 test: Aspire.Templates.Tests

🔧 src/Aspire.Dashboard/wwwroot/css/design.css (changed source)
→ 1 via the project graph: Aspire.Dashboard.Tests

🧪 tests/Aspire.Dashboard.Components.Tests/Layout/MainLayoutTests.cs (changed test)
→ 1 directly: Aspire.Dashboard.Components.Tests

Job reasons

Job Triggered by
extension-e2e • src/Aspire.Dashboard/Components/Controls/DashboardRunSelect.razor.cs, src/Aspire.Dashboard/Components/Controls/DashboardRunSelect.razor.css, src/Aspire.Dashboard/Model/MenuButtonItem.cs, src/Aspire.Dashboard/Model/ResourceMenuBuilder.cs, src/Aspire.Dashboard/Resources/Layout.Designer.cs, src/Aspire.Dashboard/Resources/Layout.resx, src/Aspire.Dashboard/Resources/xlf/Layout.cs.xlf, src/Aspire.Dashboard/Resources/xlf/Layout.de.xlf, src/Aspire.Dashboard/Resources/xlf/Layout.es.xlf, src/Aspire.Dashboard/Resources/xlf/Layout.fr.xlf, src/Aspire.Dashboard/Resources/xlf/Layout.it.xlf, src/Aspire.Dashboard/Resources/xlf/Layout.ja.xlf, src/Aspire.Dashboard/Resources/xlf/Layout.ko.xlf, src/Aspire.Dashboard/Resources/xlf/Layout.pl.xlf, src/Aspire.Dashboard/Resources/xlf/Layout.pt-BR.xlf, src/Aspire.Dashboard/Resources/xlf/Layout.ru.xlf, src/Aspire.Dashboard/Resources/xlf/Layout.tr.xlf, src/Aspire.Dashboard/Resources/xlf/Layout.zh-Hans.xlf, src/Aspire.Dashboard/Resources/xlf/Layout.zh-Hant.xlf, src/Aspire.Dashboard/wwwroot/css/design.css
• affected project Aspire.Dashboard
native-dashboard-validation affected project Aspire.Dashboard

Selection computed for commit b20cda1.

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.

Copilot review overview

🟢 Approval recommended

The implementation is consistent with existing external-link behavior and includes focused component coverage.

Review effort: Balanced
Findings: None

Files not reviewed (1)
  • src/Aspire.Dashboard/Resources/Layout.Designer.cs: Generated file

@JamesNK
James Newton-King (JamesNK) merged commit ff3bde0 into main Sep 25, 2026
155 checks passed
@microsoft-github-policy-service microsoft-github-policy-service Bot added this to the 14.0 milestone Sep 25, 2026
aspire-repo-bot Bot added a commit to microsoft/aspire.dev that referenced this pull request Sep 25, 2026
Adds a note about the new Learn about runs option in the dashboard's
run selector, which opens the run persistence documentation
(aka.ms/aspire/run-persistence) in a new window.

Documents changes from microsoft/aspire#20469

Co-authored-by: Copilot <[email protected]>
@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Pull request created: #1755

Generated by PR Documentation Check · copilot · auto · 55.5 AIC · ⌖ 12.6 AIC · ⊞ 18.7K

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

📝 Documentation has been drafted in microsoft/aspire.dev#1755 targeting release/13.6.

Drafted a documentation update for #20469 ("Add run persistence help to dashboard").

Triggered signals (2):

  • pr_body_has_user_facing_section — PR body's "User-facing usage" section: "Open the run selector in the dashboard header and select Learn about runs to open the run persistence documentation."
  • pr_body_has_cli_flag_mention — matched incidentally against a validation command in the body (dotnet test --project ...), not an actual new CLI flag; no CLI surface changed in this PR.

Change summary (from diff): DashboardRunSelect.razor.cs adds a divider and a new MenuButtonItem.CreateExternalLink(...) entry labeled "Learn about runs" (resx key DashboardRunSelectHelp) with tooltip DashboardRunSelectHelpTooltip ("Switch between the live run and read-only data from previous runs. Pin a run to keep it from being automatically deleted."), linking to (aka.ms/redacted) MenuButtonItem.cs factors out the external-link construction (CreateExternalLink) previously duplicated in ResourceMenuBuilder.CreateUrlMenuItem`. Remaining changes (CSS hover/pressed colors, xlf resource files, tests) are non-doc-facing.

Docs change: Updated src/frontend/src/content/docs/dashboard/data-persistence.mdx, in the existing "Run" persistence mode section (which already documents the run selector, pinning, and retention), adding one sentence noting the new "Learn about runs" option below the run list and that it opens this same page in a new window. This is the natural existing target page since aka.ms/aspire/run-persistence conceptually maps to Aspire dashboard data/run persistence, and no other docs page mentioned the run selector's menu items.

Files modified: src/frontend/src/content/docs/dashboard/data-persistence.mdx (+2 lines).

Note

This draft PR needs human review before merging.

@JamesNK

Copy link
Copy Markdown
Member Author

/backport to release/13.6

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/13.6 (link to workflow run)

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

James Newton-King (@JamesNK) an error occurred while backporting to release/13.6. See the workflow output for details.

Jose Perez Rodriguez (joperezr) pushed a commit that referenced this pull request Sep 26, 2026
Backport of #20469 to release/13.6

/cc @JamesNK

## Description

Dashboard users currently lack a direct way to learn what live,
historical, and pinned runs mean. This backport adds **Learn about
runs** to the run selector, opening the run-persistence documentation in
a new window, and lightens the run button's light-theme hover and
pressed states. External-link menu item construction is shared with
resource URL menu items.

### User-facing usage

Open the run selector in the dashboard header and choose **Learn about
runs** to read the run-persistence documentation.

### Screenshots / Recordings

> **This PR includes UI changes.** Please add screenshots or screen
recordings so reviewers can evaluate the visual changes without running
locally.
>
> - For before/after comparisons, place them side-by-side or label them
clearly.
> - For interactive changes (animations, transitions, new flows), prefer
a short screen recording (GIF or video).
> - If you cannot capture visuals now, note what scenario to test and
mark this section as TODO.

Screenshots from #20469:

| Dashboard | Run menu close-up | Light-theme hover |
| --- | --- | --- |
| ![Dashboard with the run menu
open](https://github.com/user-attachments/assets/48457e72-2fb1-4097-a7b8-c6b7321bd0e9)
| ![Run menu showing the Learn about runs
option](https://github.com/user-attachments/assets/c0840364-6e5e-4432-96f6-cbe97729dc94)
| ![Run button with its lighter hover
state](https://github.com/user-attachments/assets/192b8392-ee65-4eaf-ba3d-588d6af095ea)
|

Fixes # (issue)

## Checklist

- Is this feature complete?
  - [x] Yes. Ready to ship.
  - [ ] No. Follow-up changes expected.
- Are you including unit tests for the changes and scenario tests if
relevant?
  - [x] Yes
  - [ ] No
- Did you add public API?
  - [ ] Yes
    - If yes, did you have an API Review for it?
      - [ ] Yes
      - [ ] No
- Did you add `<remarks />` and `<code />` elements on your triple slash
comments?
      - [ ] Yes
      - [ ] No
  - [x] No
- Does the change make any security assumptions or guarantees?
  - [ ] Yes
    - If yes, have you done a threat model and had a security review?
      - [ ] Yes
      - [ ] No
  - [x] No

## Customer Impact

Dashboard users currently lack a direct way to learn what live,
historical, and pinned runs mean. A **Learn about runs** entry in the
run selector opens the run-persistence documentation; the light-theme
button states are clearer.

## Testing

On `release/13.6`, 43/43 `MainLayoutTests` passed and `UpdateXlf`
succeeded (zero warnings/errors); the source PR also reports manual
TestShop theme verification.

## Risk

Low — the menu item, shared external-link construction, resource
strings, and button styling are contained within Dashboard UI.

## Regression?

No — confirmed by the requester.
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants