Sunagatov / Iced-Latte-Frontend

a online Marketplace for coffee retail (Frontend)
https://iced-latte.uk
MIT License
209 stars 48 forks source link

(MAIN PAGE-PRODUCT'S CATALOG) Product Card (Average Rating + Reviews Count) #179

Closed Sunagatov closed 3 months ago

Sunagatov commented 4 months ago

Before: Now all the values you see in the product card on the website are hardcoded.

After: In the product card we need to show the rating and the number of reviews that come from the backend REST API as json as follows: 1) If backend returns product with the average rating of the product as 4,8 and 13 as the number of reviews then on the product card is should look like that 🌟4,8 (13). Screenshot 2024-04-28 at 11 33 25 am

2) If backend returns product with the average rating of the product as null or 0 and the number of reviews as null or 0 then on the product card is should look like that No rating. Screenshot 2024-04-28 at 11 35 13 am

ilsinyakov commented 3 months ago

Tested Approved