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

Improve organization of templates to reflect importance/hierarchy #44302

Closed
annezazu opened this issue Sep 20, 2022 · 16 comments
Closed

Improve organization of templates to reflect importance/hierarchy #44302

annezazu opened this issue Sep 20, 2022 · 16 comments
Labels
[Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") Needs Dev Ready for, and needs developer efforts [Type] Enhancement A suggestion for improvement.

Comments

@annezazu
Copy link
Contributor

What problem does this address?

Right now, when you're looking at the template list, there's no sense of what's important and the templates feel a bit scattered, especially after you add new ones that appear at the top:

image (24)

It feels odd that you have to scroll and read each template to find what you are most likely to need.

What is your proposed solution?

Consider adding a level of organization to the templates to help better reflect importance and relevance of specific templates. For example, the template powering the homepage likely should be listed higher than a random new category template.

cc @WordPress/gutenberg-design for thoughts here!

@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 Sep 20, 2022
@jasmussen
Copy link
Contributor

I like to think there's an opportunity for a thumbnail view in the not too distant future. But in the mean time, should we categorize? Maybe a main category holding home, index, archive, then an expanded category for category, 404, single, page, tag, etc, and finally a category for custom-made templates?

@paaljoachim
Copy link
Contributor

Ordering the template page into categories could be helpful.

@jameskoster
Copy link
Contributor

There's some discussion in #42325 (comment) which might be relevant here.

@annezazu
Copy link
Contributor Author

annezazu commented Jan 3, 2023

This came up in the nineteenth call for testing for the FSE Outreach Program:

But why does the order of the templates change? Home template is not always the first template.

@jameskoster
Copy link
Contributor

It's difficult to order the entire list of templates because 'important' is somewhat subjective based on the current task and existing templates. We could create an ordering function that sorts based on the existence of templates hierarchically (e.g. Index is only important when Home doesn't exist). But a simpler approach might be additional sorting levels in the UI... so instead of just having a single list of templates they're arranged into categories. Quick mockup:

Screenshot 2023-01-05 at 11 02 35

This could theoretically make the template addition process simpler too. For example if you want to add a blog to your site you just click + and select 'Blog', rather than having to manually create Category, Tag, Author, Single Post, one by one.

@jasmussen
Copy link
Contributor

I wonder if subheadings could work in that context? While the waterfall structure affords endless drilldowns, I wonder if it isn't nice to have more immediate access?

@jameskoster
Copy link
Contributor

I'd say it's worth a try. We'd probably need to make the subheadings sticky to aid orientation within extra long lists.

@annezazu
Copy link
Contributor Author

annezazu commented Feb 15, 2023

Noting that the current chaotic ordering remains confusing as I test 6.2 beta 2. For example, here's a screenshot of browse mode where you can see some custom templates alongside the ones built into TT3:

Screen Shot 2023-02-15 at 9 50 07 AM

In this case, I have to scroll down and find "home" to edit my homepage template. Is this something we can improve for 6.2? I think it will be a huge quality of life improvement cc @richtabor as design lead.

@jameskoster
Copy link
Contributor

My preference here would be to add some subheadings to group templates contextually, something like:

Templates

Grouping by post type (and custom) will scale well when plugins are added (you can imagine a 'Products' section when you install WooCommerce). I acknowledge things like 404 aren't technically pages, but I suspect that's how most people think about them.

It's a bit down the road, but we could use such grouping to create a UI for adding custom post types too. For example there may be a 'Add testimonials section' button somewhere which would automatically create archive-testimonials and single-testimonials (and place them in a new Testimonials template section) in one click.

If we add grouping to the list (contextual or otherwise) then I think the ordering may be less of an issue. That's not to say we shouldn't figure something out there, more that it can probably by worked out separately.

@jordesign
Copy link
Contributor

I really like this idea of grouping with sub-headings (without the need to drill down)

@SaxonF
Copy link
Contributor

SaxonF commented Feb 24, 2023

Groupings look good. In future we may need to figure out how this overlaps with the idea of showing certain templates alongside pages, but not something to think about now.

@annezazu annezazu added Needs Dev Ready for, and needs developer efforts and removed Needs Design Feedback Needs general design feedback. labels Feb 24, 2023
@jameskoster
Copy link
Contributor

In terms of ordering within the sections, perhaps alphabetical would be okay to start, with the caveat that 404 should always be at the bottom :)

@mtias
Copy link
Member

mtias commented Feb 25, 2023

Groupings seems nice to explore, but I agree at least stopping the seemingly random shifts that occur when using "recently edited". A hard-coded list based on A/Z but optimized (don't lead with 404) seems like a good start. Custom templates should probably be still separate, it can get confusing otherwise.

@jameskoster
Copy link
Contributor

With #48473 merged this is at least partially solved.

@annezazu do you think that's adequate to close this issue, or should we aim for the grouping as well?

@mtias
Copy link
Member

mtias commented Mar 1, 2023

I'd like to continue exploring the "Pages / Blog / Custom" groupings further, but probably best to do a specific issue about that.

@jameskoster
Copy link
Contributor

I opened #48651 as a follow-up.

I'll close this one, but feel free to re-open if I am too eager in doing so.

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 Dev Ready for, and needs developer efforts [Type] Enhancement A suggestion for improvement.
Projects
Status: Done
Development

No branches or pull requests

7 participants