Repository navigation
Update dashboard to FluentUI 5.1 - #22397
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 22397Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 22397" |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
🟡 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>
This comment has been minimized.
This comment has been minimized.
|
Tested manually too, demo-ed during the launch party. |
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
James Newton-King (JamesNK)
left a comment
There was a problem hiding this comment.
Found 1 correctness/UI regression: selected dropdown values are hidden after the FluentUI upgrade. Posted the selected finding inline.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Tests selectorSelects the full PR test matrix + all PR-gated jobs (ALL) — a rule matching 'Directory.Packages.props' selects ALL Selection computed for commit |
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
|
✅ No documentation update needed. Step 5 branch: docs_optional → dependency_bump (proven false positive of the signals). Triggered signals (3):
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. |

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.
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
Validation
Checklist
<remarks />and<code />elements on your triple slash comments?