Gutenberg: Full site editing: Template parts editing and saving

Created on 18 Feb 2020  路  15Comments  路  Source: WordPress/gutenberg

With the merging of https://github.com/WordPress/gutenberg/pull/19203 (template parts) and https://github.com/WordPress/gutenberg/pull/18029 (multi-entity saving) we should iterate on the UX behind these initial explorations.

Editing and Saving Template-parts

A template-part is a global block that effects all pages on a site. It is often recognized as a Header, Footer, or Sidebar. When a change is made on a template-part it affects all pages/posts that include that template-part.

User journey
As a user, I'd like to edit the navigation block in my header and save it, essentially updating across all pages on my site.

Features

  • Allow editing of nested blocks.
  • Introduce various template-part layouts that can be swapped with the current layout.
  • Communicate to the user what is being saved and how it affects their site (ei. global change).
Needs Design Feedback [Feature] Full Site Editing

All 15 comments

Following the user journey stated above:

template-parts 2020-02-18 14_22_21

I've seen that pop-up confirmation in a few places with FSE, and I find it really confusing. I also don't expect that people will actually read what is presented there without just clicking "Continue".

In my opinion, the need for this pop-up is a sign that this interface might be doing too much.

What if we explore solutions that instead of a popup, are contained in the sidebar? The attention of the user is already there, so if we keep it there, then it should be easier to design a working solution instead of bouncing them back and forth on the screen?

@folletto I just had another thought on a flow that I posted here: https://github.com/WordPress/gutenberg/issues/19886#issuecomment-588409779

Yes, that seems going in a similar direction.

So right now, the pre-publish sidebar can be turned off by the user. My proposal to include the changes there is already going to require some modifications to be done to the sidebar so that it is persistent no matter what. I think that's okay.

Keeping them in the sidebar for the final confirmation sounds quite reasonable too. Definitely worth an exploration.

If the sidebar is the solution... we're going to need to figure out a better approach to those Publish buttons. 馃槅 I just won't allow a third Publish button to occur.

Reposting from #20421

Another iteration (riffing off @shaunandrews) that utilizes a sidebar (notably not pre-publish).

Try out the Prototype.

multi-entity-5b

Screenshots

image

image

image

Notes

  • Can highlight the content on desktop at full size. On mobile will likely need to resort to something similar to the template preview.
  • Similar to the default save flow (is not pre-publish)
  • Is a good path to save specific part changes, duplicate template parts, discard changes

Source Figma document

Hey @MichaelArestad!

Would you like feedback on the design mocks you posted above or the direction (screenshotted below) from your source Figma file > page: Prototype i3? The latter seems to introduce checkboxes...?

Screen Shot 2020-04-08 at 4 30 06 PM

@joanrho The latter. I posted the update to that here (to keep feedback in one place):

https://github.com/WordPress/gutenberg/issues/20421#issuecomment-611102784

It also doesn't introduce the checkbox component. Those already exist as mocked up in Gutenberg. (Though I think they could use a tiny bit more iteration)

I really like

  1. The "Cancel" button is a great addition and makes it clear how to escape this flow.
  2. Keeping the "Preview" option visible and actionable is smart. I can see a flow where the user would like to double-check alternative screen previews before publishing.
  3. Hiding the various entities that need saving keeps the UI clean. But allowing power users the ability to access the list is perfect.
  4. Showing the "Save as..." as a link helps separate it from the "Save" and "Cancel" buttons up top.

Feedback

  1. The text changes once I click on "Review changes". Maybe it should remain and the Review changes can work like an accordion? Swapping out the text here could go unseen.
  2. The "save as" link is a bit long when including the template name. Maybe it should just read, "Save as..." ?
  3. What happens if I click out of the sidebar without clicking any of the buttons? Is it like clicking "Cancel"? I ask because all the other buttons on the page look like they are still active.

What happens if I click out of the sidebar without clicking any of the buttons? Is it like clicking "Cancel"? I ask because all the other buttons on the page look like they are still active.

I would assume the same mechanics as prepublish, which, are that it doesn't cancel the flow. In fact, it lets the user continue editing. I am not against changing this behavior, but it's def in the realm of a separate issue.

Closing this in favor of #20421

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pfefferle picture pfefferle  路  3Comments

mhenrylucero picture mhenrylucero  路  3Comments

aaronjorbin picture aaronjorbin  路  3Comments

hedgefield picture hedgefield  路  3Comments

nylen picture nylen  路  3Comments