-
Notifications
You must be signed in to change notification settings - Fork 1.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
feat: Provide Gutenberg editor network connection status #19692
Conversation
📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
|
📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
|
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 was able to test successfully via WordPress/gutenberg#56609 (review). 🚀
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.
Smoke tested on Google Pixel 7 Pro and the editor worked as usual. The only difference I found included the Connected:
label, dark editor background, and Initial state is missing
error as on the screenshot below.
I assume that this is the debug version-specific changes so approving the PR. If you see that this is not exactly what should be visible on the screen, please let me know.
The code LGTM too! 👍
Enable the block editor to request and respond to changes to the network connection status within the host app.
Enable the editor to request the current status for initial render.
622e3dd
to
079d4a6
Compare
This comment was marked as off-topic.
This comment was marked as off-topic.
A network connectivity subscriber was added to the post activity in: #19692 However, it was not scoped to only run in the Gutenberg editor. Because no guard was in place, the subscriber attempted to invoke a non-existent method on the Aztec editor, resulting in a crash.
A network connectivity subscriber was added to the post activity in: #19692 However, it was not scoped to only run in the Gutenberg editor. Because no guard was in place, the subscriber attempted to invoke a non-existent method on the Aztec editor, resulting in a crash.
Related
Description
Enable the block editor to request and respond to changes to the network
connection status within the host app.
To test: Smoke test the editor, verify it does not crash.
Regression Notes
The bridge changes could cause the editor to fail to load.
Smoke tested the editor.
None. There is no existing test files for the bridge module. Historically,
we focus tests on the JavaScript counterparts in Gutenberg.
PR Submission Checklist:
RELEASE-NOTES.txt
if necessary.UI Changes Testing Checklist: