Redirect Studio app users to magic login flow when signing up - #90204
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 (~287 bytes added 📈 [gzipped]) DetailsCommon code that is always downloaded and parsed every time the app is loaded, no matter which route is used. Sections (~11 bytes added 📈 [gzipped]) DetailsSections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to. Async-loaded Components (~7 bytes added 📈 [gzipped]) DetailsReact 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. |
|
This PR modifies the release build for the following Calypso Apps: For info about this notification, see here: PCYsg-OT6-p2
To test WordPress.com changes, run |
|
@matt-west, 👋 , this PR's not quite ready for review yet, but I wanted to get your early thoughts from a design perspective. The default styles being used are the same as those found on the magic login page, as you can see here:
But, the styles and text can be changed based on what you think is best. You can test the proposed flow by:
Looking forward to hearing your initial impressions as well any iterations for the design and/or overall flow. |
|
Thanks for the ping @SiobhyB! I’m getting an error when I try to test that URL: We should stick with the default WordPress.com styling for consistency. |
|
@matt-west, ah, yes, I see a new live link was generated since my ping, this one should work: https://container-interesting-ptolemy.calypso.live/log-in?client_id=95109&redirect_to=https%3A%2F%2Fpublic-api.wordpress.com%2Foauth2%2Fauthorize%3Fresponse_type%3Dtoken%26client_id%3D95109%26redirect_uri%3Dwpcom-local-dev%253A%252F%252Fauth%26scope%3Dglobal%26from-calypso%3D1
Perfect! If the current design works I'll continue as-is, but let me know if you think any tweaks are needed to the copy or anything else, too. :) |
|
Thanks @SiobhyB I think we can drop the Can we please change the copy to:
|
|
@matt-west, thank you for the guidance! I've set this as ready for review now. |
|
Looks good! 👍 Thanks @SiobhyB
|
|
|
There was a problem hiding this comment.
When performing the testing instructions, I successfully authenticated in my browser, but when Studio launched, it did not connect my newly created WPCOM account. Is that expected when using the Calypso Live environment?
The two analytic events did successfully log during my testing. 🎉
|
Thank you for testing this, @dcalhoun! 🙌
The account should be authenticated using Calypso Live, I just tested and confirmed my newly created account was successfully connected after going through the flow: Screen.Recording.2024-05-13.at.19.16.42.movCould you share more about any varying factors? For example, were you already logged into Studio with a different account? I'd be grateful for any more specifics you can pinpoint so I can try to reproduce, I'll keep trying to reproduce on my own too. Thank you! 🙇♀️ |
dcalhoun
left a comment
There was a problem hiding this comment.
Could you share more about any varying factors? For example, were you already logged into Studio with a different account?
Studio is, in fact, successfully updating to represent the newly created account. My first report was me unexpectedly encountering the absence of Automattic/studio#86, which is not included in the 1.0.1 release I was testing. 😄 Sorry for the false report.
I believe these changes are functioning as expected. 👏🏻
`breakpoint-deprecated` was deprecated in favour of `break-mobile`. Source: #41985


Related to 5531-gh-Automattic/dotcom-forge, 5532-gh-Automattic/dotcom-forge
Proposed Changes
Note
There is a
Create free accountlink in the Studio app that will be updated after this PR has been merged.Testing Instructions
/log-in?client_id=95109&redirect_to=https%3A%2F%2Fpublic-api.wordpress.com%2Foauth2%2Fauthorize%3Fresponse_type%3Dtoken%26client_id%3D95109%26redirect_uri%3Dwpcom-local-dev%253A%252F%252Fauth%26scope%3Dglobal%26from-calypso%3D1calypso_login_block_login_form_send_account_create_magic_linkwith aclient_id: 95109propertycalypso_login_email_link_successwith aclient_id: 95109propertyPre-merge Checklist