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

feat: add react-widget to storybook #120

Merged
merged 5 commits into from
Mar 16, 2021

Conversation

AdriSolid
Copy link
Contributor

@shortcut-integration
Copy link

This pull request has been linked to Clubhouse Story #141940: Storybook detailed revision.

@coveralls
Copy link
Collaborator

coveralls commented Mar 15, 2021

Pull Request Test Coverage Report for Build 654980289

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 79.255%

Totals Coverage Status
Change from base Build 643842013: 0.0%
Covered Lines: 583
Relevant Lines: 698

💛 - Coveralls

['WrapperWidgetUI', 'FormulaWidgetUI', 'CategoryWidgetUI']
['FormulaWidget', 'CategoryWidget', 'HistogramWidget', 'PieWidget'],
'WidgetsUI',
['CategoryWidgetUI']
Copy link
Contributor

Choose a reason for hiding this comment

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

@AdriSolid aren't we losing here the other UI widgets?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nop, that's actually the order, let me add same order as Widgets 👍

@@ -2,36 +2,43 @@ import { Meta, Description } from '@storybook/addon-docs/blocks';

<Meta title="Introduction" />

# CARTO for React - UI Components
# CARTO for React - Widgets and UI Components
This storybook includes the UI Components for CARTO for React (@carto/react-ui).
Copy link
Contributor

Choose a reason for hiding this comment

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

This storybook includes the UI Components for CARTO for React (@carto/react-ui) and the powerful Widgets (@carto/react-widgets). Adding something like that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

LGTM! Little change..
This storybook includes the UI Components (@carto/react-ui) and the powerful Widgets (@carto/react-widgets) for CARTO for React
What you think?

@@ -21,6 +21,7 @@ import useWidgetLoadingState from './useWidgetLoadingState';
* @param {string} [props.operationColumn] - Name of the data source's column to operate with. If not defined it will default to the one defined in `column`.
* @param {string} props.operation - Operation to apply to the operationColumn. Must be one of those defined in `AggregationTypes` object.
* @param {formatterCallback} [props.formatter] - Function to format each value returned.
* @param {Object} [props.labels] - Overwrite category labels
Copy link
Contributor

Choose a reason for hiding this comment

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

Good catch

@@ -153,7 +153,8 @@ PieWidget.propTypes = {
formatter: PropTypes.func,
tooltipFormatter: PropTypes.func,
viewportFilter: PropTypes.bool,
onError: PropTypes.func
onError: PropTypes.func,
wrapperProps: PropTypes.object
Copy link
Contributor

Choose a reason for hiding this comment

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

we're we missing this? nice catch.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Indeed :S

Copy link
Contributor

@VictorVelarde VictorVelarde left a comment

Choose a reason for hiding this comment

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

Add a small note to changelog about adding widgets to storybook and 🚀

@AdriSolid AdriSolid removed the blocked label Mar 16, 2021
@AdriSolid AdriSolid merged commit eec10df into master Mar 16, 2021
@AdriSolid AdriSolid deleted the feature/ch141940/story-book-repalce-widgets branch March 16, 2021 16:28
@coveralls
Copy link
Collaborator

coveralls commented Sep 30, 2024

Pull Request Test Coverage Report for Build 657299563

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 79.255%

Totals Coverage Status
Change from base Build 643842013: 0.0%
Covered Lines: 583
Relevant Lines: 698

💛 - Coveralls

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.

3 participants