This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
Decide on and design template block placeholders for the editor #4949
Labels
focus: FSE
Work related to prepare WooCommerce for FSE.
focus: template
Related to API powering block template functionality in the Site Editor
needs: design
The issue requires design input/work from a designer.
Context
For the WooCommerce Store Editing Templates v1, we're converting a set of WooCommerce PHP templates to a block each. Initially, the goal is not to create fully-featured blocks but instead create one basic block per PHP template that renders a placeholder in the editor and the template on the Frontend.
Goal
The goal of this particular issue is to decide on the placeholder design and copy for the editor.
Ideas
We created some basic prototypes to demonstrate the design challenge and offer some initial ideas on potential solutions.
Option 1: simple text-based placeholder
The first option would be to display a simple text-based placeholder that provides the merchant with an explanation that a) they are seeing a placeholder they can move and add blocks around and b) that the placeholder will be replaced by the related WooCommerce template on the Frontend.
This simple option has a couple of key advantages:
Note: we just used the
Notice
component inside thePlaceholder
component for the prototype here. As per Block Editor Handbook it sounds like theNotice
should only be used for top-level notices. We'd have to use something else here.Option 2: text-based replica placeholder
The second option is inspired by the recent effort of unifying Site Editing block placeholders. In situations in which the blocks have no data to reference, the blocks are now showing basic descriptions in place of where the relevant elements would be e.g. "Product title" where the title of the product would show.
The main downsides of this option are:
Option 3.1: wireframe replica placeholder
The third option is inspired by the navigation block empty state placeholder. In situations in which the block has no data, it's showing a basic wireframe representation of the content.
The main downsides of this option are:
Option 3.2: image-based wireframe replica placeholder
A potential solution to reducing the time investment for this option could be to just include an image wireframe representing the template. The assumption here is that designing these wireframes in Figma would probably be quicker than building out each wireframe with actual markup/styles?
The text was updated successfully, but these errors were encountered: