-
Notifications
You must be signed in to change notification settings - Fork 21
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
Onboarding: Create New Google Combo Accounts Card #2566
Comments
@eason9487 and @mikkamp could you review this and make sure I'm not missing anything important about how the terms and conditions are currently handled from the front end? It looks like this is handled by the middleware in this method, which is called whenever an MC or Ads account is created. I don't currently see anything that validates that the user has actually accepted the TOS, so I assume that it's inferred by the fact that the user has clicked to accept via the modals that are shown during the account creation process. Correct? |
Yes that's the right function.
Yes that's correct, an account can not be created without accepting TOS. So if they've proceeded to creating an account then the backend just fires off the request with the accepted service / email address. The server then records a combination of the service / email / timestamp. |
Thanks for the confirmation, @mikkamp. We're going to get started on this. @eason9487, please feel free to let me know if you have any additional concerns. |
@dsawardekar and @eason9487, I realized that the updates I made to the implementation notes a couple of days ago didn't get saved. I've just updated them to reflect that this issue will create the initial |
@ankitrox Can you please fill in the |
As part of #2509, we are consolidating the process of connecting Google accounts (including Ads and Merchant Center) into a new combined card UI, called
GoogleComboAccountsCard
, which will be responsible for a more streamlined experience for creating and connecting Google Accounts to the store.To support this effort, this issue is to create the initial
GoogleComboAccountsCard
component and implement the first step in the connection flow — connecting their Google account. Prior to connecting a Google Account, we will ask merchants to accept the terms and conditions for Google Merchant Center and Google Ads so that we can create those accounts if needed.The "Connect" button will be disabled until the terms and conditions are accepted, and enabled after they are accepted so the user can begin connecting their Google account.
Once connected, the current connected states should be shown based on permissions granted
When sufficient permission is given
When sufficient permissions are NOT given
Acceptance Criteria
GoogleAccountCard
is replaced by a newGoogleComboAccountsCard
in the first step of onboarding.ConnectedGoogleAccountCard
is shown (with sufficient permissions) orRequestFullAccessGoogleAccountCard
is shown (in not all permissions are granted.Note: The T&C state is not recorded from the front end. They'll be recorded when those accounts are created. Since they cannot be created until a Google Account is connected no change is needed.
Implementation Brief
Note
This work should be branched from feature/2458-streamline-onboarding and a PR should be created against the feature/2458-consolidate-google-account-cards branch.
The current
GoogleAccountCard
located here should be duplicated to a newGoogleComboAccountCard
component located atjs/src/components/google-combo-account-card/
this component can reuse most of the same components consumed byGoogleAccountCard
but will need a newConnectGoogleComboAccountCard
in place ofConnectGoogleAccountCard
to handle the Terms & Conditions checkbox.The state that handles whether the checkbox is checked can likely all stay inside the
ConnectGoogleComboAccountCard
component and be combined with thedisabled
prop to determine the value passed to thedisabled
prop of theAppButton
component.The
CheckboxControl
from@wordpress/components
should be used for this control. It supports setting a disabled property like<CheckboxControl disabled />
.Test Coverage
after clicking the "Connect your Google account" button...
test passesThe text was updated successfully, but these errors were encountered: