-
Notifications
You must be signed in to change notification settings - Fork 800
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
My Jetpack: add connection errors to Global Notice #36840
Conversation
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Once your PR is ready for review, check one last time that all required checks appearing at the bottom of this PR are passing or skipped. Jetpack plugin: The Jetpack plugin has different release cadences depending on the platform:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Backup plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Boost plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Search plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Social plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Starter Plugin plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Protect plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Videopress plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Migration plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
55d87af
to
05ba853
Compare
28f93b7
to
7a98606
Compare
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.
Not entirely sure changes are needed, but we have the bad installation message, welcome banner, and connection issues all showing a red bubble notification when the notices are visible. Should we have a red bubble notification here too?
@@ -1,4 +1,4 @@ | |||
import { createContext, useState } from 'react'; | |||
import { createContext, useCallback, useState } from 'react'; |
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.
Nice improvements here, thank you!
|
||
const onCtaClick = () => { | ||
restoreConnection(); | ||
recordEvent( 'jetpack_my_jetpack_connection_error_notice_reconnect_cta_click' ); |
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.
Should we also have a tracks event for this notice being visible? That way we could track percentage clicked 🤔
7a98606
to
c073ca4
Compare
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.
Everything tests as expected, thank you for adding those tracks events for the viewing of the notices!
I had a conversation with @jboland88 (since you were out) about the integration of the red bubbles. The summary of that conversation is that we should create a follow-up task to integrate these connection errors with the red bubble notification since all the others are, but this is good to ship since there is already an existing notice associated with these errors that also does not show a red bubble notification. So looking at the code, this all looks good to me and is definitely an improvement over what came before 😄
c073ca4
to
4e01108
Compare
See linked issue
Proposed changes:
<ConnectionError>
(from@automattic/jetpack-connection
) from My Jetpack. It adds a new hook touse-notification-watcher
that consumes the data from thejetpack-connection
library and displays it as a Global Notice.Other information:
Jetpack product discussion
pbNhbs-ag3-p2
Does this pull request change what data or activity we track or use?
Yes, it adds a new event to the "Reconnect Jetpack" button.
Testing instructions: