-
Notifications
You must be signed in to change notification settings - Fork 687
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Refactor checkout workflow to set shipping address/get shipping methods with graphql #2018
Conversation
|
bdf3137
to
4030d43
Compare
…ng methods in single action.
4030d43
to
e89c9be
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.
Just the one error message regression - great job!
packages/venia-ui/lib/components/Checkout/__tests__/__snapshots__/addressForm.spec.js.snap
Outdated
Show resolved
Hide resolved
packages/venia-ui/lib/components/Checkout/shippingAddressSummary.js
Outdated
Show resolved
Hide resolved
packages/venia-ui/lib/components/Checkout/shippingMethodSummary.js
Outdated
Show resolved
Hide resolved
|
||
const [ | ||
{ shippingAddress, shippingMethod, shippingTitle } | ||
] = useCheckoutContext(); |
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.
💯
QA pass but waiting for #2029 to get merged first. |
Description
Uses graphQL to set shipping address and, in the same mutation, receive the available shipping methods for the selected address.
Also removes email from forms for authed users as the email is already attached to cart.
For guest users it will set the guest email on the cart when submitting the address form.
Related Issue
Closes PWA-145.
Acceptance
Verification Stakeholders
Specification
Verification Steps
Screenshots / Screen Captures (if appropriate)
Checklist