-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[Gutenberg] Audio block capability now enables/disables media upload's media sources #16533
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
You can trigger optional UI/connected tests for these changes by visiting CircleCI here. |
| .unsupportedBlockEditor: isUnsupportedBlockEditorEnabled, | ||
| .canEnableUnsupportedBlockEditor: post.blog.jetpack?.isConnected ?? false, | ||
| .audioBlock: !isFreeWPCom, // Disable audio block until it's usable on free sites via "Insert from URL" capability | ||
| .audioBlock: !isFreeWPCom, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Related to this comment, what do you think about renaming the capability?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done here 2d20967
|
This PR will be updated once wordpress-mobile/gutenberg-mobile#3548 is merged in so a final |
@jd-alexander Heads up that the PR is already merged 🎊 . |
fluiddot
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested on iPhone 11 (iOS 14.2) and works nice 🎊 !
Once the Gutenberg PR is approved I'll do a second run and approve it.
After further testing, I've spotted an error when uploading an audio file via the "Other Apps" option, here is the comment on GB-mobile with all the details. |
|
We're cutting |
|
Looks like CircleCI didn't post the comment referencing the installable builds so here it goes. Latest installable build: |
fluiddot
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🎊 !
Approved via WordPress/gutenberg#31966 (review).
# Conflicts: # Podfile # Podfile.lock
Fixes wordpress-mobile/gutenberg-mobile#3523
WordPress Androidwordpress-mobile/WordPress-Android#14680Gutenberg Mobilewordpress-mobile/gutenberg-mobile#3523GutenbergWordPress/gutenberg#31966Description
This PR checks to see if the user's site is on a free, paid or self hosted plan and as such, the relevant media upload options are shown.
Testing
WP.com sites
Note:
Support for Audio block audio uploads, and access to the media library is restricted to sites that are on a paid plan.
Free Plan
Insert from URLoption is available as users aren't able to upload audio on free plans.Paid plan
Self hosted sites
Regression Notes
The blocks Cover, File, Gallery, Video, Media & Text all utilise the
media-uploadcomponent that was modified. Verify that these blocks function as expected and all the relevant options are still shown for them in both paid and free plans.What I did to test those areas of impact (or what existing automated tests I relied on)
There are existing tests that are doing uploads via the WP media library and the file system so if there was an issue with the implementation those tests would fail.
What automated tests I added (or what prevented me from doing so)
N/A
RELEASE-NOTES.txtif necessary.