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

Focus mode: List templates that consume the template part #38130

Closed
jameskoster opened this issue Jan 21, 2022 · 5 comments
Closed

Focus mode: List templates that consume the template part #38130

jameskoster opened this issue Jan 21, 2022 · 5 comments
Labels
[Feature] Focus Mode Zoomed in focus mode for editing things like template parts Needs Design Needs design efforts. [Type] Enhancement A suggestion for improvement.

Comments

@jameskoster
Copy link
Contributor

When editing a template part in focus mode, it's not always clear exactly where that template part is used, or indeed if it is used at all. This can reduce confidence in the consequence of any changes.

As block themes begin to bundle more templates / template parts (think templates for different archive types, multiple header options, content arrangements, and so on) this detachment could become more of an issue.

If we enable users to view a list of templates that consume the template part they're editing, that will help them better understand the full impact of their changes.

@jameskoster jameskoster added [Type] Enhancement A suggestion for improvement. Needs Design Needs design efforts. [Feature] Focus Mode Zoomed in focus mode for editing things like template parts labels Jan 21, 2022
@jameskoster
Copy link
Contributor Author

Quick example flow where this would be important:

  • Theme bundles content-one.html and content-two.html template parts for displaying post content.
  • archive.html, category.html, and search.html all consume content-one.html.
  • index.html and author.html consume content-two.html.
  • If you were to edit archive.html, select content-one.html and enter focus mode, you may interpret that those changes would only be applied to archive.html which of course would not be the case – any changes would also affect category.html and search.html.

@jameskoster
Copy link
Contributor Author

We can also extend this to Reusable Blocks, Navigation Menus, and any other entity that may in the future be editable in focus mode.

@mtias
Copy link
Member

mtias commented Jan 21, 2022

Isn't this a duplicate of #20476 ?

@jameskoster
Copy link
Contributor Author

Pretty much :)

@mtias
Copy link
Member

mtias commented Jan 25, 2022

It can probably use an update since the designs are fairly old.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Focus Mode Zoomed in focus mode for editing things like template parts Needs Design Needs design efforts. [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

2 participants