-
Notifications
You must be signed in to change notification settings - Fork 4.6k
[RNMobile] Added layoutGridBlock enabling capabilities flag to mobile gutenberg bridge #31777
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
|
Size Change: 0 B Total Size: 1.62 MB ℹ️ View Unchanged
|
9d3fc14 to
d88d987
Compare
… gutenberg bridge
d88d987 to
eefd6c7
Compare
| case contactInfoBlock | ||
| case layoutGridBlock | ||
| case mediaFilesCollectionBlock |
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.
@mchowning @hypest I'd be curious to get your thoughts on these three capabilities (contactInfoBlock, mediaFilesCollectionBlock, and layoutGridBlock). This becomes a not so secretive passthrough for jetpack content. I wonder if we should make this more universal by changing this capability to something like additionalSupportedBlocks that contains an array of the block names the client wants to support.
audioBlock might be a good candidate to include in this as well. WDYT?
To be clear @enejb is following the established pattern here and incorporating my change suggestion would increase the scope of this PR so I'm happy to take that on under a different PR. I wanted to see if there was any existing context or if it's just the evolution of the architecture.
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 wonder if we should make this more universal by changing this capability to something like additionalSupportedBlocks that contains an array of the block names the client wants to support.
I agree. I think it's fine for this PR, but this is something we should fix.
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.
Agreed as well. I think it's easier to see this when you have enough occurrences that it starts to become a pattern. That's the right time to make an abstraction with the characteristics that are common to all 👍
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.
+1 to what the fine folks above be already said, for generalizing/abstracting the "block offerability" flags.
|
@chipsnyder Are there any changes required on this PR? |
|
I think we're agreed that the approach looks fine for this PR. I'll spin up a separate task to handle the changes that were discussed. I see this is still in draft, so I'm unsure if you have more testing or planned changes. |
hypest
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.
Took a look at the Android side changes and look good to me. That said, I see that @antonis was probably reviewing the WPAndroid PR so, I think it makes sense to check this one out in combination. @antonis wdyt?
antonis
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.
Great work @enejb 👍
The code additions LGTM and follow the established pattern 🎉
As noted we may need to change this but this would be a separate PR.
chipsnyder
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.
This piece looks good from my side as well. But Echoing what Antonis mentioned this shouldn't be merged until wordpress-mobile/gutenberg-mobile#3513 is ready to go as well.
|
Is this PR still something we want to merge, or should we close it? |
@mchowning I'll close this since the changes on this PR are already merged with #32495. @enejb Please reopen if there is something more on this 🙇 |
Description
Update the mobile bridge to add the layoutGridBlock capability flag.
Similarly to #28293
Related PR wordpress-mobile/gutenberg-mobile#3513.
Types of changes
Adding a new capability flag that lets the mobile app Gutenberg editor know when the layout grid block is present on the site.
Checklist:
*.native.jsfiles for terms that need renaming or removal).