Skip to content

Polish the dashboard resource picker and overview - #22653

Open
James Newton-King (JamesNK) wants to merge 3 commits into
mainfrom
jamesnk/dashboard-resource-picker-polish
Open

James Newton-King (JamesNK) wants to merge 3 commits into
mainfrom
jamesnk/dashboard-resource-picker-polish

Conversation

@JamesNK

Copy link
Copy Markdown
Member

Description

Make the resource picker and overview easier to scan and use in narrow windows. The picker toolbar is aligned with other pages, group buttons share the same hover treatment, selection hints switch every 10 seconds, and missing metadata uses a consistent dash.

  • The picker and resource footer share the same URL overflow button style. The popup opens below the button when there is room and flips above when there is not.
  • Health checks show the icon and name first, then the status, relative time, and any detail on one line, with the exception action at the end. Waiting checks use a static icon. The text visualizer and its Copy action use the same text as the tooltip.
  • Compact property grids use smaller row buttons. Relationship lines now meet the base of their arrowheads horizontally, and the Live activity trace hint puts its caveat on a separate line.

User-facing usage

In TestShop, open the expanded resource picker and select the +1 URL button on basketservice. At 1000×740 it opens below; at 1000×530 it opens above. Select basketservice and open +1 in the footer to see the same placement rule. In HealthChecksSandbox, open unhealthy to see the updated Health checks card and copy the full status details.

Screenshots / Recordings

This PR includes UI changes. The screenshots below show placement at two viewport heights and the health-check layout before and after. Local endpoint addresses are redacted.

Picker: room below Picker: not enough room below
URL popup opens below URL popup flips above
Health checks before Health checks after
Previous health check list Health checks in a two-column property grid

Relationship graph with horizontal arrow joins

Live activity tooltip with the trace caveat on its own line

Validation

  • aspire resource aspire-dashboard rebuild --apphost .\playground\TestShop\TestShop.AppHost\TestShop.AppHost.csproj --non-interactive passed with zero warnings and errors.
  • Playwright browser checks passed in TestShop and HealthChecksSandbox. These covered popup placement at both viewport heights, reopening after resize, keyboard opening and Escape dismissal, health-check copy text, and the updated layout and tooltip.
  • git diff --check origin/main...HEAD passed. No new checked-in tests were added.

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

Or

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

@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.

🟡 Changes recommended

For health checks with a last-run timestamp, both the tooltip and Copy action omit the displayed description or exception summary, leaving details truncated in narrow cards inaccessible in full.

1 open issue
1 file not reviewed
  • src/Aspire.Dashboard/Resources/Resources.Designer.cs: Generated file
What changed in this PR

Refines Aspire Dashboard’s resource picker and overview for easier scanning and use in narrow windows.

Changes:

  • Aligns picker controls, standardizes missing-value placeholders, and adjusts URL popup placement.
  • Moves health checks into a compact property grid with static waiting icons and shared tooltip/visualizer text.
  • Refines relationship arrows and separates the Live activity trace caveat onto its own line.
File Description
src/​Aspire.Dashboard/​wwwroot/​css/​layout.css Makes grid icon-button sizing configurable.
src/​Aspire.Dashboard/​Resources/​xlf/​Resources.zh-Hant.xlf Splits trace hint/caveat localization entries.
src/​Aspire.Dashboard/​Resources/​xlf/​Resources.zh-Hans.xlf Splits trace hint/caveat localization entries.
src/​Aspire.Dashboard/​Resources/​xlf/​Resources.tr.xlf Splits trace hint/caveat localization entries.
src/​Aspire.Dashboard/​Resources/​xlf/​Resources.ru.xlf Splits trace hint/caveat localization entries.
src/​Aspire.Dashboard/​Resources/​xlf/​Resources.pt-BR.xlf Splits trace hint/caveat localization entries.
src/​Aspire.Dashboard/​Resources/​xlf/​Resources.pl.xlf Splits trace hint/caveat localization entries.
src/​Aspire.Dashboard/​Resources/​xlf/​Resources.ko.xlf Splits trace hint/caveat localization entries.
src/​Aspire.Dashboard/​Resources/​xlf/​Resources.ja.xlf Splits trace hint/caveat localization entries.
src/​Aspire.Dashboard/​Resources/​xlf/​Resources.it.xlf Splits trace hint/caveat localization entries.
src/​Aspire.Dashboard/​Resources/​xlf/​Resources.fr.xlf Splits trace hint/caveat localization entries.
src/​Aspire.Dashboard/​Resources/​xlf/​Resources.es.xlf Splits trace hint/caveat localization entries.
src/​Aspire.Dashboard/​Resources/​xlf/​Resources.de.xlf Splits trace hint/caveat localization entries.
src/​Aspire.Dashboard/​Resources/​xlf/​Resources.cs.xlf Splits trace hint/caveat localization entries.
src/​Aspire.Dashboard/​Resources/​Resources.resx Defines the separate trace caveat string.
src/​Aspire.Dashboard/​Resources/​Resources.Designer.cs Adds the caveat resource accessor.
src/​Aspire.Dashboard/​Components/​ResourcesGridColumns/​UrlsColumnDisplay.razor.css Adjusts overflow-button alignment and popup fallback placement.
src/​Aspire.Dashboard/​Components/​Pages/​ResourceOverview.razor.css Refines overview spacing.
src/​Aspire.Dashboard/​Components/​Pages/​ResourceOverview.razor Renders health checks in a compact property grid.
src/​Aspire.Dashboard/​Components/​Pages/​ResourceOverview.Details.cs Adapts health reports into grid values and visualizer text.
src/​Aspire.Dashboard/​Components/​Layout/​ResourcesLayout.razor.css Aligns picker controls and lengthens hint rotation.
src/​Aspire.Dashboard/​Components/​Layout/​ResourcesLayout.razor Standardizes group buttons, URL overflow styling, and placeholders.
src/​Aspire.Dashboard/​Components/​Controls/​ResourceRelationshipGraph.razor.css Aligns graph-node hover styling with property grids.
src/​Aspire.Dashboard/​Components/​Controls/​ResourceRelationshipGraph.razor.cs Adds horizontal line segments before arrowheads.
src/​Aspire.Dashboard/​Components/​Controls/​ResourceDetails.razor Uses static icons for waiting health checks.
src/​Aspire.Dashboard/​Components/​Controls/​PropertyGrid.razor.css Shrinks compact-grid action buttons.
src/​Aspire.Dashboard/​Components/​Controls/​PropertyGrid.razor.cs Adds name-prefix and action-area content parameters.
src/​Aspire.Dashboard/​Components/​Controls/​PropertyGrid.razor Connects custom content and compact styling.
src/​Aspire.Dashboard/​Components/​Controls/​OverviewStatusCard.razor.css Uses the shared button-size variable.
src/​Aspire.Dashboard/​Components/​Controls/​ApplicationSummary.razor Standardizes empty metrics and separates tooltip caveat text.

Review effort: Balanced

@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.

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.

🔵 Needs a closer look

For timestamped reports, the shared tooltip/visualizer payload omits the diagnostic description, preventing users from reading or copying the full text when the row is truncated.

1 open issue
1 file not reviewed
  • src/Aspire.Dashboard/Resources/Resources.Designer.cs: Generated file

Review effort: Balanced

@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

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.

🔵 Needs a closer look

Human assessment is needed because the tooltip format change conflicts with an existing component-test expectation.

No open issues 🎉

1 resolved since last review
1 file not reviewed
  • src/Aspire.Dashboard/Resources/Resources.Designer.cs: Generated file

Review effort: Balanced

@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

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

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

14 / 101 PR test projects · 2 PR jobs, from 32 changed files.

Selected PR test projects (14 / 101)

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, Infrastructure.Tests

Selected PR jobs (2)

extension-e2e, native-dashboard-validation


How these were chosen — grouped by what changed

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

🔧 src/Aspire.Dashboard/Components/Controls/ApplicationSummary.razor (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/Resources/Resources.resx (changed source)
→ 1 directly: Infrastructure.Tests

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

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

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

Job reasons

Job Triggered by
extension-e2e • src/Aspire.Dashboard/Components/Controls/ApplicationSummary.razor, src/Aspire.Dashboard/Components/Controls/OverviewStatusCard.razor.css, src/Aspire.Dashboard/Components/Controls/PropertyGrid.razor, src/Aspire.Dashboard/Components/Controls/PropertyGrid.razor.cs, src/Aspire.Dashboard/Components/Controls/PropertyGrid.razor.css, src/Aspire.Dashboard/Components/Controls/ResourceDetails.razor, src/Aspire.Dashboard/Components/Controls/ResourceRelationshipGraph.razor.cs, src/Aspire.Dashboard/Components/Controls/ResourceRelationshipGraph.razor.css, src/Aspire.Dashboard/Components/Layout/ResourcesLayout.razor, src/Aspire.Dashboard/Components/Layout/ResourcesLayout.razor.css, src/Aspire.Dashboard/Components/Pages/ResourceOverview.Details.cs, src/Aspire.Dashboard/Components/Pages/ResourceOverview.razor, src/Aspire.Dashboard/Components/Pages/ResourceOverview.razor.css, src/Aspire.Dashboard/Components/ResourcesGridColumns/UrlsColumnDisplay.razor.css, src/Aspire.Dashboard/Resources/Resources.Designer.cs, src/Aspire.Dashboard/Resources/Resources.resx, src/Aspire.Dashboard/Resources/xlf/Resources.cs.xlf, src/Aspire.Dashboard/Resources/xlf/Resources.de.xlf, src/Aspire.Dashboard/Resources/xlf/Resources.es.xlf, src/Aspire.Dashboard/Resources/xlf/Resources.fr.xlf, src/Aspire.Dashboard/Resources/xlf/Resources.it.xlf, src/Aspire.Dashboard/Resources/xlf/Resources.ja.xlf, src/Aspire.Dashboard/Resources/xlf/Resources.ko.xlf, src/Aspire.Dashboard/Resources/xlf/Resources.pl.xlf, src/Aspire.Dashboard/Resources/xlf/Resources.pt-BR.xlf, src/Aspire.Dashboard/Resources/xlf/Resources.ru.xlf, src/Aspire.Dashboard/Resources/xlf/Resources.tr.xlf, src/Aspire.Dashboard/Resources/xlf/Resources.zh-Hans.xlf, src/Aspire.Dashboard/Resources/xlf/Resources.zh-Hant.xlf, src/Aspire.Dashboard/wwwroot/css/layout.css
• affected project Aspire.Dashboard
native-dashboard-validation affected project Aspire.Dashboard

Selection computed for commit 64f5157.

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.

🟡 Changes recommended

Regression coverage is missing for health-detail values and tooltips across timestamped, exception-fallback, and waiting reports, including verification that the visualizer receives full details for Copy.

1 open issue
1 file not reviewed
  • src/Aspire.Dashboard/Resources/Resources.Designer.cs: Generated file

Review effort: Balanced

Comment on lines +201 to +205
var status = HealthReportFormatter.GetStatusWithTime(report, Loc);
var tooltipStatus = HealthReportFormatter.GetStatusTooltip(report, Loc, TimeProvider) ?? status;
return report.DisplayedDescription is { } description
? new HealthCheckProperty(report, $"{status} \u00B7 {description}", $"{tooltipStatus} \u00B7 {description}")
: new HealthCheckProperty(report, status, tooltipStatus);

@mitchdenny Mitch Denny (mitchdenny) 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.

Approving with non-blocking feedback: one popup positioning issue and one health-check test coverage gap. The latter is already noted in this comment.

bottom: auto !important;
left: auto !important;
inset: auto !important;
position-area: bottom span-left;

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.

Non-blocking: If neither side has room for the full list, the popup can overlap the +N button instead of opening above or below it. For example, this happens with a long list at 1000×530 when the button is around y=300. Could we constrain its height to the available space and add a regression test for that case?

@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.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants