-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add Inputs state dot badge to System and Inputs menu #23989
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.
Looking good, just one comment below:
| import styled from 'styled-components'; | ||
|
|
||
| import useInputsStates from 'hooks/useInputsStates'; | ||
| const Badge = styled.span` |
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.
Since it is already (IlluminateDotBadge) and will probably be used again elsewhere I think we should extract this and create a global reusable DotBadgeTitle component with the props (title and showDotBadge)
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.
Thanks for adding this, LGTM, one nitpick below:
| <MenuItemDotBadge | ||
| text={text} | ||
| title="Some inputs are in failed state or in setup mode." | ||
| showDot={hasFailedOrSetupInputs || false} |
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.
Do we need an || false here?
Part of #12243
Types of changes
Checklist: