-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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] Templates list screen overview #36597
Comments
Overall the screen is responsive as demonstrated in #36379 (comment). However it would be nice if the nav drawer automatically closed itself when you resize the window from desktop orientation down to mobile. |
Personally I am in favor of removing the styles link for now. I agree it feels very strange to actually use as implemented. We already highlight Styles in the welcome guide: And will no doubt surface it in any adjustments we make to the wp-admin welcome banner. Not to mention the 5.9 about page... |
I agree. Let's remove this from the list? |
@jameskoster I had a look at adding this column for the author or user that last edited, but it looks template parts and templates don't support the author field. We will have to make some changes to the REST API code already shipped to WordPress core to support this. A lot of templates (and I think template parts) are also shipped with the theme as files, so won't have an author. Do you think it's worth continuing to pursue adding this column? Here's the data we get for a template from the REST API: For template parts we might consider adding an 'Area' column, but they also generally don't seem to have a description: Not really a lot to work with. |
Thanks for looking in to that @talldan. The basic principle of the "added by" column was to:
FWIW, here's the original design: Would I be correct in assuming we can tell whether the template is custom, or has been customised, by the existence of that template in the db? If we cannot tell the actual author, perhaps we can just display something generic? Seems we can use the |
Yeah, I think we can use the same logic that determines whether the clear customizations UI is shown, so that should be possible 👍 I'll do some more exploration into adding author support tomorrow (edit: I mean Monday 😄 ). Thanks for the other clarifications, that helps a lot. |
Yes, we can use gutenberg/lib/full-site-editing/class-wp-block-template.php Lines 63 to 68 in d718cb0
The author support is something we can add after 5.9. I think most of the custom templates will have a single author. |
I added feedback to the now merged PR: #36379 (comment) Here are some of the things I noticed while giving feedback. (Let me know if this should be added else where.) |
@jameskoster yeah, we check the db for any templates that have been customized based on the template files we've provided. We then set the property I hope this has answered your question. Let me know if not 🙂 |
@tjcafferkey I was more curious about how y'all supply the templates, and whether how the API indicates that those templates were added by WooCommerce in any way? @paaljoachim I think most of those warrant separate issues. |
@jameskoster We use the |
I made the following issues: [Site Editor] WP menu area - make the screen thinner and add truncation to site title. [Site Editor] WP Menu area - Adjust < Dashboard text to 14px font. [Site Editor] WP left menu area - Do not close menu area when selecting Site or Styles [Site Editor] Adding a shortcut to W icon to open and close the WP left menu area. [Site Editor] [Site Editor] Templates list screen - Add duplicate to 3 dot menu. EDIT 27 Nov - Adding in the following issue: |
Hmm, it's a shame we didn't opt for something like Is the way this is defined likely to be consistent across plugins? |
@jameskoster I noticed that there's currently no way to edit a template part's name, neither in the site editor nor in the list page. Is this feature planned? In addition, I think we also need a way to delete a template/part in the editor. |
@kevin940726 It is possible to edit the name/title in the 'Advanced' section of the block sidebar: |
Oh I see! It's still counter-intuitive though and we should probably support that in focus mode. |
@talldan I am going to look at seeing if I can make a change to update this so the |
Thanks @tjcafferkey, appreciate that. BTW, I have a PR as well that tries to implement showing the plugin name - #36763, I'll update that. I'll have a think about how we can make this work consistently across plugins too, this might need some documentation. |
Yeah, that would be great @talldan. As it might be confusing, because at the moment we have the I've also opened a PR for the change described above |
In addition to renaming, we also need a way to add descriptions (#36664). It may make sense to tackle these items together as they are closely related. |
@kevin940726 I started working on server-side page context/redirection, and I think it might be better to push this enhancement post 5.9. I will create a separate issue for tracking. |
@kevin940726 My PR ##37265 should take care of this hopefully. "Move focus to the navigation toggle button or a custom "skip to content" link when navigating" |
I believe we can close this now that WP 5.9 is wrapped up. Nice work again, everyone! |
Based on the design in #29630 (comment), derived from TODOs in #36379. Here are the list of tasks we should do for the new Templates list screen.
👀 Needs design
⚠️ Blocker for 5.9 Release
🔺 Blocker for 5.9 Beta
🔨 Features
💅 Styles
🐛 Bugs
🧹 Enhancements and Maintenance
Accessibility⚠️
Feel free to assign yourself to any of the above tasks if no one is working on them. Also any helps or discussions are healthy too either in the comments below or creating a separate issue referencing this.
The text was updated successfully, but these errors were encountered: