hngprojects / hng_boilerplate_nextjs

https://deployment.nextjs.boilerplate.hng.tech
Apache License 2.0
205 stars 264 forks source link

[Feature]: [BUG][FE-PHEONIX]-Restrict Quantity Input to Numbers Only in Add product (NewProductModal) #1315

Open Aliyuibrahim6923 opened 3 weeks ago

Aliyuibrahim6923 commented 3 weeks ago

Description

The Add Product(NewProductModal )component currently allows users to input a product's quantity without any restrictions on the type of input. To ensure data integrity and avoid errors, the quantity input should be restricted to numeric values only, with a minimum value of 0.

Acceptance Criteria

Update the Quantity Input Field:

Validation:

UI/UX Enhancements: Ensure the quantity input field is clearly marked as a numeric field, possibly by displaying an up/down control (if supported by the UI framework).

Links

| FIGMA LINK

Images

image Screenshot 2024-08-23 215819

SAGHEDEV commented 3 weeks ago

I'll work on this