Skip to content
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

Merged
merged 17 commits into from
May 24, 2023

Conversation

vmilan
Copy link
Contributor

@vmilan vmilan commented May 18, 2023

@shortcut-integration
Copy link

This pull request has been linked to Shortcut Story #314283: New loader UI for widgets.

@vmilan vmilan changed the title BarWidgetUI Skeleton for Loading case BarWidgetUI: Add a skeleton for Loading case May 18, 2023
@vmilan vmilan changed the title BarWidgetUI: Add a skeleton for Loading case BarWidgetUI: Add a skeleton for loading state May 18, 2023
@coveralls
Copy link
Collaborator

coveralls commented May 18, 2023

Pull Request Test Coverage Report for Build 5066552253

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 21 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.09%) to 72.022%

Files with Coverage Reduction New Missed Lines %
packages/react-ui/src/widgets/comparative/ComparativeFormulaWidgetUI/ComparativeFormulaWidgetUI.js 1 80.0%
packages/react-ui/src/widgets/HistogramWidgetUI/HistogramWidgetUI.js 20 48.65%
Totals Coverage Status
Change from base Build 5027573001: -0.09%
Covered Lines: 2046
Relevant Lines: 2616

💛 - Coveralls


// Skeleton
MuiSkeleton: {
defaultProps: {
Copy link
Contributor

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}
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

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

@vmilan vmilan changed the title BarWidgetUI: Add a skeleton for loading state BarWidgetUI & HistogramWidgetUI: Add a skeleton for loading state May 19, 2023
@vmilan
Copy link
Contributor Author

vmilan commented May 19, 2023

@VictorVelarde added also the HistogramWidget

@vmilan vmilan marked this pull request as ready for review May 19, 2023 16:31
@vmilan vmilan changed the title BarWidgetUI & HistogramWidgetUI: Add a skeleton for loading state BarWidgetUI & HistogramWidgetUI & FormulaWidgetUI: Add a skeleton for loading state May 22, 2023
@vmilan vmilan changed the title BarWidgetUI & HistogramWidgetUI & FormulaWidgetUI: Add a skeleton for loading state Bar & Histogram & Formula Widgets: Add a skeleton for loading state May 22, 2023
@vmilan vmilan requested a review from a team May 22, 2023 10:14
@vmilan vmilan changed the title Bar & Histogram & Formula Widgets: Add a skeleton for loading state Bar & Histogram & Formula & ComparativeFormula Widgets: Add a skeleton for loading state May 22, 2023
Copy link
Contributor

@zbigg zbigg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@vmilan vmilan merged commit c61804d into master May 24, 2023
@vmilan vmilan deleted the feature/bar-widget-skeleton branch May 24, 2023 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants