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

Social: Add recommendation steps for the V1 plan #38219

Merged
merged 6 commits into from
Jul 15, 2024

Conversation

gmjuhasz
Copy link
Contributor

@gmjuhasz gmjuhasz commented Jul 5, 2024

Fixes https://github.com/Automattic/jetpack-reach/issues/439

Proposed changes:

  • Changed the advanced plan recommendation steps and cards to be used with the V1 plan

Other information:

  • Have you written new tests for your changes, if applicable?
  • Have you checked the E2E test CI results, and verified that your changes do not break them?
  • Have you tested your changes on WordPress.com, if applicable (if so, you'll see a generated comment below with a script to run)?

Jetpack product discussion

https://github.com/Automattic/jetpack-reach/issues/439

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

Testing instructions:

  • Create a new JN site, or delete jetpack options on your local site to reset the onboarding flows. jetpack docker wp option delete jetpack_options. You'll have to reconnect Jetpack after this.
  • Ensure you do not have the social plan, then buy it for the site. You should get redirected to the Social onboarding flow. There you should see 4 steps, the first one is a welcome, then SIG introduction, then a general monitor and accelerator pages.
CleanShot.2024-07-05.at.14.03.53.png.mp4
@gmjuhasz gmjuhasz requested a review from a team July 5, 2024 12:00
@gmjuhasz gmjuhasz self-assigned this Jul 5, 2024
@github-actions github-actions bot added [JS Package] Licensing [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Status] In Progress Admin Page React-powered dashboard under the Jetpack menu RNA labels Jul 5, 2024
Copy link
Contributor

github-actions bot commented Jul 5, 2024

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, select your plugin, and enable the update/social-v1-recommendation-steps branch.

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

    bin/jetpack-downloader test jetpack update/social-v1-recommendation-steps
    

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
Copy link
Contributor

github-actions bot commented Jul 5, 2024

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.
  • ✅ 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 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:

The Jetpack plugin has different release cadences depending on the platform:

  • WordPress.com Simple releases happen daily.
  • WoA releases happen weekly.
  • Releases to self-hosted sites happen monthly. The next release is scheduled for August 6, 2024 (scheduled code freeze on August 5, 2024).

If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack.

@gmjuhasz gmjuhasz marked this pull request as ready for review July 5, 2024 12:26
manzoorwanijk
manzoorwanijk previously approved these changes Jul 8, 2024
Copy link
Member

@manzoorwanijk manzoorwanijk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works fine

Copy link
Contributor

@pablinos pablinos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a good first step. The suggestion from Marketing was to have a recommendation for all sites, promoting the free version. Perhaps we could repurpose the Basic recommendation for that? It would be fine to do that as a separate change of course.

@@ -41,12 +41,12 @@ export const RECOMMENDATION_WIZARD_STEP = {
WELCOME__SEARCH: 'welcome__search',
WELCOME__SCAN: 'welcome__scan',
WELCOME__SOCIAL_BASIC: 'welcome__social_basic',
WELCOME__SOCIAL_ADVANCED: 'welcome__social_advanced',
WELCOME__SOCIAL_V1: 'welcome__social_v1',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to keep the Advanced flow for now in case people are activating the legacy plans? If not, then do we need to keep the Basic recommendations?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that still sellable? Even if it is, I'm not sure we should support that with the onboarding as it's deprecated anyway.
cc @spsiddarthan

Copy link
Contributor

@spsiddarthan spsiddarthan Jul 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can get rid of the old plans here

We can let those be for now, Jetpack Manage hasn't deprecated the old plans yet.

return {
question: __( 'Welcome to Jetpack Social!', 'jetpack' ),
description: __(
"With your new advanced plan you unlocked unlimited sharing, access to upload photos and videos with your posts, and usage of Social Image Generator.<br/><br/>Let's start with connecting your social media accounts, if you haven't already.",
"With your new Social plan you unlocked priority support, access to upload photos and videos with your posts, and usage of Social Image Generator.<br/><br/>Let's start with connecting your social media accounts, if you haven't already.",
'jetpack'
),
ctaText: __( 'Manage Social Media Connections', 'jetpack' ),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should update this link too. I suppose we could bring up the connections modal on this page, but it might be better to send them to the Sharing settings instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 67bb287

@gmjuhasz gmjuhasz changed the title Social: Add recommendation steps for the V1 pla Jul 8, 2024
@gmjuhasz
Copy link
Contributor Author

gmjuhasz commented Jul 8, 2024

Because of p1720428043465199-slack-C02JJ910CNL, I made it so on the welcome pages we open the sharing section in a new tab, to not mess up the onboarding flow

Copy link
Contributor

@spsiddarthan spsiddarthan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I only have Jetpack Social active and buy a plan, it takes me to this blank page. Can you replicate that behaviour? You can test it on a new JN site.

Also, we can leave the old plans be since Jetpack Manage hasn't deprecated the old plans yet. We can add a task to the backlog to clean that up.

Screenshot 2024-07-09 at 11 40 22 AM
@gmjuhasz
Copy link
Contributor Author

gmjuhasz commented Jul 9, 2024

When I only have Jetpack Social active and buy a plan, it takes me to this blank page. Can you replicate that behaviour? You can test it on a new JN site.

After my investigation that's an issue on trunk and with Calypso. p1720514740440389-slack-C02JJ910CNL

Fixed in https://github.com/Automattic/jetpack-reach/issues/446

@gmjuhasz gmjuhasz requested review from a team, pablinos and spsiddarthan July 9, 2024 09:54
Copy link
Contributor

@spsiddarthan spsiddarthan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works well!

@gmjuhasz gmjuhasz merged commit 9c947ac into trunk Jul 15, 2024
70 checks passed
@gmjuhasz gmjuhasz deleted the update/social-v1-recommendation-steps branch July 15, 2024 07:51
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 [JS Package] Licensing [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ RNA
4 participants