Editor: Restore Document Overview after closing Inserter#78586
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 Unlinked AccountsThe following contributors have not linked their GitHub and WordPress.org accounts: @porg. Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases. 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 #53078
This PR restores the Document Overview sidebar after the Block Inserter is closed, when Document Overview was open before the Inserter was opened.
Why?
Previously, opening the Inserter from an open Document Overview cleared the List View state. When the Inserter was closed, the entire left sidebar disappeared, causing layout shift and forcing users to reopen Document Overview manually.
How?
isListViewOpened()so it only reportstruewhen the List View is actually visible.Testing Instructions
xbutton.Also verify:
Screenshots or Screencast
Before Fix :
TreePane.open.-.InserterPane.opened.closed.-.TreePane.gone.-.User.disoriented.mp4
After Fix :
after-fix.mov
Use of AI Tools
Initial technical analysis and PR documentation for this fix were drafted with the assistance of AI tools.