-
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
Fix List View not updating when switching editor modes #67379
Conversation
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. |
Size Change: +12 B (0%) Total Size: 1.83 MB
ℹ️ View Unchanged
|
Flaky tests detected in 05081d0. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12066111233
|
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.
Appreciate the quick turnaround on the fix @talldan 🚀
This is testing as advertised. Bonus points on the added e2e as well 👍
Design Mode | Write (Trunk) | Write (This PR) |
---|---|---|
LGTM 🚢
* Add back the editorTool dependency to getEnabledClientIdsTree * Add e2e test * Switch to getEditorMode selector ---- Co-authored-by: talldan <[email protected]> Co-authored-by: aaronrobertshaw <[email protected]>
* Add back the editorTool dependency to getEnabledClientIdsTree * Add e2e test * Switch to getEditorMode selector ---- Co-authored-by: talldan <[email protected]> Co-authored-by: aaronrobertshaw <[email protected]>
What?
Fixes a small bug I reintroduced in #67026.
When switching block editor modes, the List View doesn't update to shown the blocks that can be interacted with.
How?
#67026 removed some dependencies of the selector, but some changes were made that meant the
select( STORE_NAME ).__unstableGetEditorMode( state )
dependency needed to be added back.This PR resolves the issue.
Testing Instructions
As this bug has happened before, I've added an e2e test to prevent further regressions.
In trunk: It doesn't change which is a bug
In this PR: It updates to show which blocks can be interacted with
Screenshots or screencast
Kapture.2024-11-28.at.16.54.35.mp4