Add/client side media uploads#70623
Closed
adamsilverstein wants to merge 156 commits into
Closed
Conversation
adamsilverstein
commented
Jul 5, 2025
also: - complete mime removal, inlining code where it is used or as a local helper function - complete removal of approval requirement feature - add back pause action and resume action their absence was causing test failures. They seem useful to include although I don’t think they are strictly required for this PR - ensure testing uses images not videos for urls (is video technically supported already?) - make expects declarations more narrow and explicit in `optimizeExistingItem` test - complete timings removal (was still in reducer test)
Member
Author
I started a try on this in adamsilverstein#25 |
Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: mikachan <mikachan@git.wordpress.org>
) * Experimental: Enable Command Palette in admin dashboard * Update lib/experimental/commands.php Co-authored-by: Shail Mehta <shailmehta25@gmail.com> * Remove experimental setting * Update docs --------- Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: youknowriad <youknowriad@git.wordpress.org> Co-authored-by: shail-mehta <shailu25@git.wordpress.org> Co-authored-by: mtias <matveb@git.wordpress.org>
…theming support (WordPress#71248) * DateCalendar, DateRangeCalendar: switch from rem to px for some internal sizes * CHANGELOG * Use variables when possible * Use theme-aware variables
…1212) Co-authored-by: mikejolley <mikejolley@git.wordpress.org> Co-authored-by: jameskoster <jameskoster@git.wordpress.org> Co-authored-by: oandregal <oandregal@git.wordpress.org>
* MenuItem: make accessible when disabled * CHANGELOG * Update tests to account for different way to disable menu item
* Fix: Guard drag-and-drop against missing block DOM nodes * Fix: Ensure Post Comments Link always renders block wrapper ---- Co-authored-by: karthikeya-io <karthikeya01@git.wordpress.org> Co-authored-by: talldan <talldanwp@git.wordpress.org> Co-authored-by: tellthemachines <isabel_brison@git.wordpress.org>
Co-authored-by: im3dabasia <im3dabasia1@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: fluiddot <carlosgprim@git.wordpress.org> Co-authored-by: gturpin-dev <guillaumeturpin@git.wordpress.org>
* Fix typo in comments.js * Remove period from `more replies..` Co-authored-by: mrleemon <leemon@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: jasmussen <joen@git.wordpress.org> Co-authored-by: akasunil <sunil25393@git.wordpress.org> Co-authored-by: ramonjd <ramonopoly@git.wordpress.org>
* Rename Accordions to Accordion * Rename accordion-item * Update block descriptions * Tweak block descriptions Co-authored-by: mikachan <mikachan@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: alexandrebuffet <alexandrebuffet@git.wordpress.org> Co-authored-by: hanneslsm <hanneslsm@git.wordpress.org> Co-authored-by: jasmussen <joen@git.wordpress.org>
Co-authored-by: oandregal <oandregal@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org> Co-authored-by: bph <bph@git.wordpress.org>
Co-authored-by: USERSATOSHI <tusharbharti@git.wordpress.org> Co-authored-by: karthick-murugan <karthickmurugan@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: jordesign <jordesign@git.wordpress.org>
…s#71274) * Fix DataViews actions horizontal layout consistency * Update changelog with this fix
- @wordpress/a11y@4.29.0 - @wordpress/annotations@3.29.0 - @wordpress/api-fetch@7.29.0 - @wordpress/autop@4.29.0 - @wordpress/babel-plugin-import-jsx-pragma@5.29.0 - @wordpress/babel-plugin-makepot@6.29.0 - @wordpress/babel-preset-default@8.29.0 - @wordpress/base-styles@6.5.0 - @wordpress/blob@4.29.0 - @wordpress/block-directory@5.29.0 - @wordpress/block-editor@15.2.0 - @wordpress/block-library@9.29.0 - @wordpress/block-serialization-default-parser@5.29.0 - @wordpress/block-serialization-spec-parser@5.29.0 - @wordpress/blocks@15.2.0 - @wordpress/browserslist-config@6.29.0 - @wordpress/commands@1.29.0 - @wordpress/components@30.2.0 - @wordpress/compose@7.29.0 - @wordpress/core-commands@1.29.0 - @wordpress/core-data@7.29.0 - @wordpress/create-block@4.72.0 - @wordpress/create-block-interactive-template@2.29.0 - @wordpress/create-block-tutorial-template@4.29.0 - @wordpress/customize-widgets@5.29.0 - @wordpress/data@10.29.0 - @wordpress/data-controls@4.29.0 - @wordpress/dataviews@7.0.0 - @wordpress/date@5.29.0 - @wordpress/dependency-extraction-webpack-plugin@6.29.0 - @wordpress/deprecated@4.29.0 - @wordpress/docgen@2.29.0 - @wordpress/dom@4.29.0 - @wordpress/dom-ready@4.29.0 - @wordpress/e2e-test-utils@11.29.0 - @wordpress/e2e-test-utils-playwright@1.29.0 - @wordpress/e2e-tests@8.29.0 - @wordpress/edit-post@8.29.0 - @wordpress/edit-site@6.29.0 - @wordpress/edit-widgets@6.29.0 - @wordpress/editor@14.29.0 - @wordpress/element@6.29.0 - @wordpress/env@10.29.0 - @wordpress/escape-html@3.29.0 - @wordpress/eslint-plugin@22.15.0 - @wordpress/fields@0.21.0 - @wordpress/format-library@5.29.0 - @wordpress/hooks@4.29.0 - @wordpress/html-entities@4.29.0 - @wordpress/i18n@6.2.0 - @wordpress/icons@10.29.0 - @wordpress/interactivity@6.29.0 - @wordpress/interactivity-router@2.29.0 - @wordpress/interface@9.14.0 - @wordpress/is-shallow-equal@5.29.0 - @wordpress/jest-console@8.29.0 - @wordpress/jest-preset-default@12.29.0 - @wordpress/jest-puppeteer-axe@7.29.0 - @wordpress/keyboard-shortcuts@5.29.0 - @wordpress/keycodes@4.29.0 - @wordpress/lazy-import@2.29.0 - @wordpress/list-reusable-blocks@5.29.0 - @wordpress/media-utils@5.29.0 - @wordpress/notices@5.29.0 - @wordpress/npm-package-json-lint-config@5.29.0 - @wordpress/nux@9.29.0 - @wordpress/patterns@2.29.0 - @wordpress/plugins@7.29.0 - @wordpress/postcss-plugins-preset@5.29.0 - @wordpress/postcss-themes@6.29.0 - @wordpress/preferences@4.29.0 - @wordpress/preferences-persistence@2.29.0 - @wordpress/prettier-config@4.29.0 - @wordpress/primitives@4.29.0 - @wordpress/priority-queue@3.29.0 - @wordpress/private-apis@1.29.0 - @wordpress/project-management-automation@2.29.0 - @wordpress/react-i18n@4.29.0 - @wordpress/readable-js-assets-webpack-plugin@3.29.0 - @wordpress/redux-routine@5.29.0 - @wordpress/reusable-blocks@5.29.0 - @wordpress/rich-text@7.29.0 - @wordpress/router@1.29.0 - @wordpress/scripts@30.22.0 - @wordpress/server-side-render@6.5.0 - @wordpress/shortcode@4.29.0 - @wordpress/style-engine@2.29.0 - @wordpress/stylelint-config@23.21.0 - @wordpress/sync@1.29.0 - @wordpress/token-list@3.29.0 - @wordpress/undo-manager@1.29.0 - @wordpress/upload-media@0.14.0 - @wordpress/url@4.29.0 - @wordpress/viewport@6.29.0 - @wordpress/warning@3.29.0 - @wordpress/widgets@4.29.0 - @wordpress/wordcount@4.29.0
Member
Author
|
I'm going to rework this into smaller steps that can be more easily reviewed. I'll use the more developed code in the media experiments plugin this time. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What?
Follow up to #64278, this PR aims to provide only the minimal changes required to move media processing (eg. sub-sized image generation when users upload images) to the client from the server.
See #61447 for full context.
Follow up tasks to align with core
All of these features are already handled in the media-experiments plugins and only need to be ported/polished for Gutenberg.
image_editor_output_formatfilter)Also, this will work out of the box and be a great addition:
Why?
#64278 was no longer building correctly and has many conflicting files in trunk. Reviewers mentioned several times reducing the scope of the PR to to reduce review effort.
How?
This PR starts with #64278, brings it current with trunk and removes changes unrelated to initial task: "Client-side sub-size image generation". Files changed are reduced to 116 to 52, although some additional changes may be required. It removes the
@wordpress/mimepackage as requested and doesn't make changes to the image block.Testing Instructions
Todo
@shopify/web-workerDependency in@wordpress/upload-media#69254)