Repository navigation
Add run persistence help to dashboard - #20469
Conversation
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 -- 20469Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 20469" |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
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.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
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
This comment has been minimized.
This comment has been minimized.
Co-authored-by: Copilot <[email protected]>
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
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
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
Tests selector13 / 99 PR test projects · 2 PR jobs, from 21 changed files. Selected PR test projects (13 / 99)
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.
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
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]>
|
Pull request created: #1755
|
|
📝 Documentation has been drafted in microsoft/aspire.dev#1755 targeting Drafted a documentation update for #20469 ("Add run persistence help to dashboard"). Triggered signals (2):
Change summary (from diff): Docs change: Updated Files modified: Note This draft PR needs human review before merging. |
|
/backport to release/13.6 |
|
Started backporting to |
|
James Newton-King (@JamesNK) an error occurred while backporting to |
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 | | --- | --- | --- | |  |  |  | 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.
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-persistencein 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
Validation
dotnet build /t:UpdateXlf .\src\Aspire.Dashboard\Aspire.Dashboard.csprojdotnet 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)Fixes # (issue)
Checklist
<remarks />and<code />elements on your triple slash comments?