Repository navigation
feat(admin): bring the editor sidebar to Quick Edit (NEWS-3646) - #347
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Self-review summary: three rounds on this branch before handoff. Accepted:
Deferred (not blocking)
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Self-review summary: three more rounds since the last summary, covering the speed, title click, header and spacing changes. Accepted:
Declined:
Deferred (not blocking)
|
|
Hey @leogermani, this brings the editor sidebar back into Quick Edit as you asked in NEWS-3646. Could you check it matches what you had in mind? The parts I'd most like your eye on:
|
leogermani
left a comment
There was a problem hiding this comment.
Approving with questions:
It works as described. CoAuthors Plus selector also shows up.
Categories and Tags don't show up. I guess it's on purpose?
Looking at the code, it seems that we are recreating some panels and not simply loading the core panels, is that right? At least for the Status row and actions menu..
I guess that can be a good trade off, to keep it slim and really "quick"
Let's try it
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Self-review summary: three more rounds since the last summary, covering Categories and Tags in Quick Edit. Accepted:
Declined:
|
|
Thanks @leogermani. I've added Categories and Tags. Core's Categories and Tags panels now sit in the Entry tab, below Authors. They start collapsed and only load terms once opened, so Quick Edit still opens in about a second. Reassign still edits them from the list, for one entry or several. On the panels, partly. Publish, Author, Categories, Tags and the Co-Authors Plus panel are all core's. Two parts are our own because core doesn't export them:
Agreed on the trade-off. It keeps Quick Edit slim. |
|
Hey @thomasguillot, good job getting this PR merged! 🎉 Now, the Please check if this PR needs to be included in the "Upcoming Changes" and "Release Notes" doc. If it doesn't, simply remove the label. If it does, please add an entry to our shared document, with screenshots and testing instructions if applicable, then remove the label. Thank you! ❤️ |
|
@thomasguillot & @leogermani Thank you both for the speed and functionality improvements here! This looks pretty good and I'm glad the right sidebar's panels are not the full set (but have room to expand). |
NEWS-3646 asks to bring back the editor sidebar from #164 in Quick Edit, so an entry can be fixed and published without leaving the list. This replaces the compact layout from #183 for entries. The Summary keeps that compact layout on purpose.
What changes
Quick Edit on an entry now opens a full-screen editor with the sidebar, using the editor's own header controls.
With this change:
Closes NEWS-3646.
Screenshots
Classic theme
Block theme
How to test
Technical details
QuickEditEditorLayoutfor entries andQuickEditCommentLayoutfor the Summary. The shared shell stays inquick-edit-modal.tsx.PostSavedStateandPostPublishButtoninside the EditorProvider sub-registry. Entries locked by archiving get a plain Save button as a fallback.PostTaxonomiesPanel. They always start collapsed. A collapsed panel fetches no terms, so they add nothing to opening Quick Edit. The taxonomy list they need is preloaded with the rest of the editor data.Admin::preload_editor_data()now preloads them the wayedit-form-blocks.phpdoes for the post editor, and the create route returns the new draft so Add Entry skips a second request. One preloading middleware is registered once and serves each new entry. Measured cold opens: 4.1 s to about 1.0 s for an existing entry, 4.6 s to about 1.0 s for Add Entry.core/editor/savebut does not register the shortcut.supportsLayoutreturnswp_theme_has_theme_json(), so only block themes get the theme's content width.inert. Focus is restored once that clears.src/admin/DEVELOPMENT.md, the coverage-follow README and DEVELOPMENT, the docs site add-entries and push-notifications pages, and a retaken Add Entry screenshot.tsc, Stylelint, Jest (219 tests), PHPUnit (1558 tests), PHPCS.