-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Block Directory: Add list of installed blocks to pre-publish sidebar #22752
Conversation
Size Change: +480 B (0%) Total Size: 1.11 MB
ℹ️ View Unchanged
|
Nice! Good call pulling these changes out into a new branch. Personally, i'm not certain I understand the risk of not having a persistence mechanism in place. I'm tempted to say that it provides value as is but it may make sense to get more input for others before merge. Code wise 👍. |
There's no risk here, now— but it's tied into how the uninstalling unused blocks process will work. This is just to get some UI in place so it's easier to iterate on later. |
Yep. I'm good with merging it. |
Description
Pulls out some code from #22452, to display the list of installed blocks in the pre-publish sidebar. This only shows blocks that have been installed in this editing session, regardless of whether they're still in use — determining unused blocks & uninstallation is another issue (#22307). The intent here is to get the UI in place.
How has this been tested?
Search for and install some blocks on an unpublished post, then click publish. There should now be a panel at the bottom showing the blocks you've added. This is only pulling from the installed blocks state, so if you reload the page, you won't see any previously-installed blocks. Persisting installed blocks might be handled with the new block type API, see #22307.
Screenshots
Types of changes
New feature (non-breaking change which adds functionality)
Checklist: