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

Rename blocks: surface new name in more places in the UI #56523

Open
annezazu opened this issue Nov 25, 2023 · 7 comments
Open

Rename blocks: surface new name in more places in the UI #56523

annezazu opened this issue Nov 25, 2023 · 7 comments
Labels
General Interface Parts of the UI which don't fall neatly under other labels. [Type] Enhancement A suggestion for improvement.

Comments

@annezazu
Copy link
Contributor

Right now, when you rename a block, the rename is only visible in List View and under advanced in the block settings. Since renaming is such an intentional action for better organization and clarity, the question remains of whether to show the name in more places in the UI. For now, these two places come to mind:

@WordPress/gutenberg-design curious to hear what you think and the best way to strike the proper balance.

@annezazu annezazu added [Type] Enhancement A suggestion for improvement. General Interface Parts of the UI which don't fall neatly under other labels. Needs Design Feedback Needs general design feedback. labels Nov 25, 2023
@jasmussen
Copy link
Contributor

jasmussen commented Nov 27, 2023

Feels entirely valid. I think the only question is whether the block description will feel disconnected if renamed. Shown here the inspector says "Group", and then a description, "Gather blocks in a container".

screenshot showing the site editor with list view and inspector open, and a group selected

If renamed to "Content", like it is in the list view, it would say "Content", followed by "Gather blocks in a container".

I don't think this is an issue, and we should try the change as-is. If we do find this to be problematic, the description could be augmented when a block is renamed.

@jasmussen jasmussen removed the Needs Design Feedback Needs general design feedback. label Nov 27, 2023
@carolinan
Copy link
Contributor

Can the description be updated to include the original name?
Because if the name is replaced everywhere I am still concerned that it might me difficult for some users, for example to know what block type they have selected.

Remember that not only users, but themes and plugins can rename blocks in the markup of patterns and templates.

@richtabor
Copy link
Member

Breadcrumbs sure, but not the block card/inspector.

Renaming blocks is particularly useful for finding and navigating among many blocks, as seen in list view and the breadcrumbs. The block card/inspector is not where you're finding one block among others—you've already selected the block.

@annezazu
Copy link
Contributor Author

annezazu commented Dec 7, 2023

Sounds like an initial first step is to just update the breadcrumbs based on this discussion!

@jameskoster
Copy link
Contributor

Down the road it might be interesting to surface both the custom and the technical name in the Inspector.

@landwire
Copy link

landwire commented May 2, 2024

Would be great to still see the block type after renaming somewhere.
This could be a little label on the top right above the name of the block in the list view or something along those lines.
It just gives a little more info for the user.

Examples:
Latest News - core/query
Join our club now - core/cover

@richtabor
Copy link
Member

I'm not sure. Maybe, but for many cases it may be too much information. Like for paragraphs or headings, or for synced patterns with overrides.

In the meantime, you can name it with the block name manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
General Interface Parts of the UI which don't fall neatly under other labels. [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

6 participants