-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[1/n][Asset Health] Add descriptions to health summary card #29256
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
Deploy preview for dagit-core-storybook ready! ✅ Preview Built with commit ee16d57. |
<Body> | ||
{numberFormatter.format(metadata.numWarningChecks)}/ | ||
{numberFormatter.format(metadata.totalNumChecks)}{' '} | ||
<Link to={assetDetailsPathForKey(assetKey, {view: 'checks'})}> |
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.
3 checks warning
feels a bit odd but I guess technically correct!
{numberFormatter.format(metadata.numWarningChecks)}/ | ||
{numberFormatter.format(metadata.totalNumChecks)}{' '} | ||
<Link to={assetDetailsPathForKey(assetKey, {view: 'checks'})}> | ||
check | ||
{ifPlural(metadata.totalNumChecks, '', 's')} | ||
</Link>{' '} |
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.
feels vaguely like a checkStatus(metadata.numWarningChecks, metadata.totalNumChecks, 'warning')
style helper could make this more readable, hard to see what is changing between all these cases
Probably not worth changing though
...AssetHealthCheckDegradedMetaFragment | ||
...AssetHealthCheckWarningMetaFragment | ||
...AssetHealthCheckUnknownMetaFragment | ||
} |
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.
Is this stuff heavy? Was sort of imagining we'd fetch this on-hover but maybe it's not that big of a lift to pull the partition counts :-o 🎉
Summary & Motivation
How I Tested These Changes