Enatega is a fully realized and customizable food delivery application that can be used to set up your own order/delivery management system. For more information, visit the Enatega product page: 🚀🛒📦🌐
Description:
When a negative value is added to any input field in the Admin dashboard, the form area is usually highlighted in red to indicate an error. However, this behavior is not occurring in the Discount section. Negative values in the Discount section do not trigger the red highlight.
Steps to Reproduce:
1- Navigate to the Admin dashboard.
2- Go to the Discount section.
3- Enter a negative value in the discount input field.
4- Observe the form area for any highlighting.
Expected Behavior:
The form area should be highlighted in red to indicate an error when a negative value is entered.
Actual Behavior:
The form area is not highlighted in red, and there is no visual indication of an error when a negative value is entered in the Discount section.
Environment:
Affected feature: Discount section in Admin dashboard
Issue: Lack of error highlighting for negative values
Hypothesis:
The input validation logic in the Discount section might not include the check for negative values or is not correctly triggering the error highlight.
Additional Information:
The issue is specific to the Discount section. Other sections correctly highlight the form area in red when a negative value is entered.
This can lead to potential confusion or missed errors during data entry in the Discount section.
Possible Solution:
Review and update the input validation logic in the Discount section to ensure negative values trigger the red error highlight. Consistency in error highlighting across all sections is crucial for a better user experience.
Description: When a negative value is added to any input field in the Admin dashboard, the form area is usually highlighted in red to indicate an error. However, this behavior is not occurring in the Discount section. Negative values in the Discount section do not trigger the red highlight.
Steps to Reproduce: 1- Navigate to the Admin dashboard. 2- Go to the Discount section. 3- Enter a negative value in the discount input field. 4- Observe the form area for any highlighting.
Expected Behavior: The form area should be highlighted in red to indicate an error when a negative value is entered.
Actual Behavior: The form area is not highlighted in red, and there is no visual indication of an error when a negative value is entered in the Discount section.
Environment: Affected feature: Discount section in Admin dashboard Issue: Lack of error highlighting for negative values
Hypothesis: The input validation logic in the Discount section might not include the check for negative values or is not correctly triggering the error highlight.
Additional Information: The issue is specific to the Discount section. Other sections correctly highlight the form area in red when a negative value is entered. This can lead to potential confusion or missed errors during data entry in the Discount section.
Screenshots/Logs: (https://github.com/user-attachments/assets/38c44a8b-37c0-4c62-942d-4568a4a78f02)
Possible Solution: Review and update the input validation logic in the Discount section to ensure negative values trigger the red error highlight. Consistency in error highlighting across all sections is crucial for a better user experience.