-
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: Support editing connected accounts in GoogleComboAccountsCard #2605
Comments
@joemcgill Can you kindly review the IB please? |
Thanks, @asvinb. The implementation brief looks good to me. I had not originally considered the implementation for disconnecting the Google account to be in scope of this issue, but since we don't have another one, I think it makes sense to combine with this work. I've updated the estimate to account for this. @eason9487 this is ready for you to review. |
If this component will be used in this plugin's Settings, Reconnecting or Ads-onboarding page as well, it needs to take care of whether they should keep it without offering the functionality to disconnect Google Merchant account or Google Ads account. I have no further thoughts on Implementation Brief. Due to the complexity of the component, I can't foresee how it might eventually be possible or appropriate to implement. |
Are there more conditions that will actively or passively change the state between compact, semi-expanded, and fully-expanded? For example:
|
@eason9487 I added a "Notes" section in the IB to clarify when to switch to compact or stay in edit mode. cc @joemcgill |
@asvin I agree with what you added in the notes section. @eason9487 at this time, this component will only be used in the onboarding flow for connecting accounts. The original cards will still be used on the settings screen and for reconnecting the ads screen. I'm going to mark this one as ready for implementation |
Part of #2509
Caution
Depends on #2596 and #2597.
While connecting accounts to the store, a merchant may need to edit one or more of the connected accounts being shown in the
GoogleComboAccountsCard
.To achieve this, it is important to understand the three main visual states that the
GoogleComboAccountCard
supports:Warning
When fully expanded, the top card will include a "Cancel" button (not pictured)
In either of the first two scenarios, the top section of the combo card should include an "Edit" link, which will switch the
GoogleComboAccountsCard
to the third, Fully-expanded state.In this state, the top section only represents the Google Account, and includes a link to connect a different Google Account. Below, the Ads and MC accounts will be shown in their own panels where accounts can be disconnected, connected, created, etc.
Acceptance Criteria
Implementation Brief
GoogleComboAccountsCard
component,GoogleComboCard
)js/src/components/google-combo-account-card/connect-google-account/
to handle all the logic instead of having the code inGoogleComboAccountsCard
.ConnectAds
(created in Onboarding: Connect to existing Ads account in Google Accounts Card #2596) andConnectMC
(created in Onboarding: Connect to existing MC account in Google Accounts Card #2597) should be rendered (irrespective the accounts are connected or not).ConnectAds
andConnectMC
are automatically rendered (if there are accounts and the user is prompted to connect accounts).ConnectWarningModal
component withinjs/src/components/google-combo-account-card/connect-google-account/connect-warning-modal.js
.js/src/components/google-mc-account-card/warning-modal/index.js
disconnectAllAccounts
action should be dispatched and the modal closed.js/src/settings/disconnect-modal/confirm-modal.js
ConnectWarningModal
.Test Coverage
Definition Questions
The text was updated successfully, but these errors were encountered: