-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Framework: Introduce calypso-ui #33154
Conversation
Tests are failing since Jest gets confused by |
Relevant: Automattic/newspack-plugin#48 😬 |
57ed8fa
to
c3b06e8
Compare
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: App Entrypoints (~928 bytes added 📈 [gzipped])
Common code that is always downloaded and parsed every time the app is loaded, no matter which route is used. Sections (~4895 bytes removed 📉 [gzipped])
Sections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to. Async-loaded Components (~1270 bytes removed 📉 [gzipped])
React components that are loaded lazily, when a certain part of UI is displayed for the first time. Legend What is parsed and gzip size?Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory. Generated by performance advisor bot at iscalypsofastyet.com. |
As a follow-up to your note here about aligning Automattic/newspack-plugin#72 (comment), I was looking for some thoughts/feedback... As part of the new WooCommerce Onboarding wizard, users are redirected into a special branded WooCommerce / Jetpack Connect flow that matches the rest of the core setup wizard. This includes using Muriel styled components throughout the experience. More specifically, the version of We are using the first version of the Newspack components in WooCommerce Admin to avoid duplicating work which is great. We use a few different components from their package (checkbox, select, text input). However, it feels a bit odd to add Newspack as a dependency to Calypso, just for use in our special version of the sign-up flow. We also only need the single tl;dr: Should we consider porting that version of |
f0aac15
to
8d2673a
Compare
Rebased |
Thanks a lot for getting in touch, @justinshreve! As per p1559073709014500-slack-components, it'd be great to migrate that |
8d2673a
to
2f88de9
Compare
Looks like we have some false positives from the linter for dev dependencies and a couple existing a11y problems. Thoughts? |
I really think we need to fork or contribute to the lint rule to better handle monorepos:
Until support is there, this shouldn't be a blocker. Lint errors serve as a reg flag for contributors and reviewers to verify dependencies are correctly declared. We can approve/comment noting the lint error is incorrect, and proceed.
If they're not too involved, would be nice to get them sorted out before sharing the components. |
2f88de9
to
fa3b22b
Compare
👍
Ready for another look! |
fe18aed
to
a450b95
Compare
a450b95
to
a9d808e
Compare
|
||
rcopy( inputDir, outputDirEsm, copyOptions ) | ||
.then( results => { | ||
console.log( 'copied %d files', results.length ); |
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.
i think we can drop all the logging here. it gets pretty noisy.
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.
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.
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.
nice
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.
👍
Changes proposed in this Pull Request
Create a
calypso-ui
package, and moveScreenReaderText
andProgressBar
components there.Alternative to @blowery's #32869 from which I've stolen pretty much all of the business logic. The only difference is that
ScreenReaderText
andProgressBar
are simpler components thanDialog
andRootChild
and thus easier to untangle.Testing instructions
Does Calypso build and run?