-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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] Use host app namespace in reusable block message #50478
Conversation
Size Change: 0 B Total Size: 1.39 MB ℹ️ View Unchanged
|
Flaky tests detected in 16700f376b2b81427d0741e48260a41aa6fd82e8. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4935054336
|
Edit: After initially not being able to test this PR correctly due to not having a Reusable tab in my app's Block Inserter, I switched branches to test #50475. On that branch I was able to follow all of that PR's testing steps correctly without any issues (including seeing the Reusable tab on the Block Inserter). I then returned to this branch, and was able to follow all of the testing steps correctly without issues as well. Leaving this info below of my initial experience just in case it helps in the future. Perhaps my initial experience was some sort of caching or watchman issue that resolved itself when switching branches, as I tested both branches using the same site and the same post without any configuration changes to the site or app settings. Original note: The logic of the code looks like it should switch the host app name correctly. 👍 However, I am unable to actually see the correct message in order to actually test. Instead, I see the message 'Reusable Block' is not fully-supported (shown in the screenshot below. Perhaps I am missing a configuration step, as I don't see the Reusable tab in the Block Inserter as indicated on this documentation page. Here are the steps I took:
The "'Reusable Block' is not fully-supported" message comes from the Missing Block screen, and not the block/edit.native.js screen that was updated in this PR, so it seems my site may not be configured to invoke the Reusable tab on the Block Inserter correctly. Do you note any testing or configuration steps I am missing? 🤔 |
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.
After resolving my initial issue of not being able to select Reusable blocks from the Block Inserter, I was able to follow all testing steps correctly. LGTM! 🚀
6d934bb
to
16700f3
Compare
16700f3
to
088b66d
Compare
Fixes wordpress-mobile/gutenberg-mobile#5722.
What?
Adds the host app namespace in the message displayed when trying to edit a reusable block.
Why?
The Gutenberg Mobile editor can be used on different host apps, hence we need to reference the proper app name in the message.
How?
Add the host app namespace fetched from editor settings into the message string.
Testing Instructions
Testing Instructions for Keyboard
N/A
Screenshots or screencast
N/A