Closed danielcliu-ifixit closed 9 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
react-commerce | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jan 12, 2024 10:18am |
react-commerce-prod | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jan 12, 2024 10:18am |
This analysis was generated by the Next.js Bundle Analysis action. 🤖
This PR introduced no changes to the JavaScript bundle! 🙌
@dhmacs that is a cleaner implementation, thanks for the advice!
Closing in favor of using hte cart drawer context instead.
Overview
We sometimes can have things error out when trying to update the cart. We would roll back the cart but not change anything, and not tell our user that anything wrong happened. Now we give some visual feedback that there was an error updating the cart in the cart drawer.
QA
When we have an error updating the cart (adding a bad product, product is out of inventory, etc) we now display an error message in the cart drawer. The error message is closable, and also disappears after an alloted time.
Also, the checkout errors also still display as expected.
Closes: https://github.com/iFixit/ifixit/issues/51213