Repository navigation
Fix resource sidebar hover state after selection - #22228
Conversation
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 22228Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 22228" |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
🟡 Changes recommended
The transparent action rail retains nonzero dimensions, so existing compact-sidebar assertions will fail unless measurements account for transparency, including descendants, while preserving tabbability.
1 open issue
What changed in this PR
Fixes compact dashboard sidebar actions remaining visible after mouse selection, allowing resource type and state to reappear when the pointer leaves.
Changes:
- Uses keyboard-visible focus rather than any descendant focus to reveal actions.
- Keeps hidden actions tabbable while preserving hover and open-menu visibility.
- Documents the focus behavior and hidden-action handling.
| File | Description |
|---|---|
src/Aspire.Dashboard/Components/Layout/ResourcesLayout.razor.css |
Updates compact-sidebar focus selectors and hides resting actions without removing them from keyboard navigation. |
Review effort: Balanced
Co-authored-by: Copilot <[email protected]>
a6da541 to
2cb79bf
Compare
This comment has been minimized.
This comment has been minimized.
Co-authored-by: Copilot <[email protected]>
Tests selector13 / 101 PR test projects · 2 PR jobs, from 2 changed files. Selected PR test projects (13 / 101)
Selected PR jobs (2)
How these were chosen — grouped by what changed
🔧 📦 affected project Job reasons
Selection computed for commit |
|
✅ No documentation update needed. Proven false positive. Triggered signals: |
…s, trace log previews, test flakes (#22232) The remaining dashboard work for `release/17.0`, as one squashable PR: one commit per change, in this order. **Backported from `main` (cherry-picked with `-x`):** 1. #21500: Fix flaky terminal WebSocket close handshake abort (test only) 2. #21503: Fix bUnit JS timeout flakes in StructuredLogs/Traces/TraceDetails tests (test only) 3. #21471: Fix flaky TerminalWebSocketTests final-output drain (test only) 4. #21924: Read resource row state at every density in dashboard browser tests (test only) 5. #22142: Fix inconsistent dashboard action icon colors. It conflicted with #22188 in `ResourcesLayout.razor`: the resolution keeps the row menu on every row, parameters included, with #22142's icon color. **From open PRs against `main`, applied as they stand:** 6. #22228: Fix resource sidebar hover state after selection 7. #22229: Keep resource picker popup width consistent **New:** 8. Render the trace log preview only for the marker that's hovered or focused. Each log marker rendered its own hidden preview for the tooltip, so a span with many logs built over a million hidden elements. The page now renders one preview, filled on hover or focus. This addresses Copilot's review on #22230. 9. Center tag group chevrons over the state dot column. In the compact sidebar at rest, the rows' state dots form a column at the end of the list, and the group header's chevron sat 13px past it. This replaces #21996. 10. Fix two resource pane Playwright tests: - `Rows_KeepDensity` expected parameter rows in the expanded list to have no overflow menu, but every row has one now. - `FilterAndGrouping` could hover before the feedback prompt pushed the page down 40px, leaving the pointer on the brand. It now waits for the prompt. When `release/17.0` merges back into `main`, the `Rows_KeepDensity` change has to come along with it, because #22228's version of that test expects no menu on parameter rows. Once this is in `release/17.0`, `release/17.0` merges back into `main`. #22228 and #22229 can then close on `main`. ## Customer Impact Fixes and polish to the 17.0 dashboard: icon colors, the resource sidebar and picker, and trace pages with many logs. ## Testing - `Aspire.Dashboard.Components.Tests`: 1,447 passed, 0 failed. - `ResourcePaneResponsiveTests.FilterAndGrouping_*` and `Rows_KeepDensity*`: 11 passed. `FilterAndGrouping` passed 5 runs in a row after the fix; before it, the 2000px cases failed in about half the runs. - The chevron alignment was checked in the browser at 1440px: the chevron and the dots are both centered 25px from the list's end. ## Risk Low. Dashboard-only, and the backports are unchanged apart from the one conflict described above. ## Regression? No. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: David Fowler <[email protected]> Co-authored-by: davidfowl <[email protected]> Co-authored-by: Copilot <[email protected]> Co-authored-by: Maddy Montaquila <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: James Newton-King <[email protected]> Co-authored-by: Sébastien Ros <[email protected]>

Description
Selecting a resource in the compact dashboard sidebar could leave its action buttons visible after the pointer moved away, hiding the resource type and state. Restore the unhovered display after mouse selection while keeping actions accessible by keyboard and visible when a menu is open.
The sidebar uses keyboard-visible focus instead of any focus to reveal actions, and keeps the hidden action rail tabbable.
Fixes # (issue)
User-facing usage
Select a resource in the compact sidebar and move the pointer away. Its type and state return; hover or use the keyboard to reveal its actions again.
Screenshots / Recordings
Validation
aspire resource aspire-dashboard rebuild --apphost C:\Development\Source\aspire-review\playground\TestShop\TestShop.AppHost\TestShop.AppHost.csproj --non-interactive— passed; dashboard build completed with zero warnings and errors.aspire wait aspire-dashboard --apphost C:\Development\Source\aspire-review\playground\TestShop\TestShop.AppHost\TestShop.AppHost.csproj --non-interactive— passed.git diff --check— passed.Checklist
<remarks />and<code />elements on your triple slash comments?