Skip to content
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

Merged
merged 4 commits into from
Dec 12, 2023

Conversation

dcalhoun
Copy link
Member

@dcalhoun dcalhoun commented Nov 29, 2023

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

  1. Potential unintended areas of impact
    The bridge changes could cause the editor to fail to load.
  2. What I did to test those areas of impact (or what existing automated tests I relied on)
    Smoke tested the editor.
  3. What automated tests I added (or what prevented me from doing so)
    None. There is no existing test files for the bridge module. Historically,
    we focus tests on the JavaScript counterparts in Gutenberg.

PR Submission Checklist:

  • I have completed the Regression Notes.
  • I have considered adding accessibility improvements for my changes.
  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

UI Changes Testing Checklist:

  • Portrait and landscape orientations.
  • Light and dark modes.
  • Fonts: Larger, smaller and bold text.
  • High contrast.
  • Talkback.
  • Languages with large words or with letters/accents not frequently used in English.
  • Right-to-left languages. (Even if translation isn’t complete, formatting should still respect the right-to-left layout)
  • Large and small screen sizes. (Tablet and smaller phones)
  • Multi-tasking: Split screen and Pop-up view. (Android 10 or higher)

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Nov 29, 2023

WordPress📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress WordPress
FlavorJalapeno
Build TypeDebug
Versionpr19692-079d4a6
Commit079d4a6
Direct Downloadwordpress-prototype-build-pr19692-079d4a6.apk
Note: Google Login is not supported on these builds.

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Nov 29, 2023

Jetpack📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack Jetpack
FlavorJalapeno
Build TypeDebug
Versionpr19692-079d4a6
Commit079d4a6
Direct Downloadjetpack-prototype-build-pr19692-079d4a6.apk
Note: Google Login is not supported on these builds.

@dcalhoun dcalhoun marked this pull request as ready for review November 29, 2023 21:44
@dcalhoun dcalhoun requested a review from derekblank November 29, 2023 21:45
Copy link
Contributor

@derekblank derekblank left a 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). 🚀

Copy link
Contributor

@justtwago justtwago left a 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.
@dcalhoun dcalhoun force-pushed the feat/gutenberg-network-status branch from 622e3dd to 079d4a6 Compare December 12, 2023 02:14
@dcalhoun dcalhoun enabled auto-merge December 12, 2023 02:15
@wpmobilebot

This comment was marked as off-topic.

@dcalhoun dcalhoun merged commit e7e27a3 into trunk Dec 12, 2023
19 of 20 checks passed
@dcalhoun dcalhoun deleted the feat/gutenberg-network-status branch December 12, 2023 02:49
dcalhoun added a commit that referenced this pull request Jan 26, 2024
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.
dcalhoun added a commit that referenced this pull request Jan 26, 2024
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Gutenberg Editing and display of Gutenberg blocks.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants