-
Notifications
You must be signed in to change notification settings - Fork 834
Introduce Jetpack Newsletter in the recommendations flow #31940
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
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 (other than "Required review") appearing at the bottom of this PR are passing or skipped. Jetpack plugin:
|
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
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.
Tests well for me. I only have one remark.
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.
We'll also need to update our e2e tests:
jetpack/projects/plugins/jetpack/tests/e2e/specs/post-connection/recommendations.test.js
Lines 62 to 72 in 21485d1
await test.step( 'Enable Related Posts and continue to Creative Mail step', async () => { | |
await recommendationsPage.enableRelatedPostsAndContinue(); | |
await recommendationsPage.reload(); | |
await recommendationsPage.waitForNetworkIdle(); | |
const isCreativeMailStep = await recommendationsPage.isInstallCreativeMailButtonVisible(); | |
expect( isCreativeMailStep, 'Creative Mail step should ne visible' ).toBeTruthy(); | |
expect( | |
recommendationsPage.isUrlInSyncWithStepName( 'creative-mail' ), | |
'URL should be in sync with the step name' | |
).toBeTruthy(); | |
} ); |
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.
Other than what Jeremy already mentioned, I only noticed one minor thing: "Subscriptions" hasn't been renamed to "Newsletter" yet. This is where it needs update.

Ah, I'd replaced it here |
That file isn't checked in, you shouldn't edit it directly. If you wanted to rename the feature everywhere, and not just in the React dashboard, you would change the module name here:
|
I'll change it in the correct place. Hadn't noticed it not being checked in :) |
Ahhh - tests! I'll try and get my head around these today! |
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.
Let's merge this and iterate on the links in a follow-up PR 🚢
Proposed changes:
This PR adds a new
/recommendation/#newsletter
path for the RecommendationsIt also renames Subscriptions => Newsletter in the settings page
Jetpack product discussion
Does this pull request change what data or activity we track or use?
My PR adds x and y.
Testing instructions
wp-admin/admin.php?page=jetpack#/recommendations/newsletter
it should show the status of the feature.Copy is (and design image) still to be finalised - do not merge until later.