show-products-by-category
rabrad opened this issue · comments
User story
As a web app user, I want to search for products based on their category, so that I can see all similar products and choose the best one for me.
Plan for technical implementation:
-
Frontend
1 - Add category select dropdown to the home page.
2 - Add a pagination component to the filtered products. -
Backend
1 - Add category as new value to product schema with string type.
For example: [decoration, lights, living room, bedroom]
2 - Add category field in Create page that user can choose category from limited options.
3 - Update the product detail API endpoint.
*** Update 1 ***
-
Product schema has a category property now.
-
Category Parameter (that is sent up from the client as part of a POST request) is added to post handler in Product api (handlePostRequest function).
-
While creating page, user can choose a category options from the dropdown bar now .
Update
- The style of category fields in both create and home pages is updated.