Skip to content

[release/17.0] Fix clipped graph controls and hide the game in the previous dashboard - #22268

Merged
Jose Perez Rodriguez (joperezr) merged 3 commits into
release/17.0from
backport/pr-22264-to-release/17.0
Nov 13, 2026
Merged

Jose Perez Rodriguez (joperezr) merged 3 commits into
release/17.0from
backport/pr-22264-to-release/17.0

Conversation

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Backport of #22264 to release/17.0

/cc Sébastien Ros (@sebastienros)

Customer Impact

Testing

Risk

Regression?

The resource graph sized its SVG viewBox from .resources-summary-layout. On the
previous experience's Resources page that element also contains the tab header,
and the SVG had no CSS height, so it took the full layout height from its
viewBox and pushed the bottom-anchored graph controls below the clipped edge of
.resource-tabs.

Size the SVG with CSS to fill its container, and measure and observe the
graph's own container instead of the page layout. Skip resizing while the graph
is hidden, and fit the initial graph the first time it has a size.

Fixes #21858
The game is a feature of the new dashboard's overview graph. Remove its Play
button and interop method from the previous experience's Resources page, and
pass no game strings there so the graph script doesn't attach the game or take
the O key from the dashboard's global shortcuts.
Apply the same constrained container and explicit SVG sizing to the new
experience's Resources component, which also hosts the graph. Without it the
SVG would be sized by the viewBox the script derives from its own container,
a resize feedback loop.

Extend the ResourceGraph JavaScript tests to cover the initial fit waiting for
a sized viewport, the first visible resize fitting the graph, later resizes
keeping the user's zoom, and a hidden graph keeping its last viewBox.
@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 -- 22268

Or

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

@github-actions

Copy link
Copy Markdown
Contributor

Tests selector

14 / 101 PR test projects · 2 PR jobs, from 7 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/Legacy/Pages/Resources.razor.

🔧 src/Aspire.Dashboard/Components/Legacy/Pages/Resources.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)

🔧 src/Aspire.Dashboard/wwwroot/js/app-resourcegraph.js (changed source)
→ 1 directly: Infrastructure.Tests
→ 1 via the project graph: Aspire.Dashboard.Tests

🧪 tests/Aspire.Dashboard.Components.Tests/JavaScript/ResourceGraph.test.mjs (changed test)
→ 2 directly: Aspire.Dashboard.Components.Tests, Infrastructure.Tests

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

Job reasons

Job Triggered by
extension-e2e • src/Aspire.Dashboard/Components/Legacy/Pages/Resources.razor, src/Aspire.Dashboard/Components/Legacy/Pages/Resources.razor.cs, src/Aspire.Dashboard/Components/Legacy/Pages/Resources.razor.css, src/Aspire.Dashboard/Components/Pages/Resources.razor.css, src/Aspire.Dashboard/Model/ResourceGraph/IconDto.cs, src/Aspire.Dashboard/wwwroot/js/app-resourcegraph.js
• affected project Aspire.Dashboard
native-dashboard-validation affected project Aspire.Dashboard

Selection computed for commit 6219e0f.

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

@joperezr
Jose Perez Rodriguez (joperezr) merged commit cbfb8eb into release/17.0 Nov 13, 2026
314 of 318 checks passed
@microsoft-github-policy-service microsoft-github-policy-service Bot added this to the 17.0 milestone Nov 13, 2026
@aspire-repo-bot

Copy link
Copy Markdown
Contributor Author

✅ No documentation update needed.

excluded → head_branch_is_backport, title_release_prefix, body_backport_marker (plus supporting base_branch_is_release). Backport of a dashboard fix; docs belong to the original forward PR. No triggered signals (signal_count 0).

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.

2 participants