-
Notifications
You must be signed in to change notification settings - Fork 801
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
Recommendations: Add Jetpack Product Suggestions step #20814
Recommendations: Add Jetpack Product Suggestions step #20814
Conversation
We do this so we can use the same template with progress and header (question) for content that wants to use 100% width.
This step is not part of the regular "Next step" flow and is meant to be used as a landing page after a customer has purchased a product through the "Product Suggestion" step.
This commit aims to add all missing step data and product suggestion data required for the product purchased step to function.
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:
Backup plugin:
|
We do this to reflect the recent component name change in the event.
Caution: This PR has changes that must be merged to WordPress.com |
It was possible that the product-suggestions-selection value was not set before the user was redirected to the checkout which would cause the purchased step/landing page to not display any information.
CC: @Automattic/jetpack-design (just to make sure Jeremy's comment isn't lost 😄 🔔 ) |
Thank you very much for the review @jeherve and your help with the dependencies files! 🙇
I have not been able to product the error by just using the Assistant but I'm assuming you experienced one of two scenarios:
Both basically means the same from a "what can we do to avoid it" perspective: The error and response handling might not have been the best. So I've added an Reference:
The only reason (I'm still relatively new to React and worked from an assumptions about combining I have done the following:
|
We do this instead of relying on the onClick data since it will always be tricky and have a chance of failing when we redirect to another site.
We change the layout to use grid instead of flex so we could place the price inbetween the description and actions on small devices but move it to the right of the other content on smaller phones.
Awesome work @Luchadores! I have implemented the suggestion and updated the screenshot in the PR description. Related:
|
…product-suggestion-step
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.
This works well for me! Let's do it 👍
Great news! One last step: head over to your WordPress.com diff, D66036-code, and commit it. Thank you! |
* master: (34 commits) Fix issue templates (#20880) Social Icon Widget: Fix Icons Not Saving (#20862) Dashboard: Add a specific message for a site that is too new to have a rewind status (#20863) Add additional properties to WC Analytics events (#20812) Connection: add spinner for the "Connect" button (#20872) Update storybook monorepo to v6.3.7 (#20877) Lightweight PHPCS (#20876) Recommendations: Add Jetpack Product Suggestions step (#20814) Update babel monorepo (#20875) Update wordpress monorepo (#20873) cli: Check subprocess exit statuses in docker commands (#20861) Facebook Widget: Fix URL error when adding widget (#20864) Stats: make nudges collapsible (#20765) Remove temporary Newspack block override css (#20868) Allow ZIP uploads via Calypso (#20860) Sync Package Release v1.26.0 (#20870) Connection: remove in-place in secondary flows (#20739) BUILD_DIR -> BUILD_BASE in initial checks (#20857) E2E tests: Fix missing action for atomic workflow (#20866) Boost: Fix skip proxy origins to load css during critical CSS generation (#20793) ...
r231018-wpcom |
Changes proposed in this Pull Request:
/jetpack/v4/recommendations/product-suggestions
endpoint.illustrationPath
attribute of<PromptLayout>
to be optional, so we can use the same layout component for full width content.<MoneyBackGuarantee>
component.<QueryRecommendationsProductSuggestions>
).<ProductSuggestions>
and<ProductSuggestion>
).<ProductPurchased>
) that will only be displayed if a user is directly forwarded to it (used as return URL from the checkout)Jetpack product discussion
Does this pull request change what data or activity we track or use?
This Pull Request adds the following Analytics Tracking Events:
jetpack_recommendations_product_suggestion_click
: When a user selects one of the suggested products.jetpack_recommendations_product_suggestion_learn_more_click
: When a user clicks one of the "Learn More" links located at the suggested products.jetpack_recommendations_product_suggestion_purchased
: When a user has gone through checkout and been returned to the Jetpack Assistant.jetpack_recommendations_product_suggestions_decide_later_click
: When a user skips the Purchase Product step.Testing instructions:
Initial setup and how to find the Product Suggestion step
/wp-admin/admin.php?page=jetpack#/recommendations
.Things to test
Learn More
links. These should open in a new tab.Decide later
link you should be taken to either theWooCommerce
step orMonitor
step depending on your website.Continue with [Product Name]
button you should be redirected to checkout where the product is pre-selected.Screenshots
Product Suggestion step: Desktop
Product Suggestion step: Tablet
Product Suggestion step: Phone
Product Purchased step: Desktop
Product Purchased step: Tablet
Product Purchased step: Phone
Product Purchased step: Jetpack Backup Daily example