Skip to content

[release/17.0] Improve resource picker hover actions - #22239

Merged
Jose Perez Rodriguez (joperezr) merged 2 commits into
release/17.0from
jamesnk/resource-picker-hover-actions
Nov 14, 2026
Merged

Jose Perez Rodriguez (joperezr) merged 2 commits into
release/17.0from
jamesnk/resource-picker-hover-actions

Conversation

@JamesNK

Copy link
Copy Markdown
Member

Description

Comfortable resource-picker rows currently show their buttons all the time, taking space away from names and status text. Both comfortable and compact rows also reserve empty action slots when a resource has no endpoint link or highlighted command.

  • Reuse compact mode's hover, keyboard-focus, and open-menu behavior for comfortable rows in the non-expanded picker.
  • Let content use the hidden action rail's space.
  • Share content-sized action rails between both densities, reserving only buttons that are present rather than empty link, command, or toggle slots.
  • Keep error badges stationary as actions appear. Touch devices retain visible actions, and the expanded resource list is unchanged.

No new dependencies.

Fixes # (issue)

User-facing usage

Select Settings > Resource list density > Comfortable, then hover or keyboard-focus a resource row to reveal its actions. Moving away gives its name and status more room. Resources without endpoint links no longer have a blank slot before their command buttons; compact mode uses the same spacing.

Screenshots / Recordings

This PR includes UI changes. The screenshots show the same resource picker at rest and on hover, using the locally rebuilt dashboard.

Density At rest On hover
Comfortable Comfortable picker at rest Comfortable picker on hover
Compact Compact picker at rest Compact picker on hover

Validation

  • aspire resource aspire-dashboard rebuild --apphost C:\Development\Source\aspire\playground\Stress\Stress.AppHost\Stress.AppHost.csproj --non-interactive — passed; build succeeded with 0 warnings and 0 errors.
  • aspire wait aspire-dashboard --apphost C:\Development\Source\aspire\playground\Stress\Stress.AppHost\Stress.AppHost.csproj --non-interactive — passed; dashboard healthy.
  • git diff --check -- src\Aspire.Dashboard\Components\Layout\ResourcesLayout.razor.css src\Aspire.Dashboard\Components\Layout\ResourcesLayout.razor — passed.
  • Browser checks passed for comfortable hover/focus/open-menu behavior, the collapsed picker, and compact hover behavior. Rows without endpoint links have 12px content-to-button spacing in both densities.
  • Browser checks passed for menu-only, one-command, endpoint-plus-command, and two-command action rails. A temporary browser fixture confirmed comfortable error badges remain stationary on hover.
  • No automated unit tests added or run: the change affects CSS layout and Razor comments; validation used a dashboard build and browser checks.

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

Or

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

@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 hover/focus styling adds an empty action column to telemetry-source rows in comfortable density, unnecessarily shrinking resource names when no action buttons exist.

1 open issue
What changed in this PR

Updates the dashboard’s non-expanded resource picker to give names and status text more room while keeping actions available on hover or keyboard focus.

Changes:

  • Extends compact mode’s hover, focus, and open-menu action visibility to comfortable rows.
  • Sizes action rails around available buttons and adjusts error-badge offsets to keep badges stationary.
  • Updates Razor comments to describe the revised spacing; no Razor behavior changes.
File Description
src/​Aspire.Dashboard/​Components/​Layout/​ResourcesLayout.razor.css Shares content-sized action rails across densities and updates visibility and badge positioning.
src/​Aspire.Dashboard/​Components/​Layout/​ResourcesLayout.razor Removes outdated comments and clarifies hidden toggle-placeholder behavior.

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 are recorded for the resource-picker action-rail changes.

No open issues 🎉

1 resolved since last review

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.

@IEvangelist

Copy link
Copy Markdown
Member

I know this isn't your fault, but could we fix this alignment? These should be on the same row.

image

@github-actions

Copy link
Copy Markdown
Contributor

Tests selector

13 / 101 PR test projects · 2 PR jobs, from 2 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

⚠️ 12 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)
→ 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/Components/Layout/ResourcesLayout.razor, src/Aspire.Dashboard/Components/Layout/ResourcesLayout.razor.css
• affected project Aspire.Dashboard
native-dashboard-validation affected project Aspire.Dashboard

Selection computed for commit c18d0de.

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 resource-picker action-rail changes.

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.

@joperezr
Jose Perez Rodriguez (joperezr) merged commit 9205e71 into release/17.0 Nov 14, 2026
309 of 314 checks passed
@microsoft-github-policy-service microsoft-github-policy-service Bot added this to the 17.0 milestone Nov 14, 2026
@aspire-repo-bot

Copy link
Copy Markdown
Contributor

✅ No documentation update needed.

excluded → base_branch_is_release, title_release_prefix. Backport PR (base release/17.0, title prefixed [release/17.0]); docs belong with the original forward PR. Triggered signals: pr_body_has_cli_flag_mention, pr_body_has_user_facing_section (evidence: PR body User-facing usage section on resource picker hover actions).

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