-
Notifications
You must be signed in to change notification settings - Fork 127
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: Update, cleanup and move necessary dependencies to peerDependencies #485
Conversation
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 A M A Z I N G! 💯👏 Thank you so much for taking care of the Storybook deprecation as well. That must have been a lot of work.
Let me know if my feedback is clear. I know there's not much documentation out there around peer dependencies.
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.
👍 for @connor-baer suggestions
* feat(components): add ComponentsContext ISSUES CLOSED: #466 * feat(components): use Link from context in Sidebar * feat(components): use Link from context in Buttons * docs(components): write guidelines on how to override base components * docs(components): explain how to use the components in an app
* feat(theme): generate theme with custom properties * WIP: docs for static themeing * feat(scripts): CLI for static style extraction * refactor(components): make components work with static style extraction * test(scripts): add unit tests * refactor(scripts): simplify render function * feat(scripts): remove old static style extraction * test(scripts): add unit tests * feat(scripts): handle wrapped styled components * feat(scripts): extract styles from more components * feat(scripts): add a simple yarn script * refactor(components): make more components work with static style extraction * feat(scripts): extract styles from more components * docs(scripts): finish documentation * test(scripts): add tests for component types
* fix(components): pass href to nav link * fix(components): exclude inactive ButtonGroup styles
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.
Thank you for fixing the peerDependencies
! 👍
As we discussed on Slack, I'd like to split out the Storybook-related changes since they're not a breaking change and we need them for the migration to Storybook Docs. From what I can tell, those changes are mostly contained in these 2 commits:
I've cherry-picked those commits into a new branch: feature/storybook-docs
. I'm not sure if it's easier to remove those commits from this PR (the first commit also contains dependency upgrades) or simply rebase on the new branch. WDYT?
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 after sorting out the storybook issue
Uh, it will be a bit hard to separate them... there are also these commits: @connor-baer would it be easier to go with all storybook changes together in v2? |
I cherry-picked that one as well :)
That change isn't necessary since Storybook Docs replaces the Storybook Docs is not a breaking change so I'd like to release it in v1.x. I think it's easiest to wait until #495 has been merged and then rebase. I'm happy to resolve the merge conflicts. |
ai, missed it somehow :)
alright then let's do it this way |
* cleanup warnings + more deps updates Co-authored-by: Dmitri Voronianski <[email protected]> * remove deprecacted storybook methods * feat(docs): upgrade to Storybook 5.2 * feat(docs): update Storybook config and tweak theme * feat(docs): configure addon-docs Co-authored-by: lucent1090 <[email protected]> * feat(docs): remove Storybook group enums * feat(docs): run codemod to add component parameter https://github.com/storybookjs/storybook/blob/next/lib/codemod/README.md#add-component-parameters * feat(docs): run codemod to transform stories to CSF https://github.com/storybookjs/storybook/blob/next/lib/codemod/README.md#storiesof-to-csf * feat(docs): simplify Storybook configs * fix(components): update snapshots * fix(docs): update image paths * feat(docs): add a11y and viewport addons
c51e175
to
2e007f7
Compare
I've rebased on the lastest I've temporarily changed the base branch to
This is important to ensure that |
* fix: update Storybook This resolves and issue with the theme being undefined. * feat(docs): add doc blocks * feat(docs): add markdown styles This is hopefully just a temporary hack. * feat(docs): migrate Badge * feat(docs): migrate colors * feat(docs): migrate fonts * feat(docs): migrate spacing * feat(docs): migrate grid * feat(docs): migrate media queries * feat(docs): migrate typography * feat(docs): migrate static styles * feat(docs): migrate theme reference * feat(docs): migrate welcome * feat(docs): migrate getting started * refactor(docs): rename asset folder * feat(docs): migrate Blockquote * feat(docs): migrate Button * feat(docs): remove Docz * feat(docs): explicitely sort stories * feat(docs): migrate Hr * fix(scripts): install babel-cli This was lost when docz was removed. * feat(docs): migrate Image * feat(docs): migrate Card * feat(docs): migrate List * feat(docs): migrate Tag * feat(docs): migrate Toggle * feat(docs): migrate Selector * feat(docs): migrate Tabs * feat(docs): migrate ProgressBar * feat(docs): migrate Tooltip * feat(docs): migrate Table * feat(docs): migrate Sidebar * feat(docs): migrate Calendar * feat(docs): migrate Message * feat(docs): migrate Icons * feat(docs): migrate InlineNotification * feat(docs): migrate Pagination * feat(docs): migrate Text, Heading, and SubHeading * feat(docs): migrate Modal * feat(docs): migrate Input, Label * feat(docs): migrate TextArea * feat(docs): migrate SearchInput * feat(docs): migrate AutoCompleteInput * feat(docs): migrate CurrencyInput * feat(docs): migrate Select * feat(docs): migrate Checkbox * feat(docs): migrate RadioButton * feat(components): deprecate the State component * refactor(docs): clean up other stories * feat(docs): customize MDX components * feat(docs): tweak story sorting * feat(docs): update the logo header * feat(docs): add Link component * feat(docs): update GitHub repo URL
* feat(tests): use storyshots for snapshot tests * fix(tests): remove story wrapper from storyshots * fix(tests): disable test decorator for storyshots * test(components): update snapshots
we need to create a dist/static directory in this script for the build:stylesheets script to save the css
Remove flex from the Sidebar Footer and position to the bottom with margin: auto. This fixes a Safari bug where the top padding was squashed (see PR). This commit also adds a parent element to the story to make the Sidebar behave more like a production app."
…elected (#507) Addresses [PMNTSS-205].
Mocks document.createRange which is used by popper.js, dependency of react-popper.
535a459
to
541cd60
Compare
Codecov Report
@@ Coverage Diff @@
## alpha #485 +/- ##
=========================================
+ Coverage 76.15% 79.66% +3.5%
=========================================
Files 167 172 +5
Lines 2453 2478 +25
Branches 435 445 +10
=========================================
+ Hits 1868 1974 +106
+ Misses 467 388 -79
+ Partials 118 116 -2
|
🎉 This PR is included in version 2.0.0-alpha.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
…cies (#485) * move dependencies, peers and devs * update snapshots and tests related * cleanup warnings + more deps updates * update transition group * update leftover dependencies * move out foundry deps, update peer deps * fix accessibility errors in CloseButton of Sidebar * fix(configs): fix tests using popper.js Mocks document.createRange which is used by popper.js, dependency of react-popper. * test(components): update storyshots BREAKING CHANGE: Upgraded minimum React version to v16.8.6
🎉 This PR is included in version 2.0.0-beta.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 2.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Addresses #453.
Approach and changes
react
,react-dom
,@emotion/core
,@emotion/styled
andemotion-theming
to packagepeerDependencies
dependencies
todevDependencies
Questions
Not updated dependencies
Only 2 dependencies were not upgraded to latest:
commitizen
in their latest v4 removed support of Node v8 completelyreact-docgen-annotation-resolver
in its' latest v2 brings support forreact-docgen
v5 which is in beta yetActually updating
commitizen
seems to be not a problem in my opinion, as we're anyways developing Circuit being on latest version of Node.Definition of done