-
Notifications
You must be signed in to change notification settings - Fork 647
Add context menu to resource graph, improve console logs actions #8691
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 16 out of 26 changed files in this pull request and generated no comments.
Files not reviewed (10)
- src/Aspire.Dashboard/Resources/ConsoleLogs.Designer.cs: Language not supported
- src/Aspire.Dashboard/Resources/ConsoleLogs.resx: Language not supported
- src/Aspire.Dashboard/Resources/xlf/ConsoleLogs.cs.xlf: Language not supported
- src/Aspire.Dashboard/Resources/xlf/ConsoleLogs.de.xlf: Language not supported
- src/Aspire.Dashboard/Resources/xlf/ConsoleLogs.es.xlf: Language not supported
- src/Aspire.Dashboard/Resources/xlf/ConsoleLogs.fr.xlf: Language not supported
- src/Aspire.Dashboard/Resources/xlf/ConsoleLogs.it.xlf: Language not supported
- src/Aspire.Dashboard/Resources/xlf/ConsoleLogs.ja.xlf: Language not supported
- src/Aspire.Dashboard/Resources/xlf/ConsoleLogs.ko.xlf: Language not supported
- src/Aspire.Dashboard/Resources/xlf/ConsoleLogs.pl.xlf: Language not supported
Comments suppressed due to low confidence (2)
src/Aspire.Dashboard/Components/Pages/Resources.razor.cs:358
- It appears 'resources' may be incorrectly referenced. If the intention is to reference the current component instance, consider replacing 'resources' with 'this' to avoid potential runtime errors.
if (resources._resourceByName.TryGetValue(id, out var resource))
src/Aspire.Dashboard/Components/Controls/ResourceActions.razor.cs:161
- Consider filtering out highlighted commands from menuCommands to avoid duplicate display in desktop view, as these commands are already shown separately as highlighted actions.
var menuCommands = resource.Commands.Where(c => c.State != CommandViewModelState.Hidden).OrderBy(c => !c.IsHighlighted).ToList();
Icon = s_consoleLogsIcon, | ||
=> | ||
{ | ||
navigationManager.NavigateTo(DashboardUrls.ConsoleLogsUrl(resource: resource.Name)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: Update after #8470 is merged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or #8470 will need to react to this PR 😄
Description
Fixes #8634 #8145
Checklist
<remarks />
and<code />
elements on your triple slash comments?breaking-change
template):doc-idea
template):