gray-mueller / gray-mueller/online-food-ordering-platform-in-python

Tip options in admin panel accept values less than 1 in Enatega

Open Beginner friendly
#580 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
Tip options in admin panel accept values less than 1 in Enatega

Describe the bug
In the Enatega admin panel, the tip configuration allows values less than 1 (e.g., 0 or 0.5), which should not be permitted. These invalid values can then appear in the app and lead to inconsistent behavior.

To Reproduce
Steps to reproduce the behavior:

Log in to the Enatega admin panel.
Navigate to the section where tip options are set or configured.
Enter a tip value less than 1.
Save and observe that the value is accepted without validation.
Expected behavior
The admin panel should enforce validation rules that restrict tip options to a minimum value of 1. Inputs below this threshold should be rejected or trigger an error message.

Smartphone (please complete the following information):

Device: Samsung A15 (used to observe the result in the app)

OS: Android

Additional context
This is an issue originating in the admin panel, not the app itself. Allowing invalid tip values at the admin level may cause confusion or display issues in the user-facing app.

Contributor guide

Open the contributing guide

Research direction

Start in the Enatega admin panel's tip configuration by reproducing the issue with values such as 0 and 0.5, then trace the associated validation. Done means values below 1 are rejected or show an error, while values of 1 or greater can still be saved.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
60/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.