Skip to content

Conversation

mikestottuk
Copy link
Contributor

@mikestottuk mikestottuk commented Jul 18, 2023

Proposed changes:

This PR adds a new /recommendation/#newsletter path for the Recommendations

Screenshot 2023-07-18 at 14 55 37

It also renames Subscriptions => Newsletter in the settings page

Screenshot 2023-07-18 at 14 23 26

Jetpack product discussion

  • N/A

Does this pull request change what data or activity we track or use?

My PR adds x and y.

Testing instructions

  • If running Jetpack in development mode, clear the options at the bottom of the page
  • Step through the "Recommendations" using Jetpack Free (i.e. not a paid plan)
  • You should see the Newsletter recommendation
  • Enable it, it should show up on the summary
  • Navigate directly to the card 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.

@mikestottuk mikestottuk self-assigned this Jul 18, 2023
@github-actions github-actions bot added [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Tests] Includes Tests Admin Page React-powered dashboard under the Jetpack menu labels Jul 18, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jul 18, 2023

Thank you for your PR!

When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:

  • ✅ Include a description of your PR changes.
  • ✅ All commits were linted before commit.
  • ✅ Add a "[Status]" label (In Progress, Needs Team Review, ...).
  • ✅ Add testing instructions.
  • ✅ Specify whether this PR includes any changes to data or privacy.
  • ✅ Add changelog entries to affected projects

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.
Then, add the "[Status] Needs Team Review" label and ask someone from your team review the code. Once reviewed, it can then be merged.
If you need an extra review from someone familiar with the codebase, you can update the labels from "[Status] Needs Team Review" to "[Status] Needs Review", and in that case Jetpack Approvers will do a final review of your PR.


Jetpack plugin:

  • Next scheduled release: August 1, 2023.
  • Scheduled code freeze: July 25, 2023.

@github-actions github-actions bot added the [Status] Needs Author Reply We need more details from you. This label will be auto-added until the PR meets all requirements. label Jul 18, 2023
@mikestottuk mikestottuk added [Status] Needs Team Review Obsolete. Use Needs Review instead. and removed [Status] Needs Author Reply We need more details from you. This label will be auto-added until the PR meets all requirements. labels Jul 18, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jul 18, 2023

Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.

  • To test on WoA, go to the Plugins menu on a WordPress.com Simple site. Click on the "Upload" button and follow the upgrade flow to be able to upload, install, and activate the Jetpack Beta plugin. Once the plugin is active, go to Jetpack > Jetpack Beta > Jetpack and enable the newsletter/recommendations branch.

  • To test on Simple, run the following command on your sandbox:

    bin/jetpack-downloader test jetpack newsletter/recommendations
    

Interested in more tips and information?

  • In your local development environment, use the jetpack rsync command to sync your changes to a WoA dev blog.
  • Read more about our development workflow here: PCYsg-eg0-p2
  • Figure out when your changes will be shipped to customers here: PCYsg-eg5-p2

@github-actions github-actions bot added the [Status] Needs Author Reply We need more details from you. This label will be auto-added until the PR meets all requirements. label Jul 18, 2023
Copy link
Member

@jeherve jeherve left a 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.

@jeherve jeherve added [Feature] Subscriptions All subscription-related things such as paid and unpaid, user management, and newsletter settings. and removed [Status] Needs Team Review Obsolete. Use Needs Review instead. labels Jul 19, 2023
Copy link
Member

@jeherve jeherve left a 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:

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();
} );

Copy link
Contributor

@IanRamosC IanRamosC left a 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.

image

@mikestottuk
Copy link
Contributor Author

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.

image

Ah, I'd replaced it here /jetpack/projects/plugins/jetpack/modules/module-headings.php which must not be the right place (it changed on my test install)

@jeherve
Copy link
Member

jeherve commented Jul 20, 2023

Ah, I'd replaced it here /jetpack/projects/plugins/jetpack/modules/module-headings.php which must not be the right place (it changed on my test install)

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:

@mikestottuk
Copy link
Contributor Author

Ah, I'd replaced it here /jetpack/projects/plugins/jetpack/modules/module-headings.php which must not be the right place (it changed on my test install)

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 :)

@mikestottuk
Copy link
Contributor Author

We'll also need to update our e2e tests:

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();
} );

Ahhh - tests! I'll try and get my head around these today!

@jeherve jeherve added the [Status] UI Changes Add this to PRs that change the UI so documentation can be updated. label Jul 20, 2023
@jeherve jeherve added this to the jetpack/12.4 milestone Jul 20, 2023
@jeherve jeherve removed the [Status] Needs Author Reply We need more details from you. This label will be auto-added until the PR meets all requirements. label Jul 20, 2023
@jeherve jeherve added the [Status] Ready to Merge Go ahead, you can push that green button! label Jul 20, 2023
Copy link
Member

@jeherve jeherve left a 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 🚢

@jeherve jeherve merged commit 6b08efa into trunk Jul 20, 2023
@jeherve jeherve deleted the newsletter/recommendations branch July 20, 2023 14:50
@github-actions github-actions bot removed the [Status] Ready to Merge Go ahead, you can push that green button! label Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Admin Page React-powered dashboard under the Jetpack menu E2E Tests [Feature] Subscriptions All subscription-related things such as paid and unpaid, user management, and newsletter settings. [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Status] UI Changes Add this to PRs that change the UI so documentation can be updated. [Tests] Includes Tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants