-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Add/user licensing banner #59892
Add/user licensing banner #59892
Conversation
Add a banner in the checkout process to indicate when there are licenses that are available and have not yet been activated
Add the key icon with the correct color and update the icon name
Link to Calypso live: https://calypso.live?image=registry.a8c.com/calypso/app:build-24434 |
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: Sections (~155 bytes added 📈 [gzipped])
Sections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to. Legend What is parsed and gzip size?Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory. Generated by performance advisor bot at iscalypsofastyet.com. |
client/components/jetpack/licensing-activation-banner/index.tsx
Outdated
Show resolved
Hide resolved
client/components/jetpack/licensing-activation-banner/index.tsx
Outdated
Show resolved
Hide resolved
I made the PR point to my Comments The key icon doesn't look aligned to the copy and we are missing a I think that the alignment issue can be fixed by relying on On Jetpack Connect, the banner is too close to the Jetpack logo. The banner appears regardless of having available licenses We need to include the same checks that control the dialog/modal appearance. |
Update the key icon viewbox to align it with the banner text. Also remove unnecessary nested div and fix the copy on the banner.
Remove unused css and update banner padding
Update the activate a license banner css for mobile and Jetpack connect and fix conditions under which the banner displays.
client/components/jetpack/licensing-activation-banner/index.tsx
Outdated
Show resolved
Hide resolved
.licensing-activation-banner { | ||
padding-top: 16px; | ||
padding-bottom: 16px; | ||
color: var( --studio-white ); |
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.
The text color in design is #DCDCDE
, although it looks like we don't have such a variable available. @ederrengifo, should we update the color to match the design?
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 need to be careful with any decision because the banner is displayed in two different enviroments: cloud.jetpack.com/pricing and wordpress.com/jetpack/connect/plans.
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.
I will recommend using the closer variable to that value. In our Figma library that color is called grey 5
by the way. If that's a problem because of the two different environments, then I would recommend using white by default.
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.
All the functional tests are working as expected! I just left a few minor style-related comments.
client/components/jetpack/licensing-activation-banner/style.scss
Outdated
Show resolved
Hide resolved
Remove the extra space at the end of the license banner text
Update css for license activation banner for mobile and to properly wrap banner text.
Fix spacing from merge
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.
LGTM.
Awesome job, Oli!
Update text color
This Pull Request is now available for translation here: https://translate.wordpress.com/deliverables/7079494 Hi @oikeme, could you please edit the description of this PR and add a screenshot for our translators? Ideally it'd include all of the following strings:
Thank you in advance! |
Translation for this Pull Request has now been finished. |
Changes proposed in this Pull Request
Add a banner to the checkout flow and pricing page that informs a user when they have unused licenses that can be activated.
Testing instructions
Ensure that the banner adjusts and is displayed correctly for the mobile experience with both the Jetpack Connect flow and the plans page flow.
yarn start
andyarn start-jetpack-cloud-p
in orderPlans Page Flow
Jetpack Connect Flow
Related to #