Skip to content

[release/17.0] Improve telemetry source rows in the dashboard - #22257

Merged
Jose Perez Rodriguez (joperezr) merged 3 commits into
release/17.0from
fix/dashboard-telemetry-source-rows
Nov 16, 2026
Merged

Jose Perez Rodriguez (joperezr) merged 3 commits into
release/17.0from
fix/dashboard-telemetry-source-rows

Conversation

@JamesNK

Copy link
Copy Markdown
Member

Description

Telemetry-only resource rows repeat "Telemetry sources" beside or below every name, and reserve an empty action area that makes compact sidebar content shift on hover.

  • Compact rows now show only the source name, without the redundant label or empty hover action space.
  • Comfortable rows show the available retained signals, such as Structured logs · Traces · Metrics, using existing localized strings and the same separator markup as comfortable resource rows.
  • Signal descriptions update when telemetry arrives or is cleared. The behavior applies to both the sidebar and the expanded resource table.
  • Added component coverage for signal changes, separators, and compact density in standalone and AppHost dashboards.

No additional dependencies.

Fixes # (issue)

User-facing usage

With telemetry-only sources in the dashboard, switch Settings > Resource list density between Compact and Comfortable. Compact shows names only; Comfortable shows each source's available signals beneath its name. This works in the sidebar and the expanded resource table.

Screenshots / Recordings

This PR includes UI changes. These comparisons use a clean release-branch baseline and this branch, connected to the same TestShop resource service and populated with the same five synthetic telemetry-only sources.

View Before After
Sidebar — Compact Before: compact sidebar After: compact sidebar
Sidebar — Comfortable Before: comfortable sidebar After: comfortable sidebar
Expanded table — Compact Before: compact expanded table After: compact expanded table
Expanded table — Comfortable Before: comfortable expanded table After: comfortable expanded table

Validation

Passed: 166 tests using isolated build outputs to avoid locking the running dashboard:

dotnet 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'

Manual browser verification covered both densities in the sidebar and expanded table, with five sources containing different combinations of structured logs, traces, and metrics.

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

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

Or

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

@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

Comfortable resource rows omit available signals from the link’s accessible description, preventing screen-reader users from hearing which signals are available.

1 open issue
What changed in this PR

This PR simplifies telemetry-only source rows in the dashboard sidebar and expanded resource table, making their content depend on the selected density.

Changes:

  • Compact rows show only source names and no longer reserve unused action space.
  • Comfortable rows display localized labels for retained logs, traces, and metrics.
  • Component tests cover signal updates, separators, and density changes in standalone and AppHost dashboards.
File Description
tests/​Aspire.Dashboard.Components.Tests/​Layout/​ResourcesLayoutTests.cs Adds signal and density coverage; updates the compact-row expectation.
src/​Aspire.Dashboard/​Components/​Layout/​ResourcesLayout.razor.css Lets telemetry links span the unused action area.
src/​Aspire.Dashboard/​Components/​Layout/​ResourcesLayout.razor.cs Builds localized labels from signal availability.
src/​Aspire.Dashboard/​Components/​Layout/​ResourcesLayout.razor Replaces the repeated source-kind label with comfortable-density signal summaries.

Review effort: Balanced

@IEvangelist

Copy link
Copy Markdown
Member

Does it make sense to include hover icons (actions) to take the user to the available, source type? Like, structured logs, traces or metrics?

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

@aspire-repo-bot
aspire-repo-bot Bot requested a balanced review from Copilot November 13, 2026 14:43
@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

The accessible-description assertion still expects Telemetry sources instead of Telemetry sources; Structured logs, causing both cases of Standalone_SourceLinksHaveAccessibleNamesInsteadOfHoverTooltips to fail.

1 open issue
1 resolved since last review

Review effort: Balanced

@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 were identified for the telemetry-only resource row changes.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

Remove redundant compact subtitles and empty hover action space. Show available telemetry signals with shared separators in comfortable rows.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

Tests selector

13 / 101 PR test projects · 2 PR jobs, from 4 changed files.

Selected PR test projects (13 / 101)

Aspire.Dashboard.Components.Tests, Aspire.Dashboard.Tests, Aspire.Hosting.Azure.Kubernetes.Tests, Aspire.Hosting.Azure.Tests, Aspire.Hosting.Blazor.Tests, Aspire.Hosting.Dotnet.Tests, Aspire.Hosting.DotnetTool.Tests, Aspire.Hosting.JavaScript.Tests, Aspire.Hosting.Radius.Tests, Aspire.Hosting.Testing.Tests, Aspire.Hosting.Tests, Aspire.Playground.Tests, Aspire.Templates.Tests

Selected PR jobs (2)

extension-e2e, native-dashboard-validation


How these were chosen — grouped by what changed

⚠️ 11 of the 13 selected test projects come from a single change — src/Aspire.Dashboard/Components/Layout/ResourcesLayout.razor.

🔧 src/Aspire.Dashboard/Components/Layout/ResourcesLayout.razor (changed source)
→ 11 via the project graph: Aspire.Dashboard.Tests, Aspire.Hosting.Azure.Kubernetes.Tests (3 hops), Aspire.Hosting.Azure.Tests (2 hops), Aspire.Hosting.Blazor.Tests (2 hops), Aspire.Hosting.Dotnet.Tests (2 hops), Aspire.Hosting.DotnetTool.Tests (2 hops), Aspire.Hosting.JavaScript.Tests, Aspire.Hosting.Radius.Tests (2 hops), Aspire.Hosting.Testing.Tests, Aspire.Hosting.Tests, Aspire.Playground.Tests (2 hops)

📦 affected project Aspire.Dashboard
→ 1 test: Aspire.Templates.Tests

🧪 tests/Aspire.Dashboard.Components.Tests/Layout/ResourcesLayoutTests.cs (changed test)
→ 1 directly: Aspire.Dashboard.Components.Tests

Job reasons

Job Triggered by
extension-e2e • src/Aspire.Dashboard/Components/Layout/ResourcesLayout.razor, src/Aspire.Dashboard/Components/Layout/ResourcesLayout.razor.cs, src/Aspire.Dashboard/Components/Layout/ResourcesLayout.razor.css
• affected project Aspire.Dashboard
native-dashboard-validation affected project Aspire.Dashboard

Selection computed for commit c7390c9.

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 telemetry-only resource row updates.

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.

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

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

@joperezr
Jose Perez Rodriguez (joperezr) merged commit e4647a3 into release/17.0 Nov 16, 2026
760 of 773 checks passed
@microsoft-github-policy-service microsoft-github-policy-service Bot added this to the 17.0 milestone Nov 16, 2026
@aspire-repo-bot

Copy link
Copy Markdown
Contributor

✅ No documentation update needed.

excluded → base_branch_is_release, title_release_prefix. This is a backport (title prefixed [release/17.0], release base). Docs belong with the original forward PR. Triggered signals (advisory only): pr_body_has_cli_flag_mention, pr_body_has_user_facing_section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants