[ LinkControl ] Implement enhanced inline page creation flow#77696
[ LinkControl ] Implement enhanced inline page creation flow#77696sarthaknagoshe2002 wants to merge 3 commits intoWordPress:trunkfrom
Conversation
|
Warning: Type of PR label mismatch To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.
Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task. |
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
What?
Closes #72626
Adds the enhanced page creation flow (previously exclusive to the Navigation block) to the global
LinkControlcomponent with additional improvements.Why?
The previous inline creation flow was confusing, it instantly created a draft page without confirmation and offered no control over the title or status. This aligns the default
LinkControlwith the superior UX currently found in the Navigation Link block.How?
LinkControlPageCreatorwhich asks the user for the "holy trinity" of quick page creation: Title, URL Slug (dynamically auto-populated as you type), and Status (Publish/Draft).saveEntityRecorddatabase call back up to the block consumers (e.g.,Button/Edit.js,inline.js) viaonCreateSuggestion.showCreateSuggestionInDropdownastrue.Testing Instructions
Cmd/Ctrl + K.+ Create pagebutton at the bottom of the popover./my-page) as you type, unless manually edited.Screenshots or screencast