-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[RNMobile][Embed block] Enable embed preview for a list of providers #34446
[RNMobile][Embed block] Enable embed preview for a list of providers #34446
Conversation
Size Change: 0 B Total Size: 1.04 MB ℹ️ View Unchanged
|
…ed-block-enable-preview-by-providers
@@ -111,19 +111,16 @@ const EmbedPreview = ( { | |||
disabled={ ! isSelected } | |||
> | |||
<View> | |||
{ | |||
// eslint-disable-next-line no-undef | |||
__DEV__ && previewable ? ( |
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 inline preview feature is no longer limited to development mode so after this PR gets merged the feature will be available in production for the specified providers.
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.
Tested this with the provided links and works as expected. LGTM 👍
@@ -10,7 +10,7 @@ For each user feature we should also add a importance categorization label to i | |||
--> | |||
|
|||
## Unreleased | |||
|
|||
- [**] Enable embed inline previews (for now only YouTube and Twitter will be available) [#34447] |
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.
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.
Oh good catch 😅 , I merged the changes but I forgot to update this entry, I'll update it asap.
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 updated the changelog in this commit.
I'm a bit confused about why the job "Static Analysis (Linting, License, Type checks...)" is failing 🤔 , the error is unrelated to these changes so I'm wondering if it has to do with recent changes from Error:
|
gutenberg-mobile
PR: wordpress-mobile/gutenberg-mobile#3900Description
Add a static list of providers for which the embed inline preview will be available.
The providers that will enable the inline preview are:
NOTE: This PR also enables the inline previews feature to all users.
How has this been tested?
YouTube and Twitter providers display the inline preview
Other providers display the coming soon message
Screenshots
Types of changes
New feature
Checklist:
*.native.js
files for terms that need renaming or removal).