-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve create new UI feedback in Nav block (#39219)
* Refactor hook to async pattern with state * Extract createNavigation to top level edit and provide UI feedback * Extract createNavigation to top level edit and provide UI feedback * Handle create empty in upper component * Expose errors to improve debugging * Implement notices for menu creation * Ensure fallback title by waiting on default title generation * Guard against empty Navigation title * Remove unused hook introduced via rebase * Export and use status constants for create menu hook * Rename function name to better communicate intent * Fix convert classic menu hook to conform to new create hook API * Use status constants * Fix test by ensuring reference to Nav block is current when unfocused. * Add test for loading indicator whilst creating Navigation * Add test for notice upon creation of empty Navigation Menu
- Loading branch information
Showing
6 changed files
with
194 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.