Skip to content

Update dashboard to FluentUI 5.1 - #22397

Merged
Sébastien Ros (sebastienros) merged 3 commits into
mainfrom
sebros/fluentui-5-1-upgrade
Nov 19, 2026
Merged

Sébastien Ros (sebastienros) merged 3 commits into
mainfrom
sebros/fluentui-5-1-upgrade

Conversation

@sebastienros

@sebastienros Sébastien Ros (sebastienros) commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Description

Update both dashboard experiences from FluentUI 5.0.1 to 5.1.0, incorporating upstream fixes for grid disposal, virtualized refresh, tabs, splitters, dialogs, and accessibility.

  • Remove the DataGrid disposal workaround introduced in Keep dashboard views removed while they initialize from ending the circuit #21995 and the redundant virtualized refresh/render helper. The upstream fix now releases controllers that arrive after disposal and prevents subsequent interop calls.
  • Adapt all four freeform comboboxes to use string values with separate option selection, preserving custom text, option keys and display labels. Without this adjustment, 5.1 attempts to convert freeform text to a wrapper object and ends the Blazor circuit.
  • Add lifecycle and browser regression coverage, and adjust browser test synchronization for server-rendered tab navigation.

Fixes # (issue)

User-facing usage

In either dashboard, users can enter a custom structured-log filter, leave the input, and apply it. Navigating away while a grid is initializing no longer requires the local disposal workaround.

Screenshots / Recordings

Current dashboard with a custom structured-log filter

Legacy dashboard with a custom structured-log filter

Legacy dashboard with resized resource details

Grid after navigating away during initialization and returning

Validation

  • Passed: 1,454 component tests (quarantined and outerloop excluded).
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'
  • Passed: 22 targeted Chromium cases, including grid disposal/navigation, column sizing and sorting, tabs, responsive filters, dialogs, accessibility, and freeform filters in both experiences. These explicitly targeted browser cases are marked outerloop.
dotnet test --project tests/Aspire.Dashboard.Playwright.Tests/Aspire.Dashboard.Playwright.Tests.csproj --no-launch-profile -- --filter-method '*.GridRemovedDuringInitialization_*' --filter-method '*.GridColumn_DoubleClickResizeHandle_*' --filter-method '*.NameColumn_SortsParameters' --filter-method '*.PreviousDashboard_InternalNavigationRemainsInLegacyLayout' --filter-method '*.SelectionAndResize_PreserveAvailableTracesTab' --filter-method '*.DashboardDialog_HasNoSeriousOrCriticalWcagViolations' --filter-method '*.FluentInteractiveControls_ExposeNameRoleAndValue' --filter-method '*.FilterAndGrouping_StayInsideVisualViewportAcrossPaneModesAndResize' --filter-method '*.LegacyDetailsSplitter_ResizesAndReopensAfterDismissal' --filter-method '*.SettingsDialog_ReopensAfterClosing' --filter-method '*.FilterDialog_PreservesFreeformValueOnBlur' --filter-not-trait 'quarantined=true'
  • The four grid lifecycle cases pass on 5.1.0 without the local workaround and fail as expected on 5.0.1. The browser test delays real grid initialization, navigates away, verifies controller cleanup, and returns to a working grid.
  • A responsive tooltip timing failure was observed during exploration and reproduced on 5.0.1; the final responsive matrix passed. Firefox, WebKit, and declarative-dialog Escape reopening were not tested.

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

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@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 -- 22397

Or

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

@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

Duplicate TOption and TValue attributes in three Razor components prevent the dashboard from compiling.

1 open issue
What changed in this PR

Updates both dashboard experiences to Fluent UI 5.1.0, replacing local grid workarounds with upstream fixes and adapting freeform combobox bindings.

Changes:

  • Upgrade Fluent UI components and icons, and remove redundant grid disposal and refresh helpers.
  • Separate freeform string values from selected-option metadata in four comboboxes.
  • Update component tests and add browser regression coverage for grid lifecycle, dialogs, filters, and splitters.
File Description
tests/​Aspire.Dashboard.Playwright.Tests/​Integration/​Playwright/​ResourcePaneResponsiveTests.cs Synchronize tab navigation and remove an obsolete workaround comment.
tests/​Aspire.Dashboard.Playwright.Tests/​Integration/​Playwright/​DashboardInteractionsTests.cs Add grid, splitter, dialog, and freeform-filter regressions.
tests/​Aspire.Dashboard.Components.Tests/​Shared/​FluentUISetupHelpers.cs Register the focus interop test handler.
tests/​Aspire.Dashboard.Components.Tests/​Pages/​TracesTests.cs Use upstream grid refresh directly.
tests/​Aspire.Dashboard.Components.Tests/​Pages/​StructuredLogsTests.cs Use upstream grid refresh directly.
tests/​Aspire.Dashboard.Components.Tests/​Pages/​MetricsTests.cs Update a comment to reference the renamed lifecycle tests.
tests/​Aspire.Dashboard.Components.Tests/​Dialogs/​InteractionsInputDialogTests.cs Adapt assertions and events to string-valued comboboxes.
tests/​Aspire.Dashboard.Components.Tests/​Dialogs/​FilterDialogTests.cs Include freeform text in dropdown events.
tests/​Aspire.Dashboard.Components.Tests/​Controls/​FluentDataGridLifecycleTests.cs Verify upstream late-controller cleanup for both grid types.
src/​Aspire.Dashboard/​Extensions/​ComponentExtensions.cs Delegate refresh to Fluent UI.
src/​Aspire.Dashboard/​Components/​Legacy/​Pages/​Metrics.razor Replace the workaround grid with FluentDataGrid.
src/​Aspire.Dashboard/​Components/​Dialogs/​InteractionsInputDialog.razor.cs Handle option selection separately from text changes.
src/​Aspire.Dashboard/​Components/​Dialogs/​InteractionsInputDialog.razor Migrate freeform bindings to strings and selected items.
src/​Aspire.Dashboard/​Components/​Dialogs/​FilterDialog.razor.cs Accept selected-item collections.
src/​Aspire.Dashboard/​Components/​Dialogs/​FilterDialog.razor Separate freeform text from suggestion metadata.
src/​Aspire.Dashboard/​Components/​Dialogs/​ExemplarsDialog.razor Use the upstream grid.
src/​Aspire.Dashboard/​Components/​Controls/​SpanDetails.razor Use upstream grids for span links.
src/​Aspire.Dashboard/​Components/​Controls/​ResourceDetails.razor Replace five workaround grids.
src/​Aspire.Dashboard/​Components/​Controls/​PropertyGrid.razor Use the upstream grid.
src/​Aspire.Dashboard/​Components/​Controls/​ParameterOverview.razor.cs Add a separate option-selection handler.
src/​Aspire.Dashboard/​Components/​Controls/​ParameterOverview.razor Migrate parameter combobox bindings.
src/​Aspire.Dashboard/​Components/​Controls/​MissingParametersPanel.razor.cs Add an asynchronous option-selection handler.
src/​Aspire.Dashboard/​Components/​Controls/​MissingParametersPanel.razor Migrate missing-parameter combobox bindings.
src/​Aspire.Dashboard/​Components/​Controls/​Grid/​DisposalSafeFluentDataGrid.cs Delete the local disposal workaround.
src/​Aspire.Dashboard/​Components/​Controls/​Grid/​AspireFluentDataGrid.cs Inherit directly from Fluent UI and remove the refresh helper.
src/​Aspire.Dashboard/​Components/​Controls/​Chart/​MetricTable.razor Use the upstream grid.
src/​Aspire.Dashboard/​Components/​Controls/​Chart/​ChartFilters.razor Use the upstream grid.
Directory.Packages.props Upgrade Fluent UI components and icons to 5.1.0.

Review effort: Balanced

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@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.

🟢 Approval recommended

No active review issues remain for the FluentUI upgrade and related grid and combobox changes.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@sebastienros

Copy link
Copy Markdown
Contributor Author

Tested manually too, demo-ed during the launch party.
Only think that didn't work was the ESC but I suspect that it's because release/17 needs to be merged back to main, this PR doesn't touch this part.

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found 1 correctness/UI regression: selected dropdown values are hidden after the FluentUI upgrade. Posted the selected finding inline.

Comment thread Directory.Packages.props Resolved
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@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 b2052a3.

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

No active review issues remain for the FluentUI upgrade and related grid and combobox changes.

No open issues 🎉

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.

@sebastienros
Sébastien Ros (sebastienros) merged commit b89e590 into main Nov 19, 2026
905 of 908 checks passed
@microsoft-github-policy-service microsoft-github-policy-service Bot added this to the 17.1 milestone Nov 19, 2026
@aspire-repo-bot

Copy link
Copy Markdown
Contributor

✅ No documentation update needed.

Step 5 branch: docs_optional → dependency_bump (proven false positive of the signals).

Triggered signals (3):

  • new_public_type: evidence is AspireFluentDataGrid<TGridItem> in src/Aspire.Dashboard/Components/Controls/Grid/AspireFluentDataGrid.cs, a rename of the internal DisposalSafeFluentDataGrid wrapper. Aspire.Dashboard is an application, so its C# types are not a public API.
  • pr_body_has_cli_flag_mention: the match is the dotnet test --project ... command in the PR's test instructions, not a product flag.
  • pr_body_has_user_facing_section: the "User-facing usage" text says a custom structured-log filter can be entered and applied, and that a grid no longer needs a disposal workaround. These are bug fixes to behavior that is already working as intended, with no new documented surface.

The change updates FluentUI Blazor from 5.0.1 to 5.1.0 and adjusts the dashboard's internal components, tests and CSS accordingly. No new options, flags, settings or documented behavior were added.

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