Isolated template part editing view could use some refinement #29148
Comments
A while ago we had this, with the separation on the backgrounds. We should constrain the iframe to signal you are editing just a part. It'd be neat to support resizing the canvas to see how a unit scales responsively cc @ItsJonQ |
@jameskoster I agree with you and @mtias in that the Template Part editing view should focus on the part only. Not unlike seeing a single "frame" in Figma (or "Artboard" in some other apps like Illustrator) I think having iFrame + resize handlers would be good for site editing in general :) |
One extra thing to consider here is the relationship between the desktop / tablet / mobile views in the "Preview" menu, and a user-specified width on the iframe. Edit: Perhaps we add a "Custom" option there, which reveals the drag handles. This might be the default view for isolated template part editing. |
Related: A loose "isolated" view for editing Reusable blocks was shared in #29337. Perhaps we can reuse some of the ideas there in our explorations here. |
Wanted to include some feedback from the second FSE call for testing:
Perhaps adding in some sort of notice similar to the template editing notice would help here so people don't accidentally start building out a template in a template part for example. Ideally, similar to the template editing notice, it would be sticky: #28175 |
Realistically I don't think there's anything we can do to 100% stop folks from making this mistake, but general chrome optimisations will hopefully help. On the subject of the block inspector, when you're editing something like a Template Part in isolation, I think the primary tab (normally "Post" or "Template") should be titled "Template Part" and contain all the relevant controls. I'm working on designs for this at the moment and will hopefully have something to share soon :) |
Here's an initial take on this: isolated.edit.mode.mp4The isolated editing view can be accessed from two locations:
Once in isolation mode, the UI around the Template Part adapts in a number of ways:
Thoughts and feedback:
|
Noticing a few other designs building around the concepts shared here. Might be time to assemble a draft PR since there hasn't been much design feedback. |
Probably worth considering the part patterns will play in this environment, particularly some of the ideas we explored in #28737 (comment). Edit: Also whether one might access isolated tp editing via the new persistent list view. |
Here's what editing a template part in isolation (via the sidebar menu in the Site Editor) looks like currently:
Here are a couple of opportunities for improvement I see:
Any other thoughts?
Edit: Breaking the ideas from the proposed designs out in to individual tasks:
The text was updated successfully, but these errors were encountered: