mdazfar2 / Ezyshop

EzyShop is a user-friendly platform that connects you to local stores, offering a seamless shopping experience. Compare prices, access exclusive deals, and enjoy hassle-free deliveries for groceries, essentials, and organic products—all in one app.
https://ezyshopz.vercel.app
Apache License 2.0
153 stars 195 forks source link

[Feat] enhancing wishlist page to accomodate backend fetched data and heart button on product cards #938

Open ShivanshPlays opened 1 day ago

ShivanshPlays commented 1 day ago

Description

Description

Enhance the frontend to allow users to add products to their wishlist using a heart button on product cards and modify the dedicated wishlist page.

Tasks

  1. Add Heart Button on Products:

    • Add a heart icon on each product card.
    • On click:
      • If the user is authenticated, update the user's wishlist via backend actions.
      • If unauthenticated, redirect to the login/authentication page.
  2. Wishlist Page:

    • On this page, fetch the authenticated user’s wishlisted products using the GET backend action.
    • Display all wishlisted products in a grid/list view.
  3. UI/UX Improvements:

    • Add loading states while fetching data.
    • Provide visual feedback (e.g., color change or animation) when adding/removing products from the wishlist.

Acceptance Criteria

Screenshots

No response

Checklist

github-actions[bot] commented 1 day ago

Hello ShivanshPlays! Thanks for opening an issue in Ezyshop! 🚀