hngprojects / hng_boilerplate_nextjs

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

Feat: Implement the "Delete" Button on Product Card being displayed on the Grid page of Product Listing #1545

Closed Emmadegreat closed 2 weeks ago

Emmadegreat commented 2 weeks ago

Description

Implement the "Delete" Button on Product Card being displayed on the Grid page of Product Listing #1409

Closes #issue_number_here

Changes proposed

To implement a "Delete" button on each product card in the grid view that allows users to delete the product.

What were you told to do?

What did you do?

The "Delete" button is visible on each of the product card used in the product view. Clicking the button triggers a confirmation prompt for delete Upon confirmation, the product is soft deleted and removed from the grid. Proper error handling is implemented if the deletion fails.

Check List (Check all the applicable boxes)

🚨Please review the contribution guideline for this repository.

WhatsApp Image 2024-08-24 at 20 06 47_d006daca

github-actions[bot] commented 2 weeks ago

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 14.5% 778 / 5365
🔵 Statements 14.17% 780 / 5501
🔵 Functions 14.02% 213 / 1519
🔵 Branches 9.84% 229 / 2325
File CoverageNo changed files found.
Generated in workflow #522