Disable Unsupported block editor for Reusable blocks#3067
Conversation
|
@fluiddot should this "address" instead of "fix" #3061? The issue's expected behavior is:
And from my understanding here, this PR disables the UBE in this scenario to avoid a broken experience but doesn't address fixing the UBE for reusable blocks. |
Yeah, makes more sense to use |
|
Wanna run full suite of Android and iOS UI tests? Click here and 'Approve' CI job! |
guarani
left a comment
There was a problem hiding this comment.
Reusable block (dev mode only)
✅ This worked great, I saw the "Reusable block aren't supported message as expected.
Missing block - UBE supported block
![]() |
Missing block - UBE unsupported block
❌ This scenario is to ensure that the UBE is disabled on release builds. In Xcode, I switched the current "WordPress" scheme (Edit Scheme > Run > Info tab > Build Configuration) to Release and re-ran the app. As expected, the editor rendered my reusable block as an unsupported block, but I was able to open the UBE on it:
![]() |
I bumped into this multiple times, actually it happens in every webview that connects to WP.com, like for example when viewing a post. I checked with other devs and looks like it's known issue and only happens in development. This reminded me that I should have opened an issue regarding this (here is the issue).
I think for testing the bundle in release mode it requires more steps sorry. Actually I think it's not really needed to change the scheme of the Xcode project since the only thing we need is to have is the RN bundle in production mode. The extra steps are:
Another option would be to create a couple of test branches in both |
5437348 to
64ebb69
Compare
There was a problem hiding this comment.
Thanks for the response @fluiddot! I'd missed how Release mode in Xcode wouldn't mean release mode for the running packager 😅. Tested again using the latest commit 64ebb69 using both platforms and all good!
Reusable block (dev mode only)
✅ Works great.
Missing block - UBE supported block
✅ Works great (fwiw I couldn't reproduce the issue I saw previously where I got the log in screen).
I bumped into this multiple times, actually it happens in every webview that connects to WP.com, like for example when viewing a post. I checked with other devs and looks like it's known issue and only happens in development.
I've seen this problem on WPiOS with View Post and View Site web views (wordpress-mobile/WordPress-iOS#15389 and wordpress-mobile/WordPress-iOS#15342 come to mind), but I'm not sure yet if this case here with the UBE is the same issue or different. I'll check out your new issue after this and see if there's anything I can add there.
I forgot to mention that when I ran into the login screen, I downloaded the WPiOS App Store version 16.5 and couldn't reproduce the issue there, which made me think it was an issue related to this PR or something that had recently landed on the develop branch.
Missing block - UBE unsupported block
I think for testing the bundle in release mode it requires more steps sorry. Actually I think it's not really needed to change the scheme of the Xcode project since the only thing we need is to have is the RN bundle in production mode.
Thanks! Makes sense, I'd forgotten about that.
✅ Works great, I got the 'Reusable Block' is not fully-supported message.
Just a thought here (definitely not a blocker). For unsupported blocks that the UBE can handle, we also use the same "not fully-supported" messaging. It might make it clearer to users if we use different wording here such as 'Reusable Block' is not yet supported. Otherwise it looks very similar to the other bottom sheet, just minus the option to edit with the UBE.
As far as I investigated I think it's quite related because the cause is not being authenticated in WP.com. When I investigated further this issue some weeks ago, I spotted that when the webviews try to authenticate in WP.com, it's responding with empty cookies and the error message:
Yeah I'm not sure when this started but looks like it's only happening in development, I couldn't manage to reproduce it in release versions.
Good point! I doubted about changing the message to be honest because as you comment, it might look not clearer enough compared to the message we present for the other blocks. I'll review it and create an issue for changing the text in next versions, thanks! |
|
Reference updated to |


Addresses #3061
gutenbergPR: WordPress/gutenberg#28552To test:
Since these changes are related to unsupported blocks, it requires a quick setup to be done in the web version editor:
jetpack/gif).The following flows have been used for testing these changes:
Reusable block (dev mode only)
This has to be tested in development mode.
Steps
Missing block - UBE supported block
Steps
Missing block - UBE unsupported block
This has to be tested in release mode or by disabling the Reusable block from the block list in
block-librarypackage.Steps
PR submission checklist: