[WIP] Block Editor: Add contextual label for block inserter button #71160
+60
−26
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

What?
Closes #71162
This PR updates the block inserter button label to show a contextual and clearer message when adding new blocks inside a parent block. Instead of the generic "Add block" tooltip, it shows "Add block to [Parent Block Title]" where applicable (e.g., for navigation menu items).
Why?
The generic "Add block" tooltip can be confusing when adding items inside blocks like the Navigation block, where users expect to add a new menu item rather than just a generic block. This change improves clarity by specifying the type of item being added based on the parent block's title.
How?
ButtonBlockAppendercomponent now receives aparentBlockTitleprop and uses it to customize the button label.Insertercomponent obtains the parent block title by retrieving the parent block's block type title or name and passes it down as a prop._xandsprintf) with translator comments for internationalization support.Reference taken from here: #45238 (comment)
Testing Instructions
Screencast
Before
Screen.Recording.2025-08-11.at.12.22.50.PM.mov
After
Screen.Recording.2025-08-11.at.12.57.01.PM.mov