Closed Fatima-Bibi closed 1 week ago
The pull request introduces several modifications across multiple components, primarily focusing on enhancing error handling and logging. In the Category
component, console log statements are added, and error messaging is refined to provide more specific feedback. The Checkout
component sees the addition of validation checks for empty carts and minimum order amounts, improved error handling, and enhanced analytics tracking. Additionally, a consistent indentation style is applied to the SERVER_URL
constant in the constants.js
file. Overall, these changes aim to improve user experience and clarity in error reporting.
File Path | Change Summary |
---|---|
.../Category/Category.jsx |
- Added console logs for props and props.category . - Refactored onError for specific error messaging. - Retained setCategory('') in onCompleted and onError . |
.../config/constants.js |
- Adjusted indentation style for SERVER_URL constant without changing its value. |
.../Checkout/Checkout.js |
- Added validation for empty cart and minimum order amount in validateOrder . - Improved error handling in onError . - Enhanced analytics tracking in onCompleted . - Modified useEffect for delivery charges based on available data. - Refined calculateTotal to include tip calculation. - Added toggleCloseModal function for better restaurant availability management. |
Category
component of the main PR.Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Name | Link |
---|---|
Latest commit | 79c5aea2c4c0d6a524c6da2590d7be883fe09093 |
Latest deploy log | https://app.netlify.com/sites/polite-fairy-234917/deploys/6736e0fe386d3e0008bada3c |
Deploy Preview | https://deploy-preview-660--polite-fairy-234917.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Name | Link |
---|---|
Latest commit | 79c5aea2c4c0d6a524c6da2590d7be883fe09093 |
Latest deploy log | https://app.netlify.com/sites/cheery-zabaione-34f12e/deploys/6736e0fe87da7c000808e961 |
Deploy Preview | https://deploy-preview-660--cheery-zabaione-34f12e.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Verified that no category suggestions were appearing when adding a new category, so that issue cannot be resolved. Implemented a solution to prevent duplicate categories from being added to the database.