-
Notifications
You must be signed in to change notification settings - Fork 799
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
Newsletter settings: add toggle for showing a subscribe modal after commenting #37699
base: trunk
Are you sure you want to change the base?
Conversation
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. |
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
Removed couple "is Atomic" checks and added template edit/preview link. |
Looks like this fixed it for saving the setting at least. |
'jetpack_verbum_subscription_modal' => array( | ||
'description' => esc_html__( 'Show subscription pop-up after commenting on a post', 'jetpack' ), | ||
'type' => 'boolean', | ||
'default' => 0, |
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.
In get_option
the default value seems to be true, so need to check how this works.
Edit: we should enable it by default here, too. Then the logic is just if the "Jetpack commenting" is enabled or not.
Edit: changed to 1
in 5b20095
fc81b26
to
1cc4998
Compare
@@ -711,17 +711,10 @@ public function add_comment_meta( $comment_id ) { | |||
* @return boolean | |||
*/ | |||
public function should_show_subscription_modal() { | |||
|
|||
// Not allow it to run on self-hosted or simple sites |
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.
Regardless of the comment, this was disabled only at Jetpack sites.
The code reads "IF NOT simple or atomic site, OR NOT simple site, don't enable modal".
@lupus2k, I'm a bit confused by Line 151 in 2cbe96b
|
We have more detailed track events in the P2 here: pb5gDS-3tB-p2 As Jetpack uses |
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.
Thanks for adding this!
LGTM
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!
2cbe96b
to
cf016e8
Compare
The value might be misleading (due "atomic") but it serves simple, jetpack and atomic sites. There are dashboards created for the modal so it doesn't make sense to change this by platform.
@heavyweight I was looking into this again and this time I'm seeing an issue in incognito Chrome & Safari.
Do you know if that's the same problem you fixed elsewhere earlier? |
cf016e8
to
69b796c
Compare
It's hard to tell. |
This PR has been marked as stale. This happened because:
If this PR is still useful, please do a [trunk merge or rebase](https://github.com/Automattic/jetpack/blob/trunk/docs/git-workflow.md#keeping-your-branch-up-to-date) and otherwise make sure it's up to date and has clear testing instructions. You may also want to ping possible reviewers in case they've forgotten about it. Please close this PR if you think it's not valid anymore — if you do, please add a brief explanation. If the PR is not updated (or at least commented on) in another month, it will be automatically closed. |
Adds a missing toggle to Jetpack settings.
The toggle and feature is already available on WP.com sites and Calypso settings. The Dotcom team implementing this originally just didn't get to add the Jetpack side (convo), so this is a follow up to that.
Calypso newsletter settings:
Jetpack newsletter settings:
After filling commenting field and submitting a comment:
You will see a modal pop-up prefilled with the email you used for commenting:
Proposed changes:
Other information:
Jetpack product discussion
Does this pull request change what data or activity we track or use?
Testing instructions: