-
Notifications
You must be signed in to change notification settings - Fork 137
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
Feature: Sign In Milestone 1 #1150
Conversation
The new sign in designs start at login by site.
Also converts the layouts to ConstraintLayout for optimal rendering and smoother management.
The new login flow for Woo has the login by site screen leading to this view so it doesn't make any sense having the option available as it would essentially be routing the user back to the previous screen.
This reverts commit d8a0f33. Turns out this part is not yet feasible so we'll skip it for now.
This new mode is for the Woo Android app.
The new asset has a transparent background so I can set the background to stretch as needed while preserving aspect ratio of this image.
Part 1: Sign In Jetpack basic check and error messaging
Part 4: Sign in Milestone 1 Tracks Events
Part 5: Signin M1 - add jetpack support documentation
Generated by 🚫 dangerJS |
…mmerce/woocommerce-android into feature/signin-milestone-1
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 great @AmandaRiu! I'm not sure if @nbradbury would like to take a look as well before we merge so leaving this open for now. Really nice work 😄
@AmandaRiu This all works great! One thing I think we should address separately, though, is the login epilogue in this flow. On a fast connection the site verification happens very quickly, so the epilogue appears very briefly and then the main activity appears. |
@nbradbury yeah I struggled with that one and it still bothers me. The same type of "flashing" happens currently when you do a magic link login and it's a symptom of using |
Error TypeError
Dangerfile
Error TypeError
Dangerfile
Generated by 🚫 dangerJS |
Error TypeError
Dangerfile
Error TypeError
Dangerfile
Generated by 🚫 dangerJS |
This PR fixes #1091 by implementing the latest designs for Sign in milestone 1. This feature PR includes the following approved PRs:
New build config variable for debug builds
wp.debug.wpcom_website_url
: This will pre-populate the site address for debug buildsMajor Design Flows
Aside from the normal url scrubbing, below are the major flows associated with this project.
WordPress Required
Jetpack Required
WooCommerce Required
Account Mismatch
Auto-Login Success!
Design Deviations
Check for WooCommerce
The designs required checking for WordPress, Jetpack, and Woo when the user submits the url for login, but this would've required a huge amount of code so for this iteration, so we decided to keep it simple since this new login flow is a test and we may or may not keep it. So the temporary workaround is to use an existing FluxC endpoint:
FetchConnectedSiteInfo
. This will tell us if the site exists, has WP, and has Jetpack connected, but with some caveats to be aware of:If in the future we decide to keep this flow, a more robust solution will need to be developed to ensure all scenarios are accounted for.
Checking if the site has WooCommerce installed is not available until after the account is authenticated so that part of the flow has been moved to post-authentication.
Offline error messaging
The original designs called for an error message to be displayed below the text input if the device was not connected, but since WCAndroid uses a shared library I wanted to make sure it was okay with the folks over at WPAndroid. At the end it was decided to leave it as-is. So if the device is not connected, then the user will just see a toast message.
Other features
To Test
Each of the PRs that make this feature were independently tested, but here's an overview of things that should be verified for alpha/beta:
SitePickerActivity
was so heavily modified)Update release notes:
RELEASE-NOTES.txt
.