Skip to content

Fix dashboard selection indicators - #20141

Merged
Ella Hathaway (ellahathaway) merged 1 commit into
microsoft:mainfrom
JamesNK:fix/dashboard-selection-indicators
Sep 16, 2026
Merged

Ella Hathaway (ellahathaway) merged 1 commit into
microsoft:mainfrom
JamesNK:fix/dashboard-selection-indicators

Conversation

@JamesNK

Copy link
Copy Markdown
Member

Description

Fix the dashboard selection indicators in the Console Logs settings menu and Fluent dropdowns.

  • Use an explicit accent-colored checkmark in the Console/Terminal menu indicator column while preserving checkbox semantics.
  • Hide Fluent's shadow DOM fallback checkmark globally for selected dropdown options across rest, hover, active, and focus-visible states.
  • Preserve the existing selected background and accent bar styling.

Follow-up to #19887.

Screenshots

Console/Terminal menu

Before After
Menu checkmark overlapping the label Accent checkmark in the menu indicator column

Resource dropdown

Before After
Selected resource with Fluent fallback tick Selected resource without fallback tick

Validation

  • dotnet build src/Aspire.Dashboard/Aspire.Dashboard.csproj
  • Aspire.Dashboard.Tests: 1,734 passed
  • Aspire.Dashboard.Components.Tests: 358 passed
  • Playwright verification of menu alignment/color and dropdown selected states

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 -- 20141

Or

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

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.

🔵 Needs a closer look

Make the Console/Terminal checkmarks conditional so only the selected view is marked.

Pull request overview

Fixes selection indicators in the Console Logs settings menu and Fluent dropdowns.

Changes:

  • Adds accent-colored menu checkmarks while preserving checkbox semantics.
  • Hides Fluent fallback checkmarks across interaction states.
  • Preserves selected backgrounds and accent bars.
File summaries
File Summary
src/Aspire.Dashboard/wwwroot/css/controls.css Updates selected dropdown styling.
src/Aspire.Dashboard/Components/Pages/ConsoleLogs.razor.cs Adds explicit menu checkmark indicators; unchecked items must not display them.
Review details

Suppressed comments (2)

src/Aspire.Dashboard/Components/Pages/ConsoleLogs.razor.cs:656

  • This checkmark is rendered for the Console item even when it is unchecked, because AspireMenu always renders MenuButtonItem.Icon in the indicator slot. That leaves both Console and Terminal options visually marked instead of only the active view; make the icon conditional on the same selection state (or render it only when Checked is true).
                Icon = s_checkmarkIcon,
                Role = MenuItemRole.Checkbox,
                Checked = _activeView == ConsoleLogsView.Console,

src/Aspire.Dashboard/Components/Pages/ConsoleLogs.razor.cs:665

  • This checkmark is rendered for the Terminal item even when it is unchecked, because AspireMenu always renders MenuButtonItem.Icon in the indicator slot. That leaves both Console and Terminal options visually marked instead of only the active view; make the icon conditional on the same selection state (or render it only when Checked is true).
                Icon = s_checkmarkIcon,
                Role = MenuItemRole.Checkbox,
                Checked = _activeView == ConsoleLogsView.Terminal,
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite (auto)

Note

Copilot is running an experiment and ran this review at Lite.


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

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

@ellahathaway
Ella Hathaway (ellahathaway) merged commit 98f5f26 into microsoft:main Sep 16, 2026
420 of 423 checks passed
@github-actions github-actions Bot added this to the 13.6 milestone Sep 16, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⚠️ CI Failure Analysis: Possible Flaky Test(s)

The CI build failed due to test failure(s) that appear unrelated to the PR changes. These may be flaky tests.

Suspected flaky test(s):

  • Aspire dynamic debug configuration E2E "after each" hook for "re-resolves the selected AppHost by dynamic configuration name in duplicate-alias workspaces" in job Tests / Run VS Code extension E2E tests / VS Code extension E2E (Windows, dynamic-debug-configuration)
    • Error: Dynamic debug configuration E2E teardown failed.
  1. Error: EBUSY: resource busy or locked, rmdir 'C:\Users\runneradmin\AppData\Local\Temp\aev-3k2Xdg\workspace.e2e-dynamic-debug\first'
  • Stack Trace (first frames):
AggregateError: Dynamic debug configuration E2E teardown failed.
1. Error: EBUSY: resource busy or locked, rmdir 'C:\Users\runneradmin\AppData\Local\Temp\aev-3k2Xdg\workspace\.e2e-dynamic-debug\first'
    at runE2eTeardown (out\test-e2e\test-e2e\helpers\fixtures.js:217:15)
    at async Context.<anonymous> (out\test-e2e\test-e2e\dynamicDebugConfiguration.e2e.test.js:62:9)
  • Why likely flaky: EBUSY resource busy/locked errors on rmdir of temp workspace directories on Windows are a well-known Windows file-locking race condition (another process, e.g. a lingering VS Code/Node process, still holds a handle on the directory during cleanup). This is a teardown-only failure, not related to the actual test assertions, and it is unrelated to the PR's Dashboard-only changes. This exact error pattern and test name matches the prior recurring cause 'vscode-e2e-windows-dynamic-debug-configuration-flaky' with 25 prior occurrences.

Suggested actions:

  • Re-run the failed CI jobs to confirm if the failure is intermittent
  • If the test continues to fail, consider quarantining it using /quarantine-test <test name> <issue URL>
  • Search existing issues to see if this test is already known to be flaky

You can re-run the failed jobs from the workflow run page.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants