Notes: Render the sidebar next to the default editor sidebar#72618
Notes: Render the sidebar next to the default editor sidebar#72618
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. |
| export default function NotesSidebarContainer() { | ||
| const postId = useSelect( ( select ) => { | ||
| const { getCurrentPostId } = select( editorStore ); | ||
| return getCurrentPostId(); | ||
| }, [] ); | ||
|
|
||
| if ( ! postId || typeof postId !== 'number' ) { | ||
| return null; | ||
| } | ||
|
|
||
| return ( | ||
| <PostTypeSupportCheck supportKeys="editor.notes"> | ||
| <NotesSidebar postId={ postId } /> | ||
| </PostTypeSupportCheck> | ||
| ); | ||
| } |
There was a problem hiding this comment.
Collocates all rendering conditions in a single container component.
|
Size Change: -62 B (0%) Total Size: 2.19 MB
ℹ️ View Unchanged
|
|
Flaky tests detected in bcf39f8. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/18742212296
|
t-hamano
left a comment
There was a problem hiding this comment.
LGTM! It works correctly as before.
|
Thanks for the review, @t-hamano! |
Co-authored-by: Mamaduka <[email protected]> Co-authored-by: t-hamano <[email protected]>
|
I just cherry-picked this PR to the wp/6.9 branch to get it included in the next release: de3110d |
What?
As a preparation for #72616, PR moves the Notes sidebar's rendering position. It's now rendered inside the Editor component, next to the default
Sidebar.I've also renamed some of the internal components. I'm not changing the filenames to avoid conflicts when backporting the changes.
Testing Instructions
PR makes no functional changes; all CI checks should be green.
Testing Instructions for Keyboard
Same.