Skip to content

Improve resources action menu #10869

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

JamesNK
Copy link
Member

@JamesNK JamesNK commented Aug 7, 2025

Description

Stop resource action menu from going off the side of the page by moving many commands into a sub-menu:

image

And do the same thing with URLs:

image

Fixes #10785

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
  • Does the change require an update in our Aspire docs?

@JamesNK JamesNK added this to the 9.5 milestone Aug 7, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR improves the resource action menu by preventing it from going off the side of the page when there are many commands. The solution groups non-highlighted commands into a "Commands" submenu when there are more than 5 total commands.

  • Restructures the resource menu to use submenus for better layout control
  • Adds a new "Commands" localized string resource
  • Modifies menu components to support nested menu items

Reviewed Changes

Copilot reviewed 18 out of 19 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/Aspire.Dashboard/Model/MenuButtonItem.cs Adds NestedMenuItems property to support submenu functionality
src/Aspire.Dashboard/Components/Controls/AspireMenu.razor Updates menu rendering to support nested menu items with recursive rendering
src/Aspire.Dashboard/Model/ResourceMenuItems.cs Refactors menu creation logic to group commands into submenus and separates concerns
src/Aspire.Dashboard/Model/ResourceViewModel.cs Changes GetDisplayDescription return type to nullable and improves empty string handling
src/Aspire.Dashboard/Resources/Resources.resx Adds ResourcesCommands localization key
src/Aspire.Dashboard/Resources/xlf/*.xlf Updates all localization files with new ResourcesCommands entry
Files not reviewed (1)
  • src/Aspire.Dashboard/Resources/Resources.Designer.cs: Language not supported

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.

[Dashboard] Popup menus not positioned correctly when resources collapsed (Firefox)
1 participant