Skip to content

[release/13.6] Fix dashboard filter badges and toolbar navigation - #20511

Merged
Jose Perez Rodriguez (joperezr) merged 1 commit into
release/13.6from
backport/pr-20471-to-release/13.6
Sep 26, 2026
Merged

Jose Perez Rodriguez (joperezr) merged 1 commit into
release/13.6from
backport/pr-20471-to-release/13.6

Conversation

@JamesNK

Copy link
Copy Markdown
Member

Backport of #20471 to release/13.6

/cc James Newton-King (@JamesNK)

Description

Dashboard filter badges could remain visible with an empty count, narrow resource-details controls could overlap properties, and mobile Resources tab changes could leave navigation queued until the filter panel closed—even after leaving the page. This backport hides zero-count badges without replacing their button, lets narrow controls wrap, and updates the mobile URL immediately unless the filter panel is open. Pending changes are discarded after navigation or disposal.

At narrow Structured Logs split-pane widths, the search field can still extend outside the summary pane, as noted on the source PR.

User-facing usage

Disable every filter on Structured Logs, Traces, or Trace Detail to hide the count badge while retaining the Filters button. On mobile Resources, switch to Parameters without opening the filter panel to update the URL to /?view=Parameters.

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 #20471:

Filter enabled Filter disabled
Filters button with a count badge of one Filters button with its count badge hidden
Resources toolbar and row actions Resource details toolbar
Resource options and aligned row-action menus Resource details filter and options

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

Customer Impact

Empty filter badges can remain visible, narrow toolbar controls can overlap, and mobile Resources tab changes can be delayed until the filter panel closes or navigate after leaving the page. The backport corrects these behaviors.

Testing

On release/13.6, 40/40 Resources and dialog-provider tests passed; the source PR also reports browser/Playwright toolbar measurements and manual dashboard checks.

Risk

Medium — shared mobile navigation lifecycle and toolbar CSS affect several Dashboard pages; in a narrow Structured Logs split pane, the search field can still extend outside the summary pane, as noted in the source PR.

Regression?

Yes — confirmed by the requester; the introducing version is not documented.

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

Or

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

@github-actions

Copy link
Copy Markdown
Contributor

Tests selector

13 / 99 PR test projects · 2 PR jobs, from 9 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/ResourceDetails.razor.css.

🔧 src/Aspire.Dashboard/Components/Controls/ResourceDetails.razor.css (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/controls.css (changed source)
→ 1 via the project graph: Aspire.Dashboard.Tests

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

Job reasons

Job Triggered by
extension-e2e • src/Aspire.Dashboard/Components/Controls/ResourceDetails.razor.css, src/Aspire.Dashboard/Components/Layout/AspirePageContentLayout.razor.cs, src/Aspire.Dashboard/Components/Pages/IPageWithSessionAndUrlState.cs, src/Aspire.Dashboard/Components/Pages/StructuredLogs.razor, src/Aspire.Dashboard/Components/Pages/TraceDetail.razor, src/Aspire.Dashboard/Components/Pages/Traces.razor, src/Aspire.Dashboard/wwwroot/css/controls.css, src/Aspire.Dashboard/wwwroot/css/layout.css
• affected project Aspire.Dashboard
native-dashboard-validation affected project Aspire.Dashboard

Selection computed for commit d3c530d.

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 backport matches the merged source change and includes focused regression coverage for its navigation lifecycle behavior.

Review effort: Balanced
Findings: None

What changed in this PR

Backports the merged dashboard fixes from #20471 to release/13.6.

Changes:

  • Hides empty filter badges without replacing toolbar buttons.
  • Allows narrow toolbars to wrap correctly.
  • Prevents delayed mobile navigation after page navigation or disposal.
File Description
ResourceDetails.razor.css Allows toolbar height to expand.
AspirePageContentLayout.razor.cs Clears stale deferred navigation.
IPageWithSessionAndUrlState.cs Defers URL updates only while the panel is open.
StructuredLogs.razor Hides zero-count badges.
TraceDetail.razor Hides zero-count badges.
Traces.razor Hides zero-count badges.
controls.css Prevents menu wrappers stretching vertically.
layout.css Stabilizes badge-container layout.
ResourcesTests.cs Covers mobile navigation and disposal behavior.

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

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

@joperezr
Jose Perez Rodriguez (joperezr) merged commit 34db30a into release/13.6 Sep 26, 2026
598 of 607 checks passed
@microsoft-github-policy-service microsoft-github-policy-service Bot added this to the 13.6 milestone Sep 26, 2026
@aspire-repo-bot

Copy link
Copy Markdown
Contributor

✅ No documentation update needed.

Step 5 branch taken: excluded → base_branch_is_release, head_branch_is_backport, title_release_prefix, body_backport_marker

This PR is excluded from docs generation per .pr-docs-check/signals.json (excluded: true). It is a backport of #20471 to release/13.6.

Exclusion reasons (exclusion_reasons):

  • base_branch_is_release — base ref is release/13.6
  • head_branch_is_backport — head branch follows the backport naming pattern
  • title_release_prefix — PR title is prefixed [release/13.6]
  • body_backport_marker — PR body states "Backport of Fix dashboard filter badges and toolbar navigation #20471 to release/13.6"

Per the workflow rules, a backport ports an already-merged change onto a release branch, and its user-facing documentation should be authored against the original (forward) PR (#20471) on the default branch, not duplicated here.

Triggered signals (for context only, not acted on since excluded overrides recommendation): dashboard_user_facing_page_changed, new_public_type, pr_body_has_user_facing_section (3 total).

No docs PR was created. If documentation is needed for this dashboard fix, it should be handled via the docs check on the original PR #20471.

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.

3 participants