-
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
Add WooCommerce onboarding styles to the WC Helper connection flow #35193
Conversation
</div> | ||
<div className="woocommerce-connect-cart-header__stepper-step-text"> | ||
<span className="woocommerce-connect-cart-header__stepper-step-label"> | ||
{ translate( 'Installation' ) } |
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.
Hi! I've found a possible matching string that has already been translated 38 times:
translate( 'Installation', { context: 'Navigation item'} )
ES Score: 13
Help me improve these suggestions: react with 👎 if the suggestion doesn't make any sense, or with 👍 if it's a particularly good one (even if not implemented).
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: App Entrypoints (~182 bytes removed 📉 [gzipped])
Common code that is always downloaded and parsed every time the app is loaded, no matter which route is used. Sections (~740 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 (~897 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. |
2ec5b8e
to
1e11edf
Compare
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 looks good and tests well with the provided instructions.
I'd feel most comfortable with another review though, since it's been quite a while since I've danced to Calypso 😛
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.
Code looks good as far as I can tell.
1e11edf
to
a6a21fe
Compare
…ibing the client IDs, and adjust social button CSS
client/extensions/woocommerce/components/woocommerce-connect-cart-header/index.js
Show resolved
Hide resolved
Hi @justinshreve 👋 I found this PR when testing some login CSS changes, and I don't understand some of the style changes what were made here. There are CSS rules added to .layout.is-wccom-oauth-flow {
.login-form__footer { ... }
.wp-login__footer-links { ... }
.login__woocommerce-logo { ... }
} It's not at all guaranteed that Signup styles are present when showing a Login page and the styling is going to break randomly. Could you shed some light on what UI and flows are supposed to be restyled here? It's difficult to figure out the various Woo + Jetpack + OAuth flows and test them. |
Hi @jsnajdr - Thanks for the ping. We have a custom header for these Woo OAuth flows (see in the screenshots above, either the cart display, Woo + JP logos, or just the Woo Logo): https://github.com/Automattic/wp-calypso/pull/35193/files#diff-066c9eda2e0b68f9cab2487000375fb6R250-R274 It looks like I had named the classes
This PR addresses the flow WooCommerce core uses to connect to WooCommerce.com (so the WooCommerce Helper can do things like extension updates). This is a styled OAuth2 flow like Crowdsignal. There is also a Woo and Jetpack connection flow (to make things like WooCommerce Services, label printing, etc work). which also has a stylized sign-up and login (#32993). Please see 22a33-pb for links to designs of these two flows. This will give you an idea of how they work. Just a note that neither of these two flows are launched yet and are a part of a larger overhaul to WooCommerce core's onboarding experience. They are a bit difficult to test since you have to enter the flows from the right paths, which live inside a development build of WooCommerce Admin. We are working on a test build of the plugin that will make this easier, but in the meantime the best way to load these is the following:
|
I found this PR when writing tests for the server and I think it may be broken. In particular, looks like this check will always be false:
The reason is that when When the PR was made, the original code to set
When a request comes in, it first run the "inline" middleware that sets However, right now in master the equivalent code is:
Now when a request comes in, it first calls |
Closes woocommerce/woocommerce-admin#2600. This PR implements the Muriel WooCommerce onboarding designs to the helper OAuth login and sign-up flows. This uses a special query parameter, so other connection flows will remain the same for now.
Related (where this flow was implemented for the Jetpack connection): #33073, #34380.
Screenshots
Testing Directions
master
of https://github.com/woocommerce/wc-admin.define( 'WOOCOMMERCE_CALYPSO_LOCAL', true );
to yourwp-config.php
.items_purchased
set to true: https://gist.github.com/justinshreve/da09cc57ec8e0d07ac8e919cef7a926c.client/dashboard/index.js
and setrequiredTasksComplete
to false.wccom-from=onboarding
in the header towccom-from=cart
and view the cart stepper header.Additional testing:
In
wp-calypso
edit theconfig/development.json
feature flag file and disable the new code by settingwoocommerce/onboarding-oauth
to false. Restart Calypso. You can test the connection again and verify that you see the existing OAuth styles.Additional Notes/Questions