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

Template vs content editing UX: improve list view UI #51393

Closed
annezazu opened this issue Jun 10, 2023 · 7 comments
Closed

Template vs content editing UX: improve list view UI #51393

annezazu opened this issue Jun 10, 2023 · 7 comments
Labels
[Feature] List View Menu item in the top toolbar to select blocks from a list of links. [Feature] Page Content Focus Ability to toggle between focusing on editing the page and editing the template in the site editor. [Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") Needs Design Feedback Needs general design feedback. [Type] Enhancement A suggestion for improvement.

Comments

@annezazu
Copy link
Contributor

While doing some early testing of #50857 and noticed that List view shows lock icons for the things I can actually edit and the items that are locked for the template aren't visible:

Screen Shot 2023-06-10 at 12 35 42 PM

This feels counterintuitive for a tool that's so often used. cc @SaxonF @noisysocks

@annezazu annezazu added Needs Design Feedback Needs general design feedback. [Feature] List View Menu item in the top toolbar to select blocks from a list of links. [Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") labels Jun 10, 2023
@noisysocks noisysocks added the [Feature] Page Content Focus Ability to toggle between focusing on editing the page and editing the template in the site editor. label Jun 25, 2023
@noisysocks
Copy link
Member

Good catch. The lock icons are technically correct (those blocks are locked: they can't be moved or removed) but mostly meaningless in this mode. Let's remove them from the list view altogether when in page content focus mode.

@noisysocks noisysocks removed the Needs Design Feedback Needs general design feedback. label Jun 26, 2023
@noisysocks
Copy link
Member

noisysocks commented Jun 26, 2023

Hmm actually I'm not sure 😅

Whatever we do here should be consistent with patterns that have "templateLock": "contentOnly". This is what a locked pattern looks like in the List View:

Screenshot 2023-06-26 at 11 09 09

Note the lock icons. These indicate that the blocks can't be moved or removed. You can still edit their content.

Maybe should we only show the lock icon when the user has manually locked the block and not when it's locked via a pattern lock or via the page content focus?

What do @SaxonF and @jameskoster think?

@SaxonF
Copy link
Contributor

SaxonF commented Jun 26, 2023

It might be worth looking at an icon that suggests editing contents/child blocks is possible vs the lock which prevents everything. This will become more of an issue when partially synced patterns are a thing.

  • If a block's contents are editable it has Icon 1
  • If a block is completely locked it has Icon 2
  • If a block is locked but also has editable content (e.g. post content block when editing page) than it has both (or maybe Icon 3)

In terms of content editing in the site editor. @noisysocks I know we went back and forth on this a little bit during the build but I'm now wondering whether we should show top level template blocks in sidebar as "locked" when editing pages. A couple of reasons for this:

  • If we every introduce the show/hide template toggle than it would make sense to also show/hide template blocks
  • It gives us an additional way of prompting to edit template e.g. vs more menu on block layer

Selection behaviour would just highlight the block on canvas but with no toolbar like we currently do.

image

@jameskoster what do you think?

@noisysocks noisysocks added the Needs Design Feedback Needs general design feedback. label Jun 26, 2023
@noisysocks
Copy link
Member

In terms of content editing in the site editor. @noisysocks I know we went back and forth on this a little bit during the build but I'm now wondering whether we should show top level template blocks in sidebar as "locked" when editing pages.

Not against it! You're right it would makes sense if/when we add the template toggle button.

Thinking about logistics for a moment, this strikes me as an iteration that doesn't need to go into 6.3.

@jameskoster
Copy link
Contributor

There are various lock statuses (move, remove, contents) and combinations thereof to consider. I worry a bit that icons for each could substantially increase cognitive load and add a lot of noise to List View.

My assumption is that the most important thing to communicate is whether a block is fully editable, partially editable, or not editable at all in its current context. So for an alternative idea, I wonder if we might try:

  • Fully editable: no icon.
  • Partially editable: lockOutline (or another new) icon. This would include partially synced blocks, any regular block that is move and/or remove locked (since its contents can still be edited), and blocks like Post Content / Post Title in the page edit context.
  • Not editable at all: lock icon. Since blocks cannot currently be content locked via the UI, this would only be applied to:
    • Template blocks (not including Post Content / Post Title etc) in page edit context, if we choose to display them.
    • Blocks inside partially synced patterns that haven't been marked as content-editable.

Side note: It's kind of wild how we've proliferated the use of the lock icon given how few blocks are capable of being fully locked.

I'm now wondering whether we should show top level template blocks in sidebar as "locked" when editing pages

It could be worth a try, but I fear it will make selecting editable blocks a bit tedious when the template is convoluted. But I suppose we have the condensed list view in the Page Inspector tab, so maybe it's ok?

@annezazu annezazu moved this to ❓ Triage in WordPress 6.3.x Editor Tasks Jun 26, 2023
@ndiego ndiego added the [Type] Enhancement A suggestion for improvement. label Jun 27, 2023
@ndiego ndiego moved this from ❓ Triage to 📥 Todo in WordPress 6.3.x Editor Tasks Jun 27, 2023
@noisysocks
Copy link
Member

This isn't necessary for WP 6.3.

@youknowriad
Copy link
Contributor

This looks in a better state now. Let me know if there's anything missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] List View Menu item in the top toolbar to select blocks from a list of links. [Feature] Page Content Focus Ability to toggle between focusing on editing the page and editing the template in the site editor. [Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") Needs Design Feedback Needs general design feedback. [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

6 participants