Skip to content

Update Fluent UI preview and overflow handling - #20176

Merged
David Pine (IEvangelist) merged 4 commits into
mainfrom
jamesnk/workaround-fluent-global-overlay
Sep 16, 2026
Merged

David Pine (IEvangelist) merged 4 commits into
mainfrom
jamesnk/workaround-fluent-global-overlay

Conversation

@JamesNK

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

Copy link
Copy Markdown
Member

Description

Updates Microsoft.FluentUI.AspNetCore.Components to 5.0.0-preview.26259.4, which includes the upstream fix for the global overlay spinner flash tracked by microsoft/fluentui-blazor#5282.

Adapts the dashboard to the updated generic, item-backed FluentOverflow API while preserving bounded rendering for high-cardinality metric dimensions and resource URLs. Overflow contents now retain their intrinsic width instead of growing to fill the available space.

User-facing behavior

  • Single resource URLs truncate with an ellipsis when the grid column is too narrow.
  • Hidden trace span summaries are displayed vertically in the overflow tooltip, with 8px vertical tooltip padding.
  • Metric filter tags and resource URL overflow menus remain bounded when their source collections are large.

Screenshots / Recordings

Trace header overflow Bound overflow values
Trace header showing three hidden values Trace header tooltip showing resources, depth, and total spans

Validation

  • dotnet test --project tests/Aspire.Dashboard.Components.Tests/Aspire.Dashboard.Components.Tests.csproj --no-launch-profile -- --filter-not-trait "quarantined=true" --filter-not-trait "outerloop=true" (360 passed)
  • dotnet test --project tests/Aspire.Dashboard.Components.Tests/Aspire.Dashboard.Components.Tests.csproj --no-launch-profile -- --filter-class "*.UrlsColumnDisplayTests" --filter-not-trait "quarantined=true" --filter-not-trait "outerloop=true" (2 passed)
  • dotnet test --project tests/Aspire.Dashboard.Components.Tests/Aspire.Dashboard.Components.Tests.csproj --no-launch-profile -- --filter-class "*.TraceDetailsTests" --filter-not-trait "quarantined=true" --filter-not-trait "outerloop=true" (13 passed)
  • dotnet build src/Aspire.Dashboard/Aspire.Dashboard.csproj --no-restore
  • Manually verified overflow sizing, single-URL truncation, and vertical trace span tooltip layout in the running dashboard.

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

Or

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

@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

Add focused integration or Playwright coverage for the production registration and dialog/drawer behavior.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

This PR disables Fluent UI’s unused global overlay to prevent spinner flashes when opening dashboard dialogs, while keeping normal dialogs and drawers enabled.

Changes:

  • Sets UseGlobalOverlay = false.
  • Documents the upstream workaround.
File summaries
File Summary
src/Aspire.Dashboard/DashboardWebApplication.cs Updates Fluent UI registration to disable the global overlay.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite (auto)

Note

Copilot is running an experiment and ran this review at Lite.

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

@aspire-repo-bot
aspire-repo-bot Bot requested a balanced review from Copilot September 16, 2026 15:53
@JamesNK James Newton-King (JamesNK) changed the title Work around Fluent global overlay flash Update Fluent UI preview and overflow handling Sep 16, 2026
@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

Two moderate test gaps remain for bounded overflow behavior, and the requested visual evidence or TODO scenario is missing.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (2)

src/Aspire.Dashboard/Components/ResourcesGridColumns/UrlsColumnDisplay.razor:32

  • The new popup now depends on overflow.Items to include both measured and pre-overflowed URLs, but the updated test only checks the bounded initial DOM and never exercises this template. A regression could leave the +N count correct while omitting URLs beyond MaxRenderedOverflowItems from the popup. Add a component test that simulates overflow and verifies a pre-overflowed URL is present in the popup.
                    var items = overflow.Items;

src/Aspire.Dashboard/wwwroot/css/controls.css:1

  • The PR description requires before/after screenshots or, if visuals cannot be captured, a TODO scenario for this UI change, but the Screenshots/Recordings section is still only the placeholder. Please add the requested visual evidence or document the scenario to verify manually.
fluent-overflow::part(items) {
  • Files reviewed: 11/11 changed files
  • Comments generated: 1
  • Review effort level: Lite (auto)

Note

Copilot is running an experiment and ran this review at Lite.

@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

The stated high-cardinality metric-tag behavior lacks focused regression coverage.

Review details

Suppressed comments (1)

src/Aspire.Dashboard/Components/Controls/Chart/ChartFilterTags.razor:7

  • Add a focused high-cardinality component test for this path. The existing ChartFiltersTests fixture creates only two values, so it does not verify the PR's bounded-rendering contract: with more than 20 dimension values, only 20 item roots should be rendered and pre-overflow-count should represent the remainder. Including a selected value beyond the rendered prefix would also cover the new overflow-trigger highlighting logic.
<FluentOverflow TItem="DimensionValueViewModel" Items="@orderedValues" Class="dimension-overflow" MaxRenderedItems="@MaxRenderedOverflowItems">
  • Files reviewed: 13/13 changed files
  • Comments generated: 0 new
  • Review effort level: Balanced (auto)

Note

Copilot is running an experiment and ran this review at Balanced.

@github-actions

Copy link
Copy Markdown
Contributor

Tests selector

Selects the full PR test matrix + all PR-gated jobs (ALL) — a rule matching 'Directory.Packages.props' selects ALL


Selection computed for commit 1553ce7.

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.

🟢 Approval recommended

The migration is consistent with the updated Fluent UI contracts and includes focused regression coverage for the bounded overflow behavior.

Review details
  • Files reviewed: 14/14 changed files
  • Comments generated: 0 new
  • Review effort level: Balanced (auto)

Note

Copilot is running an experiment and ran this review at 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.

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.

Reviewed the Fluent UI update and overflow changes; no new issues found. The added tests cover bounded rendering, hidden URLs, and selected metric values beyond the render limit, addressing the earlier coverage feedback. Browser behavior was assessed from the diff and documented validation, not independently rerun. Approved.

@IEvangelist

Copy link
Copy Markdown
Member

PR Testing Report

PR Information

Artifact Version Verification

  • Expected Commit: 1553ce771417c962dbbc4b6368cd1f784477e850
  • Installed Version: 13.6.0-pr.20176.g1553ce77
  • Source Checkout: 1553ce771417c962dbbc4b6368cd1f784477e850
  • Status: ✅ Verified

Changes Analyzed

  • Fluent UI package updated to 5.0.0-preview.26259.4.
  • Dashboard overflow components migrated to the generic, item-backed FluentOverflow API.
  • URL ellipsis, trace overflow layout, metric filter overflow, and overlay behavior updated.
  • Component tests updated for the new overflow API.

Test Scenarios Executed

Scenario 1: Dashboard build

Objective: Compile the dashboard with the updated Fluent UI package.
Status: ✅ Passed

dotnet build src\Aspire.Dashboard\Aspire.Dashboard.csproj --no-restore

Scenario 2: Focused dashboard component tests

Objective: Validate chart filters, URL display, trace details, and main layout behavior.
Status: ✅ Passed

The focused MTP run passed 62 of 62 tests with quarantined and outerloop tests excluded.

The first concurrent test attempt encountered a Windows XLIFF intermediate-file lock while the dashboard build was writing the same output. The isolated rerun passed and this was not treated as a PR failure.

Scenario 3: Single long URL and navigation overlay

Objective: Validate narrow-column ellipsis and confirm the Fluent UI update does not leave a global overlay visible during dashboard navigation.
Status: ✅ Passed

  • A deliberately long URL measured clientWidth=256 and scrollWidth=638.
  • Computed styles were overflow: hidden, text-overflow: ellipsis, and white-space: nowrap.
  • Navigation from Resources to Console completed with zero visible fluent-overlay elements.

Scenario 4: High-cardinality URL overflow

Objective: Validate bounded rendering for a resource with 30 URLs.
Status: ❌ Failed

  • The collapsed grid correctly displayed one URL and a +29 overflow button.
  • Opening the overflow exposed all 29 hidden URL links.
  • This exceeds the component's MaxRenderedOverflowItems value of 20 and conflicts with the PR description that resource URL overflow menus remain bounded for large source collections.
  • The component test only asserts that 20 items are direct children before overflow measurement; it does not cover the narrow-column case where most items move into overflow.Items.

Summary

Scenario Status Notes
Dashboard build ✅ Passed Updated package compiles
Focused component tests ✅ Passed 62/62
URL ellipsis and navigation overlay ✅ Passed Correct ellipsis; no visible overlay after navigation
High-cardinality URL overflow ❌ Failed 29 hidden links rendered with maximum configured as 20

Overall Result

❌ ISSUES FOUND

Recommendation

Add coverage where available width leaves only one visible URL and the source contains more than 20 URLs. Bound the overflow popover payload independently from the number of items that fit in the grid, or clarify the intended meaning of MaxRenderedItems if rendering every hidden URL is expected.

@IEvangelist
David Pine (IEvangelist) merged commit 6755259 into main Sep 16, 2026
796 of 800 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

⚠️ CI Failure Analysis: Possible Flaky Test(s)

The CI build failed due to test failure(s) that appear unrelated to the PR changes. These may be flaky tests.

Suspected flaky test(s):

  • Aspire Blazor browser debugger E2E hits a managed breakpoint for standalone in job Tests / Run VS Code extension E2E tests / VS Code extension E2E (Linux, browser-debugger)
    • Error: Failed to apply E2E control revision 1789583483915: Error: Blazor debugger launch failed: {"seq":11,"type":"response","request_seq":2,"command":"launch","success":false,"body":{"error":{"id":9240,"format":"Unable to launch browser: "Could not open ws://localhost:43999/_framework/debug/ws-proxy?browser=ws%3A%2F%2F127.0.0.1%3A41015%2Fdevtools%2Fbrowser%2F6b0247f0-58bb-4258-92c6-4665d94a07cc"","showUser":true}}}
    • Stack Trace (first frames):
AggregateError: Failed to apply E2E control revision 1789583483915: Error: Blazor debugger launch failed ... at applyE2eControl (out/test-e2e/test-e2e/helpers/assertions.js:355:15)
    at async executeE2eControlCommand (out/test-e2e/test-e2e/helpers/fixtures.js:167:12)
    at async proveBlazorScenario (out/test-e2e/test-e2e/helpers.js:52:20)
  • Why likely flaky: Failure to open a Chrome DevTools websocket proxy is a browser-launch timing/connectivity issue in the E2E harness, not related to any file changed by this PR (which touches only Aspire.Dashboard Razor/CSS).
  • Aspire Blazor browser debugger E2E hits a managed breakpoint for hosted-global in job Tests / Run VS Code extension E2E tests / VS Code extension E2E (Linux, browser-debugger)
    • Error: Failed to apply E2E control revision 1789583483918: Error: Timed out after 299646ms waiting for Blazor WASM root session for resource 'hosted-global'. Last error: .
    • Stack Trace (first frames):
at /tmp/aev-uSpxBe/extensions/microsoft-aspire.aspire-vscode-1.22.0/dist/extension.js:2:1245021
    at async proveBlazorScenario (out/test-e2e/test-e2e/helpers.js:52:20)
    at async Context.<anonymous> (out/test-e2e/test-e2e/browserDebugger.e2e.test.js:170:31)
  • Why likely flaky: A near-5-minute timeout waiting for a WASM debug session to attach indicates environment/timing flakiness in the debugger E2E harness, unrelated to the PR's Dashboard UI changes.
  • Aspire Blazor browser debugger E2E hits a managed breakpoint for hosted-per-page in job Tests / Run VS Code extension E2E tests / VS Code extension E2E (Linux, browser-debugger)
    • Error: Failed to apply E2E control revision 1789583483921: Error: Timed out after 299592ms waiting for Blazor WASM root session for resource 'hosted-per-page'. Last error: .
    • Stack Trace (first frames):
at /tmp/aev-uSpxBe/extensions/microsoft-aspire.aspire-vscode-1.22.0/dist/extension.js:2:1245021
    at async proveBlazorScenario (out/test-e2e/test-e2e/helpers.js:52:20)
    at async Context.<anonymous> (out/test-e2e/test-e2e/browserDebugger.e2e.test.js:170:31)
  • Why likely flaky: Same class of WASM debug session attach timeout as the other browser-debugger scenarios in this job; unrelated to PR changes.
  • Aspire dynamic debug configuration E2E "after each" hook for "re-resolves the selected AppHost by dynamic configuration name in duplicate-alias workspaces" in job Tests / Run VS Code extension E2E tests / VS Code extension E2E (Windows, dynamic-debug-configuration)
    • Error: Dynamic debug configuration E2E teardown failed.
  1. Error: EBUSY: resource busy or locked, rmdir 'C:\Users\runneradmin\AppData\Local\Temp\aev-YUBZdw\workspace.e2e-dynamic-debug\first'
  • Stack Trace (first frames):
AggregateError: Dynamic debug configuration E2E teardown failed.
1. Error: EBUSY: resource busy or locked, rmdir 'C:\Users\runneradmin\AppData\Local\Temp\aev-YUBZdw\workspace\.e2e-dynamic-debug\first'
    at runE2eTeardown (out\test-e2e\test-e2e\helpers\fixtures.js:217:15)
    at async Context.<anonymous> (out\test-e2e\test-e2e\dynamicDebugConfiguration.e2e.test.js:62:9)
  • Why likely flaky: EBUSY on rmdir during test teardown is a well-known Windows file-locking race condition (a lingering process handle briefly holds the directory), not caused by any file changed in this PR.

Suggested actions:

  • Re-run the failed CI jobs to confirm if the failure is intermittent
  • If the test continues to fail, consider quarantining it using /quarantine-test <test name> <issue URL>
  • Search existing issues to see if this test is already known to be flaky

You can re-run the failed jobs from the workflow run page.

aspire-repo-bot Bot added a commit to microsoft/aspire.dev that referenced this pull request Sep 23, 2026
Documents dashboard UX from microsoft/aspire#20176:
- Single-endpoint URL truncation with ellipsis when column is narrow
- Multi-endpoint +N badge/popover overflow (existing behavior, clarified)
- Traces page spans column +N badge with vertical tooltip
- Trace details header +N badge with vertical tooltip

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

Copy link
Copy Markdown
Contributor

Pull request created: #1718

Generated by PR Documentation Check · auto · 106.3 AIC · ⌖ 6.87 AIC · ⊞ 18K

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

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

Drafted documentation updates to src/frontend/src/content/docs/dashboard/explore.mdx describing the new Fluent UI overflow/truncation behavior introduced by this PR:

  • Resources page — Endpoints bullet now describes single-URL ellipsis truncation and the +N badge/popover for multiple endpoints.
  • Traces page — Spans bullet now describes the +N badge with a vertical tooltip for hidden resources.
  • Trace details — Added a paragraph describing the +N badge with a vertical tooltip for hidden header details (Trace Detail, Duration, Resources, Depth, Total Spans).

No new pages were created; the existing page prose was updated in place.

Note

This draft PR needs human review before merging.

@github-actions github-actions Bot locked and limited conversation to collaborators Oct 23, 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