Skip to content

Fix truncation of selected dashboard dropdown values - #20426

Merged
David Pine (IEvangelist) merged 1 commit into
mainfrom
fix/dashboard-dropdown-selected-ellipsis
Sep 24, 2026
Merged

David Pine (IEvangelist) merged 1 commit into
mainfrom
fix/dashboard-dropdown-selected-ellipsis

Conversation

@JamesNK

Copy link
Copy Markdown
Member

Description

Long resource names in dashboard selectors were hard-cut before the chevron, with no indication that the selected value continued. Selected values now remain on one line and truncate with an ellipsis across dashboard dropdowns. The expanded options still show the full resource name.

The shared dropdown button is constrained so its selected text cannot enlarge a FluentField grid track beyond the control's width. Editable combobox inputs are unchanged.

User-facing usage

Select a resource with a long name on the Console or Metrics page: the selected name ends in an ellipsis, and opening the dropdown shows the full name.

Screenshots / Recordings

This PR includes UI changes. Before recreates the original styling by temporarily disabling the new CSS rule in the browser; After shows the committed styling. Both screenshots use the same long TestShop resource name.

Before: clipped without ellipsis After: truncated with ellipsis
Before: long selected resource name cut off without an ellipsis After: long selected resource name ends with an ellipsis

Validation: manually verified in TestShop on the Console and Metrics resource selectors with long resource names, and ran git diff --check. No unit tests were added for this visual-only CSS change.

Fixes # (issue)

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

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@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 -- 20426

Or

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

@github-actions

Copy link
Copy Markdown
Contributor

Tests selector

13 / 99 PR test projects · 2 PR jobs, from 1 changed file.

Selected PR test projects (13 / 99)

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

⚠️ 12 of the 13 selected test projects come from a single change — src/Aspire.Dashboard/wwwroot/css/controls.css.

🔧 src/Aspire.Dashboard/wwwroot/css/controls.css (changed source)
→ 12 via the project graph: Aspire.Dashboard.Components.Tests, 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

Job reasons

Job Triggered by
extension-e2e • src/Aspire.Dashboard/wwwroot/css/controls.css
• affected project Aspire.Dashboard
native-dashboard-validation affected project Aspire.Dashboard

Selection computed for commit 93c8221.

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.

Copilot review overview

🟢 Approval recommended

The focused visual-only CSS change is consistent with the stated behavior and manual validation.

Review effort: Balanced
Findings: None

What changed in this PR

Updates shared dashboard dropdown styling so long selected values truncate with an ellipsis without affecting editable comboboxes.

Changes:

  • Constrains selected dropdown button text to one line.
  • Adds overflow and ellipsis styling.
File Description
src/​Aspire.Dashboard/​wwwroot/​css/​controls.css Adds selected-value truncation styling.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@IEvangelist
David Pine (IEvangelist) merged commit 17b1080 into main Sep 24, 2026
157 checks passed
@microsoft-github-policy-service microsoft-github-policy-service Bot added this to the 14.0 milestone Sep 24, 2026
aspire-repo-bot Bot added a commit to microsoft/aspire.dev that referenced this pull request Sep 24, 2026
Documents the fix from microsoft/aspire#20426 where long resource names in
dashboard dropdown selectors (Console logs, Metrics) now truncate with an
ellipsis instead of being abruptly cut off.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Pull request created: #1741

Generated by PR Documentation Check · copilot · auto · 59.1 AIC · ⌖ 16.2 AIC · ⊞ 18.7K

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

📝 Documentation has been drafted in microsoft/aspire.dev#1741 targeting release/13.6.

Drafted a docs PR. Triggered signals: pr_body_has_user_facing_section (evidence: PR body's "### User-facing usage" section: "Select a resource with a long name on the Console or Metrics page: the selected name ends in an ellipsis, and opening the dropdown shows the full name.") and pr_body_has_cli_flag_mention (matched on the validation note's git diff --check mention). Docs changes: added a bullet to whats-new/aspire-13-6.mdx's dashboard improvements list describing the dropdown ellipsis truncation fix, and updated dashboard/explore.mdx's Console logs section to note that long resource names truncate with an ellipsis in the drop-down button while the full name remains visible in the opened list.

Note

This draft PR needs human review before merging.

@JamesNK

Copy link
Copy Markdown
Member Author

/backport to release/13.6

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/13.6 (link to workflow run)

Jose Perez Rodriguez (joperezr) pushed a commit that referenced this pull request Sep 24, 2026
…20430)

Backport of #20426 to release/13.6

/cc @JamesNK

## Customer Impact

Long selected resource names in dashboard dropdowns are hard-cut without
an ellipsis, making it unclear that the value is truncated.

## Testing

Manually verified in TestShop on the Console and Metrics resource
selectors with long resource names; `git diff --check` passed.

## Risk

Low. The change is localized CSS for the shared non-editable dropdown
button and leaves expanded options and editable combobox inputs
unchanged.

## Regression?

Yes

Co-authored-by: James Newton-King <james@newtonking.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants