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

Site Editor: Consider adding in descriptions to "Add New Templates" flow #59046

Open
annezazu opened this issue Feb 15, 2024 · 3 comments
Open
Labels
[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

Right now, you can toggle/hide descriptions for templates when in data views, but when you click "Add a new template" there's no description of the template you might add:

Screenshot 2024-02-14 at 3 51 41 PM

This makes it hard to know at a glance what each template might do. Perhaps when you hover, a tooltip could show? Or we could consider adding in very brief descriptions.

@annezazu annezazu added [Type] Enhancement A suggestion for improvement. Needs Design Feedback Needs general design feedback. [Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") labels Feb 15, 2024
@t-hamano
Copy link
Contributor

In #50595, when this modal dialog was implemented, a description existed. After that, it seems that the description was deleted in #51806.

I'm leaning toward bringing back the description, but the current description is quite long, so I think it would be nice to add a short description.

example:

function get_default_block_template_types() {
	$default_template_types = array(
		// ...
		'archive'        => array(
			'title'       => _x( 'All Archives', 'Template name' ),
			'description' => __( 'Displays any archive, including posts by a single author, category, tag, taxonomy, custom post type, and date. This template will serve as a fallback when more specific templates (e.g. Category or Tag) cannot be found.' ),
			'short_description' => __( 'Displays any archive, including posts by a single author, category, tag, taxonomy, custom post type, and date.' ),
		),
		// ...
	);
	// ...
}

cc @ntsekouras @richtabor @jameskoster @jasmussen

@jameskoster
Copy link
Contributor

That's right, the descriptions made the modal extremely noisy. Short descriptions could be worth a try, but it's not always easy to capture the full template purpose succinctly, especially things like front-page and home, or generic templates like archive.

There could even be a world where this becomes a data view grid with previews. Given blocks like Archive Title
now include contextual placeholders (for instance in the Author archives template it displays "Author name" on the canvas), the previews could be more useful. Then users / platforms could toggle fields like description accordingly.

@annezazu
Copy link
Contributor Author

Agreed completely around contextual placeholders. That's where my brain went too. Right now, with the power of data views there, it would be awesome for this modal to then "respect" the choices set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[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

3 participants