Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Checkout Block: Surface errors from Cart Routes/batch #7721

Closed
mikejolley opened this issue Nov 21, 2022 · 0 comments · Fixed by #8162
Closed

Checkout Block: Surface errors from Cart Routes/batch #7721

mikejolley opened this issue Nov 21, 2022 · 0 comments · Fixed by #8162
Assignees
Labels
block: checkout Issues related to the checkout block. type: bug The issue/PR concerns a confirmed bug. type: enhancement The issue is a request for an enhancement.

Comments

@mikejolley
Copy link
Member

If a cart route returns an error, for example, select-shipping-rate, the error is not surfaced during checkout. We need to collect and aggregate all errors returned from the API, group by error ID (to prevent duplicates) and then surface errors in the correct notice containers.

This PR introduces new Notice containers, so we can use those to surface errors in particular places by mapping error codes to contexts in the client.

See #5971 (comment) for context.

@mikejolley mikejolley added type: bug The issue/PR concerns a confirmed bug. type: enhancement The issue is a request for an enhancement. block: checkout Issues related to the checkout block. labels Nov 21, 2022
@mikejolley mikejolley self-assigned this Jan 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
block: checkout Issues related to the checkout block. type: bug The issue/PR concerns a confirmed bug. type: enhancement The issue is a request for an enhancement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant