Repository navigation
Fix dashboard selection indicators - #20141
Ella Hathaway (ellahathaway) merged 1 commit into
Conversation
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 20141Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 20141" |
There was a problem hiding this comment.
🔵 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
AspireMenualways rendersMenuButtonItem.Iconin 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 whenCheckedis 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
AspireMenualways rendersMenuButtonItem.Iconin 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 whenCheckedis 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.
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
98f5f26
into
microsoft:main
|
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):
Suggested actions:
You can re-run the failed jobs from the workflow run page. |
Description
Fix the dashboard selection indicators in the Console Logs settings menu and Fluent dropdowns.
Follow-up to #19887.
Screenshots
Console/Terminal menu
Resource dropdown
Validation
dotnet build src/Aspire.Dashboard/Aspire.Dashboard.csprojAspire.Dashboard.Tests: 1,734 passedAspire.Dashboard.Components.Tests: 358 passedChecklist
<remarks />and<code />elements on your triple slash comments?