Media Library: Add Dataviews media library in Site Editor#78972
Media Library: Add Dataviews media library in Site Editor#78972Vrishabhsk wants to merge 1 commit into
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 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?
gutenberg-dataviews-media-libraryexperiment. Includes a 3-panel layout with a filtered sidebar, DataViews table, and a right inspector panel for media details.Why?
The existing Media Library (upload.php) is a standalone admin screen. This brings media management into the Site Editor using the DataViews component, consistent with how Pages, Templates, and Patterns are already handled.
How?
gutenberg-dataviews-media-libraryexperiment flag with PHP bridge towindow.__experimentalDataViewsMediaLibrary/media): Registered in the classic Site Editor router (@wordpress/router) withsidebar/content/previewareas, plus v2 extensible site editor menu item and route<DataViews>with columns for title+thumbnail, author, attached to, comments, and date. Supports table/grid/list layouts, search, sorting, pagination, bulk selection, and download/trash actionsfields/src/actions/trash-post.tsxnow passesforce: truefor attachments, which require it to deleteTesting Instructions
Preview
Use of AI Tools
This PR was implemented using the
deepseek-v4-flash:cloudmodel (provided by Ollama) via the opencode agent framework. The PR description was also written by the AI. All code was reviewed and validated before submission.