Repository navigation
Unify dashboard telemetry footer counts and pause indicators - #22149
James Newton-King (JamesNK) merged 2 commits into
Conversation
Co-authored-by: Copilot <[email protected]>
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 22149Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 22149" |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the telemetry-count and capture-pause indicator updates.
No open issues 🎉
1 file not reviewed
src/Aspire.Dashboard/Resources/TraceDetail.Designer.cs: Generated file
What changed in this PR
This PR standardizes telemetry counts and capture-pause indicators across the Aspire dashboard, using the workspace footer on desktop and preserving page-footer visibility on mobile.
Changes:
- Aligns footer placement across logs, traces, trace detail, and metrics.
- Adds visible-span counts that update when spans are filtered or collapsed, with localization resources and component coverage.
- Applies compact styling specifically to pause indicators without changing other warning banners.
| File | Description |
|---|---|
| tests/Aspire.Dashboard.Components.Tests/Pages/TracesTests.cs | Tests desktop/mobile count and pause-indicator placement. |
| tests/Aspire.Dashboard.Components.Tests/Pages/TraceDetailsTests.cs | Tests pause visibility and span-count updates; dispatches data calls through the renderer. |
| src/Aspire.Dashboard/wwwroot/css/controls.css | Adds compact pause-indicator sizing and text truncation. |
| src/Aspire.Dashboard/Resources/xlf/TraceDetail.zh-Hant.xlf | Adds span-count localization entries for Traditional Chinese. |
| src/Aspire.Dashboard/Resources/xlf/TraceDetail.zh-Hans.xlf | Adds span-count localization entries for Simplified Chinese. |
| src/Aspire.Dashboard/Resources/xlf/TraceDetail.tr.xlf | Adds span-count localization entries for Turkish. |
| src/Aspire.Dashboard/Resources/xlf/TraceDetail.ru.xlf | Adds span-count localization entries for Russian. |
| src/Aspire.Dashboard/Resources/xlf/TraceDetail.pt-BR.xlf | Adds span-count localization entries for Brazilian Portuguese. |
| src/Aspire.Dashboard/Resources/xlf/TraceDetail.pl.xlf | Adds span-count localization entries for Polish. |
| src/Aspire.Dashboard/Resources/xlf/TraceDetail.ko.xlf | Adds span-count localization entries for Korean. |
| src/Aspire.Dashboard/Resources/xlf/TraceDetail.ja.xlf | Adds span-count localization entries for Japanese. |
| src/Aspire.Dashboard/Resources/xlf/TraceDetail.it.xlf | Adds span-count localization entries for Italian. |
| src/Aspire.Dashboard/Resources/xlf/TraceDetail.fr.xlf | Adds span-count localization entries for French. |
| src/Aspire.Dashboard/Resources/xlf/TraceDetail.es.xlf | Adds span-count localization entries for Spanish. |
| src/Aspire.Dashboard/Resources/xlf/TraceDetail.de.xlf | Adds span-count localization entries for German. |
| src/Aspire.Dashboard/Resources/xlf/TraceDetail.cs.xlf | Adds span-count localization entries for Czech. |
| src/Aspire.Dashboard/Resources/TraceDetail.resx | Defines singular and plural span-count messages. |
| src/Aspire.Dashboard/Resources/TraceDetail.Designer.cs | Exposes the new span-count resources. |
| src/Aspire.Dashboard/Components/Pages/Traces.razor.cs | Guards footer updates before the component reference is assigned. |
| src/Aspire.Dashboard/Components/Pages/Traces.razor | Routes counts and pause status to the appropriate footer. |
| src/Aspire.Dashboard/Components/Pages/TraceDetail.razor.cs | Updates visible-span counts and supplies trace-capture pause text. |
| src/Aspire.Dashboard/Components/Pages/TraceDetail.razor | Adds responsive count and pause-status footers. |
| src/Aspire.Dashboard/Components/Pages/StructuredLogs.razor | Keeps counts in the page footer on mobile. |
| src/Aspire.Dashboard/Components/Pages/Metrics.razor | Routes pause status to the appropriate footer. |
| src/Aspire.Dashboard/Components/Pages/ConsoleLogs.razor | Routes pause status to the appropriate footer. |
| src/Aspire.Dashboard/Components/Layout/ResourcesLayout.razor.css | Adjusts footer shrinking, spacing, and count alignment. |
| src/Aspire.Dashboard/Components/Controls/PauseWarning.razor | Adds a dedicated class for pause-only styling. |
Review effort: Balanced
David Pine (IEvangelist)
left a comment
There was a problem hiding this comment.
See #22149 (comment)
Co-authored-by: Copilot <[email protected]>
Tests selector14 / 101 PR test projects · 2 PR jobs, from 29 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 |
|
David Pine (@IEvangelist) Addressed the badge and padding feedback from #22149 (comment) in 797981d. The capture-paused indicator now matches the resource-state pill: 22px high, 12px icon and text, matching 1px 9px padding and 8px radius, with no border and a subtle warning tint. The PR screenshots have been refreshed, the dashboard rebuild passed, and all 6 targeted pause/footer tests passed. The relative-time wording suggestion is tracked separately in #22181: display "now" / "X minutes ago" and update it while capture remains paused. The exact timestamp remains unchanged in this PR. |
Dismissed at JamesNK's request.
|
Pull request created: #2125
|
|
📝 Documentation has been drafted in microsoft/aspire.dev#2125 targeting Updated Note This draft PR needs human review before merging. |
…22149, #22135, #22136, #22138, #22192, #22147) (#22230) Brings the remaining dashboard changes from `main` to `release/17.0`, so `release/17.0` matches `main`'s dashboard. The commits are cherry-picked with `-x` in the order they merged to `main`, one per source PR, onto the current `release/17.0` tip: 1. #22145: Match dashboard All resources content and sidebar icons 2. #22134: Align resource endpoint details and link display names 3. #22137: Use smaller labels and more text width in relationship graphs 4. #22149: Unify dashboard telemetry footer counts and pause indicators 5. #22135: Use standard font sizes in the resource selector 6. #22136: Right-align metadata and actions in the compact resource sidebar 7. #22138: Fix dashboard SVG tooltips and restore rich trace previews 8. #22192: Fix resource graph overview padding 9. #22147: Simplify expanded resource grid actions 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.0` merges back into `main`. ## 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.Tests` on this branch: 1,440 passed, 0 failed. - The same changes have been on `main`, with their original tests. ## Risk Low. Dashboard-only changes that already merged to `main`, applied without modification. ## Regression? No. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: James Newton-King <[email protected]> Co-authored-by: Copilot <[email protected]>
… 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]>

Description
Telemetry counts and capture-pause status were displayed inconsistently across dashboard pages, and the pause warning was taller than the workspace footer.
Align Traces with the Structured logs footer, add a visible-span count to Trace detail, and show the same compact pause indicator on Console logs, Structured logs, Traces, Trace detail, and Metrics. Counts remain visible in the mobile page footer, and span counts update when filters or collapsed spans change. Other warning banners retain their existing sizing.
Fixes #21862
Follow-up: #22181 tracks displaying relative pause time such as "now" or "X minutes ago" instead of the absolute timestamp.
User-facing usage
Screenshots / Recordings
Structured logs (after)
Traces (after)
Trace detail (after)
Validation
Passed: regenerated localization files with
dotnet build src\Aspire.Dashboard\Aspire.Dashboard.csproj /t:UpdateXlf.Passed: rebuilt the running Stress dashboard and confirmed it healthy:
Passed before the pill restyling: all 111 targeted component tests, including footer routing on desktop/mobile and span-count updates after collapsing or filtering:
Passed: live Stress browser checks for pause/resume and footer placement on Console logs, Structured logs, Traces, and Metrics at 1280px, 900px, and 600px. These checks covered the original 28px badges, matching count typography, no duplicate indicators, and mobile count placement. Final pill geometry is verified below.
Passed: live Trace detail checks for pause status, visible-span count, and filtering to
Showing 0 spans.Builds/tests report the pre-existing NU1903 warning for
Microsoft.DotNet.ILCompiler.Passed after the pill restyling: all 6 targeted pause/footer tests:
Passed: rebuilt TestShop with
aspire resource aspire-dashboard rebuild --apphost C:\Development\Source\aspire\playground\TestShop\TestShop.AppHost\TestShop.AppHost.csproj --non-interactiveand confirmed health withaspire wait aspire-dashboard --apphost C:\Development\Source\aspire\playground\TestShop\TestShop.AppHost\TestShop.AppHost.csproj --non-interactive.Passed: compared the Running and Capture paused pills in the live TestShop footer. Both have 22px height, 12px icon and text, 1px 9px padding, an 8px radius, and no border. Rechecked this geometry on Structured logs, Traces, and Trace detail while capturing the updated screenshots.
Checklist
<remarks />and<code />elements on your triple slash comments?