-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Add new API to allow inserter items to be prioritised #50510
Merged
Merged
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
d3d0ed6
Proposing a way to sort items in the block inspector based on allowed…
scruffian 1261536
Add inserterPriority API to inner blocks
getdave e8d2c78
Sort inserter based on inserterPriority prop from block list settings
getdave d72bb33
Use new inserterPriority API in Nav block
getdave 66b4a02
Correct comment
getdave d987b29
Remove redundant prop
getdave 4c1797e
Avoid stale inserterPriority
getdave d47e6c8
Make sorting function stable
getdave 07aec20
Renaming
getdave 25b18f2
Remove redundant comment
getdave 264177a
remove spacer
scruffian 509c362
Set prioritisedBlocks as empty array when no blockListSettings are fo…
jeryj 1d81ef4
proritise -> prioritize for consistency
jeryj 1523f1c
Update packages/block-editor/src/components/inner-blocks/use-nested-s…
scruffian eeb586d
Renaming constant to match updated name
jeryj be2e9d6
Add prioritizedKInnerBlocks to the inner-blocks README
jeryj 5d6f1b5
lint fix
scruffian 1162a72
update comment
scruffian 51e5d3c
update comment
scruffian db4568f
pass the correct props to useNestedSettingsUpdate
scruffian 96b70f3
Use stable ref
getdave 21c12e1
Register the test Plugin for e2e tests
getdave 9fde1a0
Register block with prioritzedInserterBlocks set
getdave ef93a6d
Add initial test scaffold
getdave b163447
Tidy up scaffolded test
getdave 6bf6d37
Add test for new API
getdave 8cb75c8
Try removing sort from helper
getdave d0ddf60
Fix test
getdave 836b407
Add test to check does not override allowedBlocks when conflicted
getdave a954bae
Add additional assertion for retaining of correct number of results
getdave a787e9d
Ensure tests reflect target of Quick Inserter
getdave 45bd5ac
sort allowed blocks on the tests that consume getAllBlockInserterItem…
MaggieCabrera 01ad80a
Improve e2e test comment
getdave 784bffb
Update packages/block-editor/src/components/inner-blocks/use-nested-s…
scruffian 259a23d
Update packages/block-editor/src/components/inner-blocks/README.md
scruffian File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
update comment
- Loading branch information
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to document this somewhere else or is this enough?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's the official docs so I guess that's enough.