-
Notifications
You must be signed in to change notification settings - Fork 29
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
Close sync modal when creating new site #1142
Conversation
I've tested it using the HTML file:
The PR doesn't fix this case. It seems that in this PR, we are changing the code to close the connection dialog immediately after the link is clicked. I'm unsure if it's the best approach, as the action the user just started is not yet finished, and keeping the dialog open would make more sense. User can change their mind, close the browser, and choose another site to connect in the connection dialog. Should we update the |
@wojtekn, Thanks for testing the PR. This PR was made after exploring the other solution and it was an effort to find the simplest direct solution that solves user's pain.
I see this a bit excessive at this moment. It would require a big refactor centralizing all the modals in the same Redux store. If you think it's necessary we can create a separate issue. |
Agreed, I don't think we need that at this point. |
…e-sync-modal-when-creating-new-site
This PR is ready for another review. |
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.
Works as expected.
Related issues
Proposed Changes
Testing Instructions
TEST DEEP LINK
npm start
https://wordpress.com/home/${WPCOM_SITE_SLUG}?studioSiteId=${YOUR_STUDIO_SITE_ID}
close-modal-after-deeplink.mp4
TEST REGULAR CONNECTION
npm start
connect-site-regular-flow.mp4
Pre-merge Checklist