marthaegrimaldi / marthaegrimaldi/restaurant-ordering-platform-with-source-code

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

Open
#23 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the admin panel's tip configuration input and its validation logic, then reproduce the issue by entering 0 and 0.5. Update the validation so values below 1 are rejected with an error while valid tip options remain accepted; verify the behavior in the admin panel.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.