Update navigation block entity automatic name generation and refine naming UI#36238
Conversation
|
Size Change: +336 B (0%) Total Size: 1.08 MB
ℹ️ View Unchanged
|
|
Looks like the widgets tests are broken in |
4f620b1 to
fed1f23
Compare
fed1f23 to
d30c7f3
Compare
|
It only uses the "Header Navigation" in the name if the block is added in the header. If it's moved from somewhere else, it remains just "Navigation". I'm not sure which on is better so I'm just noting it here @talldan Also, there is a bug in trunk if you insert a nav block like this directly anywhere: <!-- wp:navigation -->
<!-- wp:navigation-link /-->
<!-- wp:navigation-link /-->
<!-- wp:navigation-link /-->
<!-- /wp:navigation -->It crashes the editor. It effectively prevents the user from adding any pattern including the navigation block. The problem is gone if I comment out this effect: gutenberg/packages/block-library/src/navigation-link/edit.js Lines 423 to 430 in 098278b Let's fix it next week and not block this PR on it. |
Description
Closes #35947
Address the comment here - #36169 (comment).
Also moves the UI for menu naming and deleting UI to the 'advanced' section as often requested. I still strongly feel this isn't the right solution, and naming is important for users. I wasn't able to come up with an alternative in the limited time that lowers the prominence of the UI. Gutenberg still has limited support for ordering inspector panels. There were also no other designs put forward for this problem other than the advanced panel. 🤷
With this improvement it's less of an issue. We'll see what feedback comes in and adjust as necessary.
How has this been tested?
Alternative testing instructions:
Screenshots
(I changed the menu names slightly since this screeenshot)

Types of changes
New feature (non-breaking change which adds functionality)
Checklist:
*.native.jsfiles for terms that need renaming or removal).