Repository navigation
[release/17.0] Combined dashboard backports (#22145, #22134, #22137, #22149, #22135, #22136, #22138, #22192, #22147) - #22230
Conversation
## Description Make the content-area **All resources** icon match the sidebar's **All resources** entry. Replace the checkbox icon with `AppsList` and remove the obsolete check-mark comment. The sidebar, icon sizing, colors, and selection behavior are unchanged. ### User-facing usage Open Overview and select **All resources**. The content heading now uses the same list icon as the sidebar entry. ### Screenshots / Recordings > **This PR includes UI changes.** Both All resources icons are visible below.  ### Validation - **Passed:** dashboard rebuild and readiness check: ```powershell aspire resource aspire-dashboard rebuild --apphost C:\Development\Source\aspire\playground\TestShop\TestShop.AppHost\TestShop.AppHost.csproj --non-interactive aspire wait aspire-dashboard --apphost C:\Development\Source\aspire\playground\TestShop\TestShop.AppHost\TestShop.AppHost.csproj --non-interactive ``` Build completed with zero errors and the existing NU1903 warning for Microsoft.DotNet.ILCompiler. - **Passed:** Playwright verification that the rendered content-heading SVG matches the sidebar icon after resource data loads. - **Passed:** scoped whitespace check. - Unit tests were not run or added for this visual-only icon replacement. Fixes # (issue) ## Checklist - Is this feature complete? - [x] Yes. Ready to ship. - [ ] No. Follow-up changes expected. - Are you including unit tests for the changes and scenario tests if relevant? - [ ] Yes - [x] 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 - [x] 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 - [x] No Co-authored-by: Copilot <[email protected]> (cherry picked from commit 960ce07)
(cherry picked from commit 0cf8807)
(cherry picked from commit 21814a5)
(cherry picked from commit 8df3ff0)
(cherry picked from commit 5675e24)
) (cherry picked from commit 33704f8)
(cherry picked from commit 0ae5148)
(cherry picked from commit 6d76fc7)
(cherry picked from commit 48e2347)
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 22230Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 22230" |
Tests selector14 / 101 PR test projects · 2 PR jobs, from 48 changed files. Selected PR test projects (14 / 101)
Selected PR jobs (2)
How these were chosen — grouped by what changed
🔧 📦 affected project 🔧 🔧 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 🧪 Job reasons
Selection computed for commit |
There was a problem hiding this comment.
🟡 Changes recommended
Each log marker eagerly renders a hidden 15-element preview, potentially adding 1.5 million elements for a log-heavy span despite row virtualization; previews should render only for the hovered or focused marker using the shared tooltip.
1 open issue
1 file not reviewed
src/Aspire.Dashboard/Resources/TraceDetail.Designer.cs: Generated file
What changed in this PR
Backports nine dashboard changes from main to release/17.0, aligning the release dashboard and providing the base for the separately stacked home-page PR #22188.
Changes:
- Refines resource actions, endpoint links, sidebar spacing, and relationship graph labels.
- Unifies telemetry footer counts and pause indicators, including visible-span counts.
- Fixes SVG tooltip positioning and restores rich trace-log previews, with related tests and localization entries.
| File | Description |
|---|---|
tests/Aspire.Dashboard.Playwright.Tests/Integration/Playwright/ResourcePaneResponsiveTests.cs |
Updates typography and action-layout assertions. |
tests/Aspire.Dashboard.Playwright.Tests/Integration/Playwright/ResourceOverviewEndpointTests.cs |
Verifies endpoint display-name links. |
tests/Aspire.Dashboard.Playwright.Tests/Integration/Playwright/DashboardInteractionsTests.cs |
Tests SVG positioning and rich tooltips. |
tests/Aspire.Dashboard.Components.Tests/Pages/TracesTests.cs |
Tests responsive footer placement. |
tests/Aspire.Dashboard.Components.Tests/Pages/TraceDetailsTests.cs |
Tests previews and visible-span counts. |
tests/Aspire.Dashboard.Components.Tests/Pages/ResourceOverviewTypeDisplayNameTests.cs |
Updates graph-node expectations. |
tests/Aspire.Dashboard.Components.Tests/Pages/ResourceOverviewRelationshipGraphTests.cs |
Tests replica-aware label updates. |
tests/Aspire.Dashboard.Components.Tests/Pages/ResourceOverviewEndpointTests.cs |
Tests link eligibility and masking. |
tests/Aspire.Dashboard.Components.Tests/Pages/MetricsTests.cs |
Updates pause-indicator selector. |
tests/Aspire.Dashboard.Components.Tests/Pages/ConsoleLogsTests.cs |
Updates pause-indicator selector. |
tests/Aspire.Dashboard.Components.Tests/Layout/ResourcesLayoutTests.cs |
Tests full-page resource and parameter actions. |
tests/Aspire.Dashboard.Components.Tests/Controls/ResourceRelationshipGraphTests.cs |
Tests label fitting and truncation. |
src/Aspire.Dashboard/wwwroot/js/app-tooltips.js |
Adds SVG positioning and rich-content support. |
src/Aspire.Dashboard/wwwroot/css/controls.css |
Styles pause indicators and shared previews. |
src/Aspire.Dashboard/Resources/xlf/TraceDetail.zh-Hant.xlf |
Adds span-count localization entries. |
src/Aspire.Dashboard/Resources/xlf/TraceDetail.zh-Hans.xlf |
Adds span-count localization entries. |
src/Aspire.Dashboard/Resources/xlf/TraceDetail.tr.xlf |
Adds span-count localization entries. |
src/Aspire.Dashboard/Resources/xlf/TraceDetail.ru.xlf |
Adds span-count localization entries. |
src/Aspire.Dashboard/Resources/xlf/TraceDetail.pt-BR.xlf |
Adds span-count localization entries. |
src/Aspire.Dashboard/Resources/xlf/TraceDetail.pl.xlf |
Adds span-count localization entries. |
src/Aspire.Dashboard/Resources/xlf/TraceDetail.ko.xlf |
Adds span-count localization entries. |
src/Aspire.Dashboard/Resources/xlf/TraceDetail.ja.xlf |
Adds span-count localization entries. |
src/Aspire.Dashboard/Resources/xlf/TraceDetail.it.xlf |
Adds span-count localization entries. |
src/Aspire.Dashboard/Resources/xlf/TraceDetail.fr.xlf |
Adds span-count localization entries. |
src/Aspire.Dashboard/Resources/xlf/TraceDetail.es.xlf |
Adds span-count localization entries. |
src/Aspire.Dashboard/Resources/xlf/TraceDetail.de.xlf |
Adds span-count localization entries. |
src/Aspire.Dashboard/Resources/xlf/TraceDetail.cs.xlf |
Adds span-count localization entries. |
src/Aspire.Dashboard/Resources/TraceDetail.resx |
Defines singular and plural span-count text. |
src/Aspire.Dashboard/Resources/TraceDetail.Designer.cs |
Exposes span-count resource strings. |
src/Aspire.Dashboard/Components/Pages/Traces.razor.cs |
Handles footer updates before initialization. |
src/Aspire.Dashboard/Components/Pages/Traces.razor |
Routes counts to the responsive footer. |
src/Aspire.Dashboard/Components/Pages/TraceDetail.razor.cs |
Tracks visible spans and pause status. |
src/Aspire.Dashboard/Components/Pages/TraceDetail.razor |
Adds rich previews and telemetry footer. |
src/Aspire.Dashboard/Components/Pages/StructuredLogs.razor |
Restores mobile page-footer placement. |
src/Aspire.Dashboard/Components/Pages/ResourceOverview.razor.css |
Aligns endpoints and removes graph gutters. |
src/Aspire.Dashboard/Components/Pages/ResourceOverview.razor.cs |
Supplies replica identity to graph nodes. |
src/Aspire.Dashboard/Components/Pages/ResourceOverview.razor |
Links endpoint names and updates graph inputs. |
src/Aspire.Dashboard/Components/Pages/Metrics.razor |
Routes the pause indicator responsively. |
src/Aspire.Dashboard/Components/Pages/ConsoleLogs.razor |
Routes the pause indicator responsively. |
src/Aspire.Dashboard/Components/Legacy/Pages/TraceDetail.razor.css |
Moves preview styling to shared CSS. |
src/Aspire.Dashboard/Components/Legacy/Pages/TraceDetail.razor |
Uses the shared preview class. |
src/Aspire.Dashboard/Components/Layout/ResourcesLayout.razor.css |
Refines typography, action spacing, and footers. |
src/Aspire.Dashboard/Components/Layout/ResourcesLayout.razor.cs |
Selects full-page commands and exposes replica detection. |
src/Aspire.Dashboard/Components/Layout/ResourcesLayout.razor |
Simplifies actions and matches scope icons. |
src/Aspire.Dashboard/Components/Controls/ResourceRelationshipGraph.razor.css |
Uses caption-sized graph labels. |
src/Aspire.Dashboard/Components/Controls/ResourceRelationshipGraph.razor.cs |
Implements replica-aware label truncation. |
src/Aspire.Dashboard/Components/Controls/ResourceRelationshipGraph.razor |
Passes node identity into label formatting. |
src/Aspire.Dashboard/Components/Controls/PauseWarning.razor |
Renders the compact pause indicator. |
Review effort: Balanced
| @onclick="@(() => ToggleSpanLogsAsync(item.LogEntry))" | ||
| @onclick:stopPropagation="true"> | ||
| </button> | ||
| <div id="@tooltipId" class="log-tooltip" hidden> |
c09b11c
into
release/17.0
|
✅ No documentation update needed. excluded → base_branch_is_release, title_release_prefix. This is a combined backport ( |
… the top (#22188) ## Description The home-page and "list goes to the top" layout from the dashboard IA discussion. **The table is its own page.** The table of every resource is the resource list at full width, not a view of a selection, so it is no longer a state of the Overview tab. It is the home page at `/`. `/resources` is only the overview of all resources. Reload, back and links to `/` show the table without the history-entry marker and per-tab session value that used to decide between the two. **No page has a close button.** A tab's content is a page, scoped by the list beside it, not a pane over the table. The page-level X on Overview pages (and Escape to close) is removed. The table is reached from the brand or the browser's back button. The brand is the home button: it has a house after the application name, filled in while home is showing. The whole head of the list's column is the button, with the house at its far end. The table itself has no width control: it is left by choosing a row, "All resources" or a tab. **The list goes to the top.** The header's brand is the top of the list's column, exactly as wide as the docked list, and the tabs start where the page they switch starts. The brand keeps that width when the list is hidden or fills the page as the table, so the header doesn't move when the list does. ### Behavior | Place | What it shows | |---|---| | `/` | The table. No tab is active. Tabs stay visible and open their view for all resources. | | `/resources` | The overview of all resources, beside the docked list. | | Brand (logo, name, house) | Goes to `/`. The whole cell is clickable. | | Collapse button | Beside the page title, as before. Not shown on the table. | | `/` on a narrow layout | Redirects to `/resources`, since narrow layouts have no full-page list. | | `/?resource=…`, `/?view=Graph`, no resource service | Redirect as before. | ### Judgment calls worth a look - **Banners moved above the header.** Under the header they cut the list's column in two. The alternative is to put them in the content column only, which makes the list jump when it docks. - **Tabs have less room.** They share the header with a brand as wide as the list in every state, so at 1280px with a resource that has a Terminal tab, Metrics moves into the overflow menu, and at the narrowest desktop width (769px) only the first tab fits. Hiding the list does not give the tabs more room. - **The header uses the page background with hairlines** instead of its own darker band, so the brand reads as part of the list's column. - **Home does not restore the last selection.** "All resources" on the table always lands on the overview of all resources. ### Also fixed - **Parameter rows in the full-page table keep their "..." menu.** #22147 showed only the Set parameter button there, which left Delete parameter unreachable from the table. Restoring the menu also fixes `ResourcePaneResponsiveTests.Rows_KeepDensityRhythmAndProtectedSidebarActions`, which fails on main. ### Behavior kept from the close button The page close button handled two edge cases that the brand now handles: - **A tab chosen while home is loading** waits for home to land, then opens for all resources, instead of racing it with a URL for the previously selected resources. If home lands between focusing a tab and choosing it, keyboard focus moves to the same tab in the re-created strip. - **Motion:** the list grows across the page when the brand is clicked, and docks with motion from the table's "All resources" row. Arriving home with the back button or a link shows the table at once. ### Validation - `Aspire.Dashboard.Components.Tests`: 1,436 passed, 0 failed (after merging the latest main). - `Aspire.Dashboard.Playwright.Tests`, including outerloop: everything passes except 5 tests that also fail on a clean checkout of main: - `MobileNavMenuTests.MobileNavMenuClosesWhenFocusLeavesMenu` and `MobileNavFocusRemainsVisibleAtHighZoomViewport`. - `DesktopNavMenuTests.MainNavigation_NavigatesBetweenSectionsAndMarksActiveItem`. - `ResourcePaneInteractionTests.ResourceRowModifierClicks_SelectSeveralResources` (Windows/MacIntel case). - `BrowserTokenAuthenticationTests.BrowserToken_LoginPage_SuccessWithWhitespaceToken_RedirectToResources` failed once in the full run, then passed 3 of 3 on its own. - The timing-sensitive tests this change touches (home then tab, selection-reveal interruptions, canvas motion, tooltips) passed 3 runs in a row. - Checked by hand in TestShop: `/` and reload, row selection from the table, back, a tab from the table, a click in the empty part of the brand cell, the home mark at home, and hiding and showing the list. ### Release/17.0 This PR targets `release/17.0`. The dashboard PRs from `main` that it builds on (#22145, #22134, #22137, #22149, #22135, #22136, #22138, #22192 and #22147) reached `release/17.0` in #22230. Once this merges, `release/17.0` merges back into `main`. The branch is one commit on the current `release/17.0`. It passes `Aspire.Dashboard.Components.Tests` (1,443 of 1,443) and `Aspire.Dashboard.Playwright.Tests` apart from 3 tests that also fail on `main` (two mobile nav menu tests and one modifier-click case). ## Checklist - Is this feature complete? - [x] Yes. Ready to ship. - [ ] No. Follow-up changes expected. - Are you including unit tests for the changes and scenario tests if relevant? - [x] Yes - [ ] No - Did you add public API? - [ ] Yes - [x] No - Does the change make any security assumptions or guarantees? - [ ] Yes - [x] No 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Maddy Montaquila <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
…s, trace log previews, test flakes (#22232) The remaining dashboard work for `release/17.0`, as one squashable PR: one commit per change, in this order. **Backported from `main` (cherry-picked with `-x`):** 1. #21500: Fix flaky terminal WebSocket close handshake abort (test only) 2. #21503: Fix bUnit JS timeout flakes in StructuredLogs/Traces/TraceDetails tests (test only) 3. #21471: Fix flaky TerminalWebSocketTests final-output drain (test only) 4. #21924: Read resource row state at every density in dashboard browser tests (test only) 5. #22142: Fix inconsistent dashboard action icon colors. It conflicted with #22188 in `ResourcesLayout.razor`: the resolution keeps the row menu on every row, parameters included, with #22142's icon color. **From open PRs against `main`, applied as they stand:** 6. #22228: Fix resource sidebar hover state after selection 7. #22229: Keep resource picker popup width consistent **New:** 8. Render the trace log preview only for the marker that's hovered or focused. Each log marker rendered its own hidden preview for the tooltip, so a span with many logs built over a million hidden elements. The page now renders one preview, filled on hover or focus. This addresses Copilot's review on #22230. 9. Center tag group chevrons over the state dot column. In the compact sidebar at rest, the rows' state dots form a column at the end of the list, and the group header's chevron sat 13px past it. This replaces #21996. 10. Fix two resource pane Playwright tests: - `Rows_KeepDensity` expected parameter rows in the expanded list to have no overflow menu, but every row has one now. - `FilterAndGrouping` could hover before the feedback prompt pushed the page down 40px, leaving the pointer on the brand. It now waits for the prompt. When `release/17.0` merges back into `main`, the `Rows_KeepDensity` change has to come along with it, because #22228's version of that test expects no menu on parameter rows. Once this is in `release/17.0`, `release/17.0` merges back into `main`. #22228 and #22229 can then close on `main`. ## Customer Impact Fixes and polish to the 17.0 dashboard: icon colors, the resource sidebar and picker, and trace pages with many logs. ## Testing - `Aspire.Dashboard.Components.Tests`: 1,447 passed, 0 failed. - `ResourcePaneResponsiveTests.FilterAndGrouping_*` and `Rows_KeepDensity*`: 11 passed. `FilterAndGrouping` passed 5 runs in a row after the fix; before it, the 2000px cases failed in about half the runs. - The chevron alignment was checked in the browser at 1440px: the chevron and the dots are both centered 25px from the list's end. ## Risk Low. Dashboard-only, and the backports are unchanged apart from the one conflict described above. ## Regression? No. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: David Fowler <[email protected]> Co-authored-by: davidfowl <[email protected]> Co-authored-by: Copilot <[email protected]> Co-authored-by: Maddy Montaquila <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: James Newton-King <[email protected]> Co-authored-by: Sébastien Ros <[email protected]>

Brings the remaining dashboard changes from
maintorelease/17.0, sorelease/17.0matchesmain's dashboard. The commits are cherry-picked with-xin the order they merged tomain, one per source PR, onto the currentrelease/17.0tip:All nine applied cleanly, with no conflict resolution.
#22188 (the dashboard home page) is stacked on this branch. Once both are in
release/17.0,release/17.0merges back intomain.Customer Impact
The dashboard in 17.0 would otherwise ship without these fixes and refinements to the resource list, the overview, tooltips and relationship graphs, all already merged and reviewed on
main.Testing
Aspire.Dashboard.Components.Testson this branch: 1,440 passed, 0 failed.main, with their original tests.Risk
Low. Dashboard-only changes that already merged to
main, applied without modification.Regression?
No.
🤖 Generated with Claude Code