-
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
Use LocaleProvider in calypso #47613
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.
domain-picker
is also used in the ETK's launch flow it will need a <LocaleProvider>
added somewhere near the root. Probably in attach-launch-sidebar.tsx
126d7fe
to
127ae4d
Compare
Lots of CI errors, rebased in case it needed it after the |
I'm at a bit of a loss as to what the build error's about. I see the error in the local build logs too, but I just can't see what the problem is. |
1351d4a
to
aa69c98
Compare
aa69c98
to
89ff66b
Compare
I don't think this took, tried a fresh rebase. Should probably retest, the initial testing was done against master that was probably a few days out of date. |
That didn't work, testing moving to fresh PR in case its something build related #47692 |
Maybe it's something to do with the filename changing from |
Actually I wonder if this is something to do build order. Looking up lerna docs to see if there's a way to change the order workspace operations are run in. |
@scinos we had a broken build here before the From this comment it sounds like it's possible to have TypeScript has a giant tracking issue to support this without having to maintain another list of dependencies. |
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: App Entrypoints (~631 bytes added 📈 [gzipped])
Common code that is always downloaded and parsed every time the app is loaded, no matter which route is used. Sections (~10 bytes added 📈 [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 (~19 bytes added 📈 [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. |
Looks like adding the reference to I agree it is not great to have to declare the dependencies in Maybe we can start by having some |
365b6e9
to
0d615ee
Compare
Updated so that the locale slug in context updates when when |
Awesome! I've brought that fix into this PR and closed #47692 since it was more just a trial PR to see if we were dealing with some GH or CI issue. |
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.
Tested and everything to do with the change is working as expected.
I tested the domain picker inside the launch flow too (so inside the ETK). The HSTS tooltip doesn't appear when you click the button. It's a bug that needs to be fixed, but not i18n related.
The woo e2e tests are failing, but I think it's because there's currently something wrong with the e2e test user's site. When I run it locally the user's dashboard looks like this:
Maybe the e2e tests have just caught the site at a bad time 🤷
Re-ran tests, passing now. Whatever was afflicting the woo test user must have been fixed. |
Co-authored-by: Philip Jackson <p-jackson@live.com>
Don't need to have maintain a specific build order for packages if the domain-picker package just declares it's dependency on i18n-utils
09cb5d6
to
bdefa6b
Compare
Rebased, retested, everything seems ok. |
Changes proposed in this Pull Request
Testing instructions
Fixes #45610 🎉