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

Add Victory Bar v37 #2316

Merged
merged 15 commits into from
Jun 23, 2022
Merged

Add Victory Bar v37 #2316

merged 15 commits into from
Jun 23, 2022

Conversation

becca-bailey
Copy link
Contributor

@becca-bailey becca-bailey commented Jun 20, 2022

This functionality will work for rendering either one standalone VictoryBar component or a single nested VictoryBar component nested under a VictoryChart.

As discussed, we will need to add functionality for two-way syncing between child props and the provider props so the provider knows about the props of each child component and we can support multiple datasets in child components.

Right now all new components live inside the v37 directories, so this should not touch any existing behavior.

Becca Bailey added 8 commits June 17, 2022 16:05
There will probably be some tricky logic here for handling default props
and getting props from child components. Rather than iterating through
children to grab props, we will be setting top-level props from the
child components. But we will need to make some decisions about how to
keep track of individual props, whether child props override parent
props, and when to set state.
@becca-bailey becca-bailey marked this pull request as ready for review June 22, 2022 18:45
@becca-bailey becca-bailey requested a review from scottrippey June 22, 2022 18:46
Copy link
Member

@scottrippey scottrippey left a comment

Choose a reason for hiding this comment

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

Looks good! Some tiny comments but LGTM.

packages/victory-bar/src/v37/victory-bar.tsx Outdated Show resolved Hide resolved
packages/victory-bar/src/v37/victory-bar.tsx Outdated Show resolved Hide resolved
packages/victory-chart/src/v37/victory-chart.tsx Outdated Show resolved Hide resolved
packages/victory-chart/src/v37/victory-chart.tsx Outdated Show resolved Hide resolved
Becca Bailey added 3 commits June 23, 2022 10:36
… tested

For now, we should only run stories in /stories in the chromatic UI
tests. Any stories we are adding in /packages are just WIP demos to help
with refactoring, and they don't need to be tested in chromatic. If we
co-locate stories in victory packages, we need to revert this change.
@becca-bailey becca-bailey merged commit f40fee5 into main Jun 23, 2022
@becca-bailey becca-bailey deleted the feature/victory-bar-beta branch June 23, 2022 17:47
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.

2 participants