Skip to content
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

Gutenberg beta opt-in Dialog #10868

Closed
1 of 3 tasks
mzorz opened this issue Jan 21, 2019 · 1 comment
Closed
1 of 3 tasks

Gutenberg beta opt-in Dialog #10868

mzorz opened this issue Jan 21, 2019 · 1 comment
Labels
Gutenberg Editing and display of Gutenberg blocks. [Type] Task

Comments

@mzorz
Copy link

mzorz commented Jan 21, 2019

This issue explains the opt-in scenarios for Gutenberg (public) Beta rollout.

WPAndroid sister issue: wordpress-mobile/WordPress-Android#9031

The wpcom API has been enhanced with an endpoint /sites/:site/gutenberg that gives us information on whether the user has opted in/out for Gutenberg on the web and mobile for a specific site (the granularity for opt-in is per-user/per-site). We will use this information to understand when to prompt the user with an opt-in dialog.

Prerequisites

Functionality

We should query the API when:

  • app comes from background (maybe throttled every n times), so we can have the freshest value each time
  • when the user switches to another site in the app (given the information is per-user/per-site).

With these values, we can then perform the following checks and flows when the user tries to write a new Post or, when the user opens an existing Post.

Flows

For new Posts

  • if the current selected site is wp.com or jetpack enabled and has Gutenberg on the web
  • if user has already opted either out or in, exit flow and let the right Editor show up.
  • else if user hasn't answered on any platform yet (have yet to check the API docs on this), offer opt-in on mobile.
  • else if user opted in on web, hasn't yet answered on mobile: offer opt-in on mobile.
  • else if user opted out (actively) on the web: automatically opt-out on mobile (that means, changing their setting to Aztec) and show Aztec.

For existing Posts

  • if the current selected site is wp.com or jetpack enabled and has Gutenberg on the web
  • if user has already opted in, check if the Post contains GB blocks. Open with GB if yes, or use the Transform API to transform to GB and open GB if not (see Gutenlypso: add convert to blocks dialog Automattic/wp-calypso#29790).
  • else if user has opted out, check if the Post contains GB blocks. if YES: show Aztec compatibility dialog warning (currently existing in the apps). If not, just open Aztec as usual. (This is all currently implemented behavior for Aztec)
  • else if user hasn't answered on mobile, check if the Post contains GB blocks. If YES: show opt-in dialog. If No: open Aztec.

For .org users

Simply check local setting (Use Gutenberg enabled/disabled), and:

  • use Aztec for all posts if not enabled (showing current Aztec compatibility warning dialog)
  • use Gutenberg for new posts if enabled
  • TBD see if we can use the transform API in isolation for org users in the case of having Gutenberg enabled and attempting to open an old Post.
@mzorz mzorz added the Gutenberg Editing and display of Gutenberg blocks. label Jan 21, 2019
@etoledom
Copy link
Contributor

etoledom commented Aug 8, 2019

Closed via #12066

@etoledom etoledom closed this as completed Aug 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Gutenberg Editing and display of Gutenberg blocks. [Type] Task
Projects
None yet
Development

No branches or pull requests

3 participants