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 additional product data(lightbox) to calypso package #67687
Conversation
…kage * Adds lightbox additional data - Includes, Recommended for, Benefits to calypso-products package * Use the data from calypso package to generate item slug
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: App Entrypoints (~1849 bytes added 📈 [gzipped])
Common code that is always downloaded and parsed every time the app is loaded, no matter which route is used. Sections (~2147 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. Async-loaded Components (~1856 bytes added 📈 [gzipped])
React components that are loaded lazily, when a certain part of UI is displayed for the first time. 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. |
packages/calypso-products/src/get-jetpack-product-includes-info.ts
Outdated
Show resolved
Hide resolved
packages/calypso-products/src/get-jetpack-product-recommended-for.ts
Outdated
Show resolved
Hide resolved
* Remove constant that stored the translated text, instead call translate inline * Remove redundant type cast and return types
This PR modifies the release build for editing-toolkit To test your changes on WordPress.com, run To deploy your changes after merging, see the documentation: PCYsg-mMA-p2 |
packages/calypso-products/src/get-jetpack-product-includes-info.ts
Outdated
Show resolved
Hide resolved
* Remove extra whitespace in translation texts * Rename selector function
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 looks great now. Thank you for making the changes.
This Pull Request is now available for translation here: https://translate.wordpress.com/deliverables/7525461 Thank you @vikneshwar for including a screenshot in the description! This is really helpful for our translators. |
const backupIncludesInfoMonthlyLog = translate( '30-day activity log archive' ); | ||
const backupIncludesInfoYearlyLog = translate( '1 year activity log archive' ); |
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.
@vikneshwar, we have some incorrect data here:
The way is is defined right now is: (which is incorrect)
- Backup T1 (monthly) has: '30-day activity log archive'
- Backup T1 (yearly) has: '1 year activity log archive'
- Backup T2 (monthly) has: '30-day activity log archive'
- Backup T2 (yearly) has: '1 year activity log archive'
The way it should be:
- Backup T1 (yearly & monthly) should have '30-day activity log archive'.
- Backup T2 (yearly & monthly) should have '1 year activity log archive'.
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.
Could you create a new PR with the above corrections ^^?
|
||
const socialBenefits = [ | ||
translate( 'Save time by sharing your posts automatically' ), | ||
translate( 'Unlock your growth potential by building a following on social' ), |
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.
Are we missing the word "media" at the end?
I think it should be:
"... building a following on social media"
translate( '1TB (1,000GB) of cloud storage' ), | ||
translate( '1-year activity log archive' ), | ||
translate( 'Unlimited one-click restores from the last 1 year' ), |
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.
In these "What's included" items for SECURITY_T2 and also BACKUP_T2 products, there are some parts of it that should be bold type. For example:
- 1TB (1,000GB) of cloud storage
- 1-year activity log archive
- Unlimited one-click restores from the last 1 year
As shown on the Figma design here: m0y1jHTuDpvMPkFsOJBoNP-fi-3557%3A123824
@elliottprogrammer Thanks for checking on this. I have created a new PR #67789 |
Translation for this Pull Request has now been finished. |
This PR adds data to be shown in lightbox to calypso-product package
Proposed Changes
calypso-products
to fetch Includes, Benefits, Recommended For for Productscalypso-products
to fetch Includes, Benefits, Recommended For for BundlesTesting Instructions
Note: This is an internal change to add data to
calypso-package
, no testing in UI can be done until the components are ready. However, make sure everything works as before by following the below instructions/pricing?flags=jetpack/pricing-page-rework-v1
git fetch && git checkout add/lightbox-info-to-calypso-package
yarn start-jetpack-cloud
Pre-merge Checklist
-1202796695664022-as-1202796695664084/f