-
Notifications
You must be signed in to change notification settings - Fork 462
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
Adds orange/red warning/error icons for exited resources on resources dashboard page #1378
Adds orange/red warning/error icons for exited resources on resources dashboard page #1378
Conversation
# Conflicts: # src/Aspire.Hosting/Dashboard/DcpDataSource.cs
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.
Looks good overall! My one suggestion: can we change the icon in the orange example to either the same exclamation point as the red or to something else? I was a little confused about which icon represented the error and which represented the warning otherwise
Out of curiosity, are we aware of any prior art of other applications showing the exit code from a process in the UI? I'm almost tempted to see what it'd look like to put the actual exit code in the badge (if it is an error; leave it as an icon if it is not). Also, #533 suggested changing the background color when it is in a finished state as well. Did you think the icon was sufficient instead? |
src/Aspire.Dashboard/Components/ResourcesGridColumns/StateColumnDisplay.razor
Outdated
Show resolved
Hide resolved
# Conflicts: # src/Aspire.Dashboard/Components/Pages/ConsoleLogs.razor.cs # src/Aspire.Dashboard/Components/Pages/Resources.razor # src/Aspire.Dashboard/Components/Pages/Resources.razor.cs # src/Aspire.Dashboard/Components/ResourcesGridColumns/UnreadLogErrorsBadge.razor # src/Aspire.Dashboard/Resources/Columns.Designer.cs # src/Aspire.Dashboard/Resources/xlf/Columns.cs.xlf # src/Aspire.Dashboard/Resources/xlf/Columns.de.xlf # src/Aspire.Dashboard/Resources/xlf/Columns.es.xlf # src/Aspire.Dashboard/Resources/xlf/Columns.fr.xlf # src/Aspire.Dashboard/Resources/xlf/Columns.it.xlf # src/Aspire.Dashboard/Resources/xlf/Columns.ja.xlf # src/Aspire.Dashboard/Resources/xlf/Columns.ko.xlf # src/Aspire.Dashboard/Resources/xlf/Columns.pl.xlf # src/Aspire.Dashboard/Resources/xlf/Columns.pt-BR.xlf # src/Aspire.Dashboard/Resources/xlf/Columns.ru.xlf # src/Aspire.Dashboard/Resources/xlf/Columns.tr.xlf # src/Aspire.Dashboard/Resources/xlf/Columns.zh-Hans.xlf # src/Aspire.Dashboard/Resources/xlf/Columns.zh-Hant.xlf # src/Aspire.Hosting/Dashboard/DcpDataSource.cs
We can do this, but realistically requires us to remove the ability to click - we have a fairly widespread problem with icons with clickable parent divs that are non-compliant (which I accidentally contributed to here, oops! see #1392), and the real solution here is a binary: if we want to make an icon clickable, it needs to be turned into a button, and if we want to use a filled icon, the icon cannot be clickable. I'll convert to a filled icon and disallow clicking. |
…modate button, add margin to unread log button
src/Aspire.Dashboard/Components/ResourcesGridColumns/UnreadLogErrorsBadge.razor
Outdated
Show resolved
Hide resolved
src/Aspire.Dashboard/Components/ResourcesGridColumns/StateColumnDisplay.razor
Show resolved
Hide resolved
Please make sure the colours are colourblind-friendly. Also, please keep the accessibility in mind - some users rely on assistive technology (e.g., screen readers, etc.). |
This was not a requirement I was aware of. We use red pervasively throughout the dashboard to indicate error. However, the redness is not the only indication of the state, which I thought made us compliant. @RussKie
Yes, keyboard navigability and screen-reader support is one of the items I'm working on this sprint. |
src/Aspire.Dashboard/Components/ResourcesGridColumns/StateColumnDisplay.razor
Outdated
Show resolved
Hide resolved
src/Aspire.Dashboard/Components/ResourcesGridColumns/StateColumnDisplay.razor
Outdated
Show resolved
Hide resolved
src/Aspire.Dashboard/Components/ResourcesGridColumns/StateColumnDisplay.razor
Outdated
Show resolved
Hide resolved
src/Aspire.Dashboard/Components/ResourcesGridColumns/StateColumnDisplay.razor
Show resolved
Hide resolved
addressed feedback, approved by leslie
Removes code made unused in dotnet#1378 that triggers build errors.
Removes code made unused in dotnet#1378 that triggers build errors.
Removes code made unused in #1378 that triggers build errors.
Can we look to align the text where icons are displayed on the right with that of the text where icons are not displayed. Currently looks a bit staggered in the display. Also the Running status withdisplay of (3) is much larger than the icons displayed on the left. Can itbe made the same size as the error and warning icons? |
@kvenkatrajan I had a similar thought, so I went ahead and created a new issue from your comment: #1534 |
Fixes #533
Adds warning icon to exited resources with a zero or null exit code, and an error icon (and tooltip that mentions the exit code) to exited resources with a non-zero, non-null exit code.
The badge is clickable and takes you to console logs for that resource.
Microsoft Reviewers: Open in CodeFlow