You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Switching between Overview, Console logs, Terminal, Structured logs, Traces, and Metrics now cross-fades the content instead of replacing it abruptly. The application header, resource sidebar, and navigation remain stationary and interactive.
Select a primary view with the tab strip, keyboard, or narrow-screen overflow menu. Back/Forward retain native history behavior. Reduced-motion preferences and browsers without the required native APIs use instant navigation. Initial loads and changes within the same view do not animate.
The effect is the browser's default view-transition cross-fade. Slow or canceled renders skip the effect after 200 ms rather than holding an old snapshot. Navigation is observed, not intercepted.
Scope
The additional control changes address reproduced rapid-route disposal races: late meter observer and metrics splitter registrations/callbacks, and Fluent grid render work after disposal. The current Overview property grid uses the existing guarded grid wrapper. Expected disposal exceptions are suppressed only after disposal; active interop failures still propagate.
No Home destination/default-view policy, Back button, sidebar treatment, resource-selection redesign, legacy-page change, or shared Virtualize lifetime adapter is included.
Screenshots / Recordings
Real TestShop, with populated frontend details and telemetry. The recording demonstrates the five primary views, stationary shell, and history navigation. Its optional unresolved-parameters banner is sample configuration, not the Blazor circuit error bar.
page@ddfcbcc123266bb9bbbf2f91bf0b12a4.webmResponsive Overview: mobile 390 x 844, tablet 768 x 1024, desktop 1440 x 900
Viewport
Light
Dark
Mobile, 390 x 844
Tablet, 768 x 1024
Desktop, 1440 x 900
Validation
Based on upstream main at 726563f7d98da7d14e9dcee110c66017a852556e. The accessibility, build, format, and diff-check rows were recorded before the PR was rebased and simplified.
$changed=@(git diff HEAD --name-only -- '*.cs'); $changed+='tests\Aspire.Dashboard.Playwright.Tests\Integration\Playwright\RouteTransitionTests.cs'; dotnet format whitespace Aspire.slnx --no-restore --verify-no-changes --include $changed
Passed before commit after correcting one file encoding and one final newline. Workspace loading emits a warning.
git diff --cached --check and git diff --check
Passed.
Browser coverage repeats paced and rapid navigation across the primary views, including Terminal, in animated, reduced-motion, and native-disabled modes, and covers keyboard, history, selected-tab/URL/content convergence, observer cleanup, and absence of circuit/page errors.
Real isolated TestShop review additionally passed repeated 15 ms/90 ms pointer navigation, history, reduced/native-disabled controls, populated Metrics/Overview, seven native effects, fixed shell geometry, and the existing sidebar context-menu/focus/full-canvas controls. Responsive light/dark captures exercised all five views without page/console errors or document-level horizontal overflow. The stable visually approved review environment was not rebuilt for publication.
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?
Real TestShop: five-view motion and history recording, followed by mobile (390 x 844), tablet (768 x 1024), and desktop (1440 x 900) Overview in light and dark themes. These are sample application data, not a synthetic dashboard fixture.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The acknowledgement can hang when the dashboard is backgrounded and leave navigation unusable after an interop timeout, while terminal-focus URLs are also misclassified and incur unnecessary snapshot delays.
Adds directional transitions between the dashboard’s five primary views for #21709 while keeping the header, navigation, and resource sidebar stationary.
Changes:
Adds content-only transitions with reduced-motion and unsupported-browser fallbacks.
Coalesces rapid tab activations into the first and latest destinations.
Guards component disposal races and adds navigation, history, and cleanup tests.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Queued tab destinations can be lost during pending acknowledgements or saved-state redirects, and delayed JavaScript initialization can leave global listeners attached to a disposed layout.
No open issues 🎉
3 previously missed issues
In code that hasn't changed since last review
Saved Metrics state restoration clears the queued Traces activation
With all resources selected and a saved Metrics duration, activating Metrics and then Traces can lose the queued Traces target when InitializeViewModelAsync restores /metrics to /metrics?duration=.... This block treats that page-initiated replacement as external navigation and clears the queue, leaving the user on Metrics. Preserve queued activations across state-restoration redirects while still canceling them for unrelated navigation, and add a saved-state regression test.
Arrow-key changes drop the latest tab target during pending acknowledgement
Arrow-key tab changes reach only OnTabChanged, which rejects them while _navigatingToTab is set; that field now stays set until the render/effect acknowledgement. Pressing another arrow during that interval therefore drops the latest destination instead of updating the queued target. Route genuine arrow-key activations through the coalescer while preserving the synthetic-change guards, and add a pending-acknowledgement keyboard regression test.
Late module import installs listeners for a disposed layout
If the module import completes after layout disposal has skipped cleanup because _jsModule is null, this function still installs global navigation and reduced-motion listeners for the outgoing layout. Those listeners retain the removed body with no later unregister call. Reject disconnected layouts before registering listeners, as the meter and splitter helpers already do.
Branch update: merged latest main (merge commit 0a08773039, non-force push). This was not a mechanical merge. #22547 replaced the FluentTabs resource tabs with anchor tabs (<a id="tab-X" class="resource-tab" href=...> plus OnTabClickAsync, OpenTabAsync and NavigateToTabAsync), so the PR's coalescing had to be ported onto the new model. David Pine (@IEvangelist) please verify the port matches your intent:
ResourcesLayout.razor.cs:
New state: _navigatingToHref, _queuedTabNavigation, _tabRenderVersion, _acknowledgingTabVersion. This replaces _navigatingToTab/_tabNavigationVersion.
NavigateToTabAsync marks the in-flight href.
OpenTabAsync queues the latest choice while a tab is rendering; re-choosing the in-flight tab clears the queue.
FinishTabNavigationAsync waits on waitForResourceTabRender (5s timeout) and then opens the queued tab.
External or back navigation in OnParametersSetAsync cancels the queue and invalidates the pending acknowledgement.
_navigatingToTab (which kept the clicked tab visually active) was dropped, because main deliberately derives the active tab from CurrentTab.
ResourcesLayout.razor: main's markup plus data-tab-navigation="@_navigatingToHref" on .resources-layout.
Tests:
Ported the three coalescing bUnit tests to click the desktop anchors through the header section outlet.
Dropped the focus test, because isResourceTabFocused no longer exists.
RouteTransitionTests (Playwright, outerloop) now uses AriaRole.Navigation/AriaRole.Link and aria-current="page" instead of tablist/tab/aria-selected. These are outerloop, so I couldn't run them in PR CI.
Other files:
Metrics.razor.cs: passes main's new InstrumentPaneMaxWidth argument to registerMetricsSplitter.
MetricsTests.cs: keeps both sides' tests.
Local validation:
ResourcesLayoutTests, MetricsTests, MeterOverviewTests and AspireFluentDataGridTests pass. The one exception is Render_LoadingContent_UsesCompactCenteredLayout, which fails only because my machine's locale is Spanish ("Cargando..."); that test is unchanged from main.
The Playwright project compiles.
Findings (correctness):
No coverage for the queued-tab path from the compact/overflow menus.GetOverflowMenuItems and the compact dropdown call OpenTabAsync, which now queues while _navigatingToHref is set. The new bUnit tests only drive the desktop anchors, so a regression where a menu choice made during an in-flight navigation is silently dropped (for example if the queued tab becomes invisible before FinishTabNavigationAsync runs, since OpenTabAsync re-resolves GetTabs() and returns without navigating) wouldn't be caught. Please add a focused test, or confirm that dropping an invisible queued tab is intended.
The browser-only acknowledgement path is covered only by outerloop Playwright tests.waitForResourceTabRender and the 5s fallback (FinishTabNavigationAsync) are the core of this PR. They're exercised only in RouteTransitionTests, which is [OuterloopTest], so regular PR CI never runs the real JS acknowledgement. Consider at least one non-outerloop test, or run the outerloop workflow on this PR before merging.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Incorrect observer assertions and obsolete Terminal routes cause test failures, while pending mobile navigation can discard the user's final selection.
The reason will be displayed to describe this comment to others. Learn more.
Code-review skill pass (problems only) at this head: no new high-confidence defects, so there are no inline comments.
Checked:
ResourcesLayout tab-navigation coalescing (NavigateToTabAsync, OpenTabAsync, FinishTabNavigationAsync, and the reset in OnParametersSetAsync).
The JS registerRouteTransitions / waitForResourceTabRender lifecycle: timeouts, disposal and visibility handling.
The disposal guards in AspireFluentDataGrid, MeterOverview, Metrics and LiveSparklinesBase.
The PropertyGrid switch to AspireFluentDataGrid.
Correction to my earlier comment (#21758 (comment)): tab clicks also go through OpenTabAsync, so the new Tabs_RapidClicksCoalesceToLatestTargetAfterRenderAcknowledgement, Tabs_RenderAcknowledgementTimeoutReleasesLatestTarget and Tabs_ExternalNavigationCancelsQueuedTargetAndInvalidatesItsRenderAck tests do cover the queue path. I withdraw that coverage point.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Mobile navigation can incorrectly open a queued destination after the current view is reselected, and incorrect observer assertions and obsolete Terminal URLs cause the new browser tests to fail.
David Pine (@IEvangelist) How strongly do you feel this is an improvement? I think an animation could contribute towards the impression that the dashboard is busy.
David Pine (@IEvangelist) How strongly do you feel this is an improvement? I think an animation could contribute towards the impression that the dashboard is busy.
Rapid tab clicks navigate directly again, as on main. Starting a view
transition already skips any active one, so the navigate listener no
longer awaits the previous transition or needs a render acknowledgement.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Unresolved issues include intermediate history entries during rapid tab switches, missing directional slide and timing, and a disposal race that can throw or leak a listener.
Build the route-to-tab table once from DashboardUrls, use it to parse the
current tab, and pass the animated routes to registerRouteTransitions
instead of duplicating them in JavaScript.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
A pending JS import can register a global navigation listener after the layout is disposed, causing errors or retaining the detached layout because disposal skips cleanup.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
An async registration/disposal race can continue setup on a disposed module and throw an uncaught ObjectDisposedException, requiring a post-registration disposal check and targeted regression test.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Human assessment is needed because cleanup after layout removal may leave a global navigation listener retaining detached content across recording switches.
No open issues 🎉
Review effort: Balanced
This branch has not been deployed
No deployments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Switching between Overview, Console logs, Terminal, Structured logs, Traces, and Metrics now cross-fades the content instead of replacing it abruptly. The application header, resource sidebar, and navigation remain stationary and interactive.
Fixes #21709
Part of #21708
User-facing usage
Select a primary view with the tab strip, keyboard, or narrow-screen overflow menu. Back/Forward retain native history behavior. Reduced-motion preferences and browsers without the required native APIs use instant navigation. Initial loads and changes within the same view do not animate.
The effect is the browser's default view-transition cross-fade. Slow or canceled renders skip the effect after 200 ms rather than holding an old snapshot. Navigation is observed, not intercepted.
Scope
The additional control changes address reproduced rapid-route disposal races: late meter observer and metrics splitter registrations/callbacks, and Fluent grid render work after disposal. The current Overview property grid uses the existing guarded grid wrapper. Expected disposal exceptions are suppressed only after disposal; active interop failures still propagate.
No Home destination/default-view policy, Back button, sidebar treatment, resource-selection redesign, legacy-page change, or shared Virtualize lifetime adapter is included.
Screenshots / Recordings
Real TestShop, with populated frontend details and telemetry. The recording demonstrates the five primary views, stationary shell, and history navigation. Its optional unresolved-parameters banner is sample configuration, not the Blazor circuit error bar.
page@ddfcbcc123266bb9bbbf2f91bf0b12a4.webm
Responsive Overview: mobile 390 x 844, tablet 768 x 1024, desktop 1440 x 900
Validation
Based on upstream
mainat726563f7d98da7d14e9dcee110c66017a852556e. The accessibility, build, format, and diff-check rows were recorded before the PR was rebased and simplified..\restore.cmddotnet test --project tests\Aspire.Dashboard.Components.Tests\Aspire.Dashboard.Components.Tests.csproj --no-launch-profile -- --filter-class '*.ResourcesLayoutTests' --filter-not-trait 'quarantined=true' --filter-not-trait 'outerloop=true'dotnet test --project tests\Aspire.Dashboard.Playwright.Tests\Aspire.Dashboard.Playwright.Tests.csproj --no-launch-profile -- --filter-class '*.RouteTransitionTests' --filter-not-trait 'quarantined=true'dotnet test --project tests\Aspire.Dashboard.Playwright.Tests\Aspire.Dashboard.Playwright.Tests.csproj --no-launch-profile -- --filter-method '*.DashboardPage_HasNoSeriousOrCriticalWcagViolations' --filter-method '*.DashboardHomePage_IsAccessibleAcrossViewports' --filter-not-trait 'quarantined=true'dotnet build src\Aspire.Dashboard\Aspire.Dashboard.csproj --no-restore$changed=@(git diff HEAD --name-only -- '*.cs'); $changed+='tests\Aspire.Dashboard.Playwright.Tests\Integration\Playwright\RouteTransitionTests.cs'; dotnet format whitespace Aspire.slnx --no-restore --verify-no-changes --include $changedgit diff --cached --checkandgit diff --checkBrowser coverage repeats paced and rapid navigation across the primary views, including Terminal, in animated, reduced-motion, and native-disabled modes, and covers keyboard, history, selected-tab/URL/content convergence, observer cleanup, and absence of circuit/page errors.
Real isolated TestShop review additionally passed repeated 15 ms/90 ms pointer navigation, history, reduced/native-disabled controls, populated Metrics/Overview, seven native effects, fixed shell geometry, and the existing sidebar context-menu/focus/full-canvas controls. Responsive light/dark captures exercised all five views without page/console errors or document-level horizontal overflow. The stable visually approved review environment was not rebuilt for publication.
Checklist
<remarks />and<code />elements on your triple slash comments?