hngprojects / hng_boilerplate_nextjs

https://deployment.nextjs.boilerplate.hng.tech
206 stars 265 forks source link

Feature: Implement Archive Product Button on the Edit Product Details Page #1504

Closed Emmadegreat closed 2 months ago

Emmadegreat commented 2 months ago

Description

GitHub Issue: Implement Archive Product Button on the Edit Product Details Page #1379

Closes #issue_number_here

Changes proposed

Create a button on the product details page that allows users to archive the product, removing it from active listings.

What were you told to do?

Create a button on the product details page that allows users to archive the product, removing it from active listings.

Implement Archive Product Button on the Edit Product Details Page #1379

What did you do?

I implemented the Archive Product button as described in the task. The button is visibly placed on the product detail edit page. Clicking the button triggers a confirmation prompt.

Check List (Check all the applicable boxes)

🚨Please review the contribution guideline for this repository.

Screenshots/Videos

WhatsApp Image 2024-08-24 at 12 58 23_d014fc87

github-actions[bot] commented 2 months ago

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 14.55% 785 / 5392
🔵 Statements 14.24% 787 / 5524
🔵 Functions 14.01% 215 / 1534
🔵 Branches 9.86% 230 / 2331
File CoverageNo changed files found.
Generated in workflow #466