-
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
Woo: Shipping Labels: Use Stripe Elements for Add Credit Card Dialog #35390
Conversation
saveStoredCard={ saveStoredCard } | ||
successCallback={ onClose } | ||
showUsedForExistingPurchasesInfo={ true } | ||
heading={ translate( 'Add credit card' ) } |
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.
Hi! I've found a possible matching string that has already been translated 43 times:
translate( 'Add Credit Card' )
ES Score: 10
See 2 additional suggestions in the PR translation status page
Help me improve these suggestions: react with 👎 if the suggestion doesn't make any sense, or with 👍 if it's a particularly good one (even if not implemented).
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 think we got this message because we intentionally don't translate this section (shipping labels are only available in the US/Canada IIRC)
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: Webpack Runtime (~30062 bytes added 📈 [gzipped])
Webpack runtime for loading modules. It is included in the HTML page as an inline script. Is downloaded and parsed every time the app is loaded. App Entrypoints (~553278 bytes added 📈 [gzipped])
Common code that is always downloaded and parsed every time the app is loaded, no matter which route is used. Legacy SCSS Stylesheet (~22810 bytes added 📈 [gzipped])
The monolithic CSS stylesheet that is downloaded on every app load. Sections (~5907469 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 (~2637207 bytes added 📈 [gzipped])
React components that are loaded lazily, when a certain part of UI is displayed for the first time. Moment.js Locales (~108637 bytes added 📈 [gzipped])
Locale data for moment.js. Unless you are upgrading the moment.js library, changes in these chunks are suspicious. 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. |
The `PaymentMethod` component has an optional `expiry` prop, but if the prop is empty, then the component displays the word "Expires" without a date. This makes sure nothing is rendered if there is no expiry available.
3479a38
to
700b763
Compare
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, and works as it should. I don't know if the e2e tests failures are related though.
The failing test seems unrelated - p1565940337031800-e2e-testing-discuss |
Changes proposed in this Pull Request
This updates the
AddCardDialog
Woo component to use Stripe Elements and Payment Intents (see previous work in #34848, #35262, and #35351).Testing instructions