Description
Completes: 1202796695664022-as-1202796695664096/f
Project Thread: p1HpG7-gBI-p2
This PR Updates the licensing prompt dialog to reflect the changes as given in the new Figma design
Proposed Changes
- Enhance
LicensingPromptDialog
and make it backward compatible.
- Create a new
UserLicensesDialog
component inside client/my-sites/plans/jetpack-plans/product-store
and wire it up
- Hide existing dialog behind feature-flag
- Disable
jetpack/pricing-page-rework-v1
feature for the development environment as discussed here: p1661157546673919-slack-C03RCHNVC0H
Testing Instructions
- Goto https://cloud.jetpack.com/pricing and purchase a product e.g. Backup but do not activate it for any site
- Boot up this PR by running
git fetch && git checkout update/licensing-prompt-dialog
- Run
yarn start
and open http://calypso.localhost:3000/
- Create a JN site
- While connecting Jetpack, pause on the plans page i.e.
https://wordpress.com/jetpack/connect/plans/:site
- Copy the above URL and open it in another tab after replacing
https://wordpress.com
with http://calypso.localhost:3000
- Confirm that you see the license prompt dialog on both and both look the same.
- Now in the tab with
calypso.localhost
URL add &flags=jetpack/pricing-page-rework-v1
to the URL and hit enter. It will enable the feature flag.
- Confirm that you see the new licensing prompt dialog.
- Confirm that you see the license activation banner at the top
- Confirm that the design is as defined in Figma
- Now again goto https://cloud.jetpack.com/pricing and purchase another product e.g. Security but do not activate it for any site.
- Reload the pages mentioned in step 4 and 5
- Confirm the above steps for multiple pending licenses. Please note the Slack conversation (below) for that.
Pre-merge Checklist
Figma: m0y1jHTuDpvMPkFsOJBoNP-fi-3669%3A110210
Slack conversation: p1661150917743419-slack-C03RCHNVC0H
- To see the specific tasks where the Asana app for GitHub is being used, see below:
Unfortunately, no screenshots were provided by the developer.