-
Notifications
You must be signed in to change notification settings - Fork 58
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
Initial support for VideoPress v5 #6634
Conversation
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.
Approved via WordPress/gutenberg#59144 (review) (and awaiting feedback from Automattic/jetpack#35637)
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 🎊 !
I noticed we generated duplicated localization strings. This is expected because those strings are associated with the Jetpack plugin (i.e. a different GlotPress project). However, it would be interesting to review them in case we can use the translation already included in the web version (Automattic/jetpack#35637 (comment)).
export function enableVideoPressV5Support( { capabilities } ) { | ||
if ( ! isActive() || ! capabilities.videoPressV5Support ) { | ||
return; | ||
} | ||
|
||
require( '../jetpack/projects/plugins/jetpack/extensions/blocks/videopress/editor' ); | ||
} |
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.
As a side note, it would be great if we could cover this logic in a test case here.
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 agree, I'll add this to my list to follow up on next week.
@@ -160,6 +161,7 @@ | |||
<string name="gutenberg_native_edit_media" tools:ignore="UnusedResources">Edit media</string> | |||
<string name="gutenberg_native_edit_using_web_editor" tools:ignore="UnusedResources">Edit using web editor</string> | |||
<string name="gutenberg_native_edit_video" tools:ignore="UnusedResources">Edit video</string> | |||
<string name="gutenberg_native_edit_video_024aee6d" tools:ignore="UnusedResources">Edit video</string> |
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.
The following strings are duplicated on Android, however, they are not on iOS. Seems that form some reason, the i18n update scripts are identifying these strings as new. I'd like to explore this further but in the meantime, I wouldn't block the PR due to this.
Edit video
Video caption. Empty
Video caption. %s
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.
One option I'm considering is that since they are associated with the Jetpack plugin, they should be considered different from the ones provided in Gutenberg. However, I noticed that something similar is happening on the Jetpack VideoPress plugin (example) and they weren't marked as new 🤔.
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.
Thank you for flagging this, Carlos. I'm going to go ahead to begin the merge domino for this PR, and it's associated changes as you mentioned this is non-blocking. But, will be happy to help look further into this specific issue with you next week.
Related PRs
Gutenberg
: RNMobile: Add new Video block capability WordPress/gutenberg#59144Jetpack
: [RNMobile] Initial support for VideoPress v5 Automattic/jetpack#35637Android
: Initial support for VideoPress v5 WordPress-Android#20181iOS
: Initial support for VideoPress v5 WordPress-iOS#22602Testing
Please refer to the Jetpack PR as the central place for these changes, with the most up-to-date testing instructions.
PR submission checklist: