gray-mueller / gray-mueller/food-delivery-clone-app-using-react
Unintended Toggling of Buttons in "Restaurants Section" Section of Admin Dashboard
- Dominant language
- JavaScript
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
In the Enatega Multivendor Admin Dashboard, specifically in the "Restaurants section" section, there is an issue where toggling one button on or off intermittently triggers the system to toggle other buttons that were not intended to be changed. This behavior is unexpected and can lead to unintended changes in the settings of restaurants, causing potential confusion and errors in the admin interface.
To Reproduce
Steps to reproduce the behavior:
Log in to the Enatega Multivendor Admin Dashboard.
Navigate to the "Restaurants section" section.
Attempt to toggle a specific button (e.g., enable/disable a feature) for a restaurant.
Observe that other buttons in the vicinity may also be toggled without explicit user interaction.
Expected behavior
Toggling one button in the "Restaurants" section should only affect the state of that specific button, and other buttons should remain unchanged unless explicitly modified by the user.
Screenshots
https://github.com/ninjas-code-official/food-delivery-multivendor/assets/152266796/b81cddc8-08ac-4f08-9c55-606b75035a22
Desktop:
Browser: chrome
Contributor guide
Research direction
Start by reproducing the issue in the Enatega Multivendor Admin Dashboard's Restaurants section using Chrome, following the listed toggle steps and screenshot. Trace the state handling for the restaurant buttons; done means toggling one control changes only that control and leaves nearby buttons unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100