-
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
Hide the top bar “Sign Up” button for OAuth flow #98559
Conversation
Jetpack Cloud live (direct link)
Automattic for Agencies live (direct link)
|
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: App Entrypoints (~17 bytes added 📈 [gzipped])
Common code that is always downloaded and parsed every time the app is loaded, no matter which route is used. 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. |
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.
The testing instructions worked for me. This approach looks good to me. 🚀
/** | ||
* Hide signup for OAuth flow (it doesn't correctly route the arugments) | ||
*/ | ||
if ( currentQuery?.client_id !== null && currentQuery?.redirect_to != null ) { |
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 suppose this presumes that any request with client_id
and redirect_to
—whether it is the WordPress/Jetpack mobile app or otherwise—should no longer display this "Sign up" button. I don't perceive that to be a problem given the button does not pass along the redirect destination and, thus, creates the odd UX we hope to avoid with this change. 👍🏻
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.
Yeah, I figured I'd fix this for other clients at the same time.
If this somehow is a regression for someone, we can scope it more tightly to just the client IDs we care about
Proposed Changes
Why are these changes being made?
WP.com OAuth login is being used for iOS and Android users, and already rolled out to beta users. @tiagomar found this issue in a last-minute test session.
Testing Instructions
Pre-merge Checklist