Skip to content

Update display name and description for built-in lifecycle commands#7334

Merged
adamint merged 6 commits intomicrosoft:mainfrom
adamint:dev/adamint/localize-built-in-commands
Feb 7, 2025
Merged

Update display name and description for built-in lifecycle commands#7334
adamint merged 6 commits intomicrosoft:mainfrom
adamint:dev/adamint/localize-built-in-commands

Conversation

@adamint
Copy link
Copy Markdown
Member

@adamint adamint commented Jan 30, 2025

Description

Fixes #6982 - sets the display name and description for the three lifecycle commands in the resource service
image

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?

@adamint adamint requested review from JamesNK and drewnoakes January 30, 2025 21:49
@danmoseley danmoseley requested a review from Copilot February 3, 2025 21:07
Copy link
Copy Markdown
Contributor

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.

Copilot reviewed 1 out of 17 changed files in this pull request and generated no comments.

Files not reviewed (16)
  • src/Aspire.Dashboard/Aspire.Dashboard.csproj: Language not supported
  • src/Aspire.Dashboard/Resources/Commands.Designer.cs: Language not supported
  • src/Aspire.Dashboard/Resources/Commands.resx: Language not supported
  • src/Aspire.Dashboard/Resources/xlf/Commands.cs.xlf: Language not supported
  • src/Aspire.Dashboard/Resources/xlf/Commands.de.xlf: Language not supported
  • src/Aspire.Dashboard/Resources/xlf/Commands.es.xlf: Language not supported
  • src/Aspire.Dashboard/Resources/xlf/Commands.fr.xlf: Language not supported
  • src/Aspire.Dashboard/Resources/xlf/Commands.it.xlf: Language not supported
  • src/Aspire.Dashboard/Resources/xlf/Commands.ja.xlf: Language not supported
  • src/Aspire.Dashboard/Resources/xlf/Commands.ko.xlf: Language not supported
  • src/Aspire.Dashboard/Resources/xlf/Commands.pl.xlf: Language not supported
  • src/Aspire.Dashboard/Resources/xlf/Commands.pt-BR.xlf: Language not supported
  • src/Aspire.Dashboard/Resources/xlf/Commands.ru.xlf: Language not supported
  • src/Aspire.Dashboard/Resources/xlf/Commands.tr.xlf: Language not supported
  • src/Aspire.Dashboard/Resources/xlf/Commands.zh-Hans.xlf: Language not supported
  • src/Aspire.Dashboard/Resources/xlf/Commands.zh-Hant.xlf: Language not supported

.ToImmutableArray();

// Use custom localizations for built-in lifecycle commands
static (string DisplayName, string DisplayDescription) GetDisplayNameAndDescription(string commandName, string displayName, string description)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I thought we were going to add localized values to the proto, so that other resource services (like that in ACA) can also have localized command strings.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I see James suggested this approach in the linked issue. I don't think it'd be too bad to add support for this to the proto. I would expect ACA to have loc requirements. cc @snehapar9

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is a temporary solution for 9.1, we can improve this later @drewnoakes

@drewnoakes
Copy link
Copy Markdown
Member

Fixes #6982 - sets the display name and description for the three lifecycle commands in the resource service

This PR doesn't address all the strings in #6982. Were the others addressed elsewhere?

@adamint
Copy link
Copy Markdown
Member Author

adamint commented Feb 5, 2025

Fixes #6982 - sets the display name and description for the three lifecycle commands in the resource service

This PR doesn't address all the strings in #6982. Were the others addressed elsewhere?

I was planning on opening a separate PR for those strings. Cherry picked the commit into this branch

Comment thread src/Aspire.Dashboard/Components/Controls/ExceptionDetails.razor Outdated
Comment thread src/Aspire.Dashboard/ResourceService/Partials.cs Outdated
Comment thread src/Aspire.Dashboard/ResourceService/Partials.cs Outdated
@JamesNK
Copy link
Copy Markdown
Member

JamesNK commented Feb 7, 2025

Good to merge once changes above are made.

@adamint adamint enabled auto-merge (squash) February 7, 2025 12:18
@adamint adamint requested a review from mitchdenny as a code owner February 7, 2025 12:45
@adamint adamint merged commit 9e52dff into microsoft:main Feb 7, 2025
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 10, 2025
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.

[WebToolsE2E][Aspire] Some strings in the dashboard of Aspire 9.1 are not localized.

4 participants