-
Notifications
You must be signed in to change notification settings - Fork 16
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
Bar & Histogram & Formula & ComparativeFormula Widgets: Add a skeleton for loading state #674
Conversation
This pull request has been linked to Shortcut Story #314283: New loader UI for widgets. |
Pull Request Test Coverage Report for Build 5066552253
💛 - Coveralls |
|
||
// Skeleton | ||
MuiSkeleton: { | ||
defaultProps: { |
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.
Ok, good to know we have some basics in common
@@ -156,6 +156,7 @@ function BarWidget({ | |||
height={height} | |||
animation={animation} | |||
filterable={filterable} | |||
isLoading={isLoading} |
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.
Why is this injected externally? Shouldn't this be just a prop that the 'widget' launching the query, passes down to the UI?
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.
This is what I'm doing here, isn't it? passing down the prop from the parent to the UI, as in line 137 for the WrapperWidgetUI.
The logic was already there, but the UI wasn't receiving it.
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.
Yes, misunderstanding on my side. It's fine
@VictorVelarde added also the HistogramWidget |
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.
lgtm
Description
Shortcut: https://app.shortcut.com/cartoteam/story/314283/new-loader-ui-for-widgets
[sc-314283]