gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Design User Experience for Switching Between Page Builders/Alternate Editing Scenarios

Open brentjett opened this issue 9 years ago • 31 comments

I'd like to discuss and hopefully establish some core guidance (or perhaps even an API) for how page builders and other alternative editing experiences should implement their UI when switching between Gutenberg and their own functionality. This is a situation where the editor does not replace gutenberg on all posts/pages outright, but allows the user to choose based on the kind of page they are creating. Thoughts welcome.

The considerations, as I see them, are:

  • User should clearly recognize what editing modes are available to them.
  • User should clearly understand what editing mode they are currently in.
  • User should be able to switch between these modes, and back, ideally without a page refresh.
  • Changing editing modes will very likely change the relevant controls in the toolbar with some exceptions like the publish button.

edit mode switcher a

One idea would be to include a segmented control in the view somewhere. The above mockup shows the control above the title area. The image below shows the control in the toolbar area.

edit mode switcher b

When switching between another editing experience, parts of the UI will no longer be relevant, for example the undo/redo controls and the add block button. The saved indicator may still be relevant if it indicates changes outside of the post_content have been saved.

affected areas

Once the user has switched to an alternate editing mode, the plugin that has implemented that editor will need to display something. A frontend page builder (Beaver Builder) would simply be making the user aware that the page is using builder, and give them a link to launch the frontend. A backend builder experience would show their builder UI in the content editing space. The ideal would be that the overall appearance of that editor be as consistent with the look and feel already established by the WP/Gutenberg, but not so similar that the user is confused as to which mode they are currently in.

builder display

In the above image, the page builder notice matches the look/feel of gutenberg but is probably too similar to a block and would ultimately confuse the user about what view they are in. Looking for alternate design ideas here to accomplish consistency without misinforming the user.

Ideally switching between different editors could be done in JS and not require a page refresh. The switcher control could fire appropriate events to let Gutenberg reinitialize when the user choses to switch back to it, and similarly the builder plugin could listen for appropriate events to init their own experience.

Thoughts welcome.

brentjett avatar Jun 22 '17 14:06 brentjett

just a thought on toggling... should page builders be a part of the visual / text toggle? screen shot 2017-06-22 at 9 59 18 am screen shot 2017-06-22 at 9 59 01 am

saracannon avatar Jun 22 '17 15:06 saracannon

actually, now that I think about it that implementation will only make sense if the page builder can port over the content from Gutenberg properly.

saracannon avatar Jun 22 '17 15:06 saracannon

About the controls in the toolbar, I'd propose (again 🙂 ) to consider to move the publish button to the bottom, as last thing in the screen. See also #467 This would not only help the toolbar to be "dynamic" but also logically match the editing flow:

  • "just write"
  • set some settings and the like
  • save

Placing it at the top, just my 2 cents, is just repeating the mistake done in the customizer where keyboard users and screen reader users are forced to tab backwards to the top of the screen to save (after they figured out the save button is there!).

As I see it, from both an usability and accessibility perspective, the only tool in WordPress that gets this right is Press This:

screen shot 2017-06-22 at 17 01 05

afercia avatar Jun 22 '17 15:06 afercia

A page builder or some other plugin that will affect the building of a page could have a prominent placement to clearly signal that there is something else present that the user needs to consider.

For instance having a "you need to consider" this kind of block (the styling could be a bit different then a regular block) could be one way to go.

paaljoachim avatar Jun 22 '17 15:06 paaljoachim

@afercia The publish button at the bottom would most certainly make sense in a touch/mobile device scenario where thumbs are near the bottom. Having it at the bottom for a desktop experience doesn't bother me, beyond just retraining the user where to look for it. Visually it's pretty prominent.

@saracannon my only issue with using the "select" drop-down in the top left is that I feel it's too hidden. The site admin has made a conscious decision to install a builder, so that should be more obvious and discoverable for the user. I'd also be concerned that, because it's so hidden, it would encourage plugin developers to ignore the "standard way" of doing things and create their own more prominent way of presenting their experience.

As far as using gutenberg's content for the page builder, that wouldn't be practical since the gutenberg content doesn't contain layout information. I think page builders will continue to handle their data structure separately. In the case of Beaver Builder, we populate the post_content whenever the user makes changes to their page layout so they have the option to switch back to the default editor at any time, and we'll be working to make this functionality compatible with the new gutenberg data format.

brentjett avatar Jun 22 '17 15:06 brentjett

@brentjett Can you talk a bit more about when and why Beaver Builder users switch between the default editor and your editor? What prompts someone to use the regular editor for some things, and Beaver Builder for others?

melchoyce avatar Jun 22 '17 17:06 melchoyce

Aside — this is old research data, and might not be applicable any longer, but I'd recommend reading the usability testing report for the WordPress 2.5 "Crazyhorse" redesign, which tested putting publish at the bottom right corner of the screen: https://wordpress.org/news/2008/10/usability-testing-report-25-and-crazyhorse/

melchoyce avatar Jun 22 '17 17:06 melchoyce

@melchoyce I think there's an arguable case for a simpler experience being better for blogging. A lot of our users will use page builder on their pages, and still use the default editor for posts and I think Gutenberg would certainly enhance that case.

As far as switching, I don't mean to imply that the user would be switching back and forth on a page frequently, but rather that they have the option should they decide to no longer use the builder. Generally I think it's safe to say once a user decides to begin using a page builder on a page, they will likely continue with it throughout the lifespan of that page.

I think there might also be a progressive case where a less technical user will create a page and insert content into the default editor, and a designer/advanced user may come behind them and switch to the page builder in order to lay that content out.

brentjett avatar Jun 22 '17 17:06 brentjett

How many folks do use Beaver Builder for their posts? Wondering if there's a case to have it off by default on posts, and on by default on pages. If this is the most common behavior, I think you could get away with having the option live in the "switcher."

melchoyce avatar Jun 22 '17 18:06 melchoyce

Yea I don't have a stat for you, but that is how our default settings work. We enable the builder on the pages post type, but we don't automatically turn it on for any specific page. There's a case where a site is being retrofitted with BB after launch and there are pre-existing pages so we don't want to enable BB on pages until the user opts-in to use it on a page. There is a way (filter) for a site admin to choose to default new pages to use the builder and that may be something we bring into UI at some point.

brentjett avatar Jun 22 '17 18:06 brentjett

I wonder if we don't need a separate experience for page building. Like, if it's just normal content the editor would appear as it does now as a linear list of blocks. However, if layout blocks are being used (e.g. rows and columns) then I envision this is when the editor experience would have aspects of page building start to appear. The more that the experiences can be unified the better, I think.

westonruter avatar Jun 22 '17 23:06 westonruter

@westonruter are you referring to a down-the-road admin builder experience or how existing builder products integrate with WP?

brentjett avatar Jun 22 '17 23:06 brentjett

@brentjett ah yes, I'm referring to a down-the-road builder experience, not integrating with existing builders. I see now that you're referring to the latter in this issue. 👍

westonruter avatar Jun 22 '17 23:06 westonruter

actually, now that I think about it that implementation will only make sense if the page builder can port over the content from Gutenberg properly.

This is a key issue for me. I understand the desire for page builders among many users but lack of data portability with many of the existing page builders is a significant issue.

Is their any chance the various page builders can be encouraged to offer basic data portability that allows users to retain the raw post content when they switch back from a selected page builder to Gutenberg.

buzztone avatar Jun 23 '17 03:06 buzztone

@buzztone In the case of Beaver Builder, that basic data portability already exists. While we store our full layout data in a fl_builder_data post meta key, each time the user publishes their updates in BB we pull all the text, images, and any other modules that support this functionality into the post_content so that it is always populated should the user choose to switch back to the default editing experience or disable the plugin. This is also critical for things like SEO plugins that analyze page content, or for auto-generating excerpts. Since we don't use shortcodes in the content to render our layouts, there's nothing left behind that would not be rendered properly. By disabling, the user gives up their layout, but not their content. Moving toward Gutenberg's launch we'll be updating our system to export Gberg's new data format into the post_content.

But I want to be clear that this is not the same thing as a fully data-compatible "round-trip" kind of experience where the content can be edited by the builder, and then by g'berg, and then by the builder again without loss. Since the g'berg data structure does not contain layout information (for now) using the post_content as the only source of data isn't a practical expectation for builder plugins.

brentjett avatar Jun 23 '17 03:06 brentjett

In the case of Beaver Builder, we populate the post_content whenever the user makes changes to their page layout so they have the option to switch back to the default editor at any time, and we'll be working to make this functionality compatible with the new gutenberg data format.

Could be a significant step forward if Gutenberg can facilitate page builders doing this in a way that separates the mass of page builder specific short-codes added by most current page builders, so they can be removed easily.

buzztone avatar Jun 23 '17 03:06 buzztone

But I want to be clear that this is not the same thing as a fully data-compatible "round-trip" kind of experience where the content can be edited by the builder, and then by g'berg, and then by the builder again without loss.

Could Gutenberg help to make that scenario possible?

buzztone avatar Jun 23 '17 04:06 buzztone

Since we don't use shortcodes in the content to render our layouts, there's nothing left behind that would not be rendered properly. By disabling, the user gives up their layout, but not their content.

That sounds ideal. Could Gutenberg help facilitate data-compatibility that encourages other page builders to do the same.?

buzztone avatar Jun 23 '17 04:06 buzztone

That's not really for me to say. Someday perhaps? At the present it doesn't seem like it benefits WP very much to extend the data format before it knows what it's own requirements in the future may be, should gutenberg develop layout capabilities. Even if that were the case, that would be asking plugin authors to take on an extreme refactor of their products.

brentjett avatar Jun 23 '17 04:06 brentjett

I believe the Gutenberg Dev team are considering future Gutenberg layout capabilities. Would be nice if these page builder issues could be included.

buzztone avatar Jun 23 '17 04:06 buzztone