gray-mueller / gray-mueller/food-delivery-platform-for-restaurants-using-python

Enatega Admin Dashboard: Categories for products keep getting added with the same name, there should be only one entry for one name.

Open
#515 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
The system currently allows multiple product categories to be created with the same name. This results in duplicate entries for identical category names, leading to confusion in both the admin panel and the app UI. There should be a validation to ensure that only one category with a given name can exist.

Steps to Reproduce:

Go to the Admin panel.
Add a new product category (e.g., "Burgers").
Attempt to add another category with the same name ("Burgers").
Observe that the system allows it without any warning or error.
Expected behavior
System should prevent adding duplicate category names by showing a validation message like “Category with this name already exists.”

Desktop (please complete the following information):

OS: [e.g. Windows]
Browser [e.g. Chrome]
Version [e.g. Latest]

Contributor guide

Open the contributing guide

Research direction

The issue identifies the Admin panel's product-category creation flow but names no files or tests. Start by tracing the entry point used to create categories, then check how duplicate names are handled across the admin panel and app UI. Done means a repeated category name is rejected with a validation message and existing category creation still works.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.