NexGenStudioDev / NexGenStudioDev/ciitm-frontend

🐛 Feature Request: Delete Testimonial Functionality via Recycle Bin Icon

Open
#221 12 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

atomic-design best-practices Ciitm Frontend enhancement feature-request good first issue hacktoberfest ONLY_FOR_NEW_CONTRIBUTORS onlydust-wave React Responsive Ui Update
Dominant language
JavaScript
Stars
9
Forks
39
PR merge metrics
No merged PRs in 30d

Description

When a user logs in and navigates to the Home page, there is a Testimonial section that displays a list of Testimonial Cards. Each card includes a Recycle Bin icon (🗑️) that should allow the Admin to delete that specific testimonial.

Currently, clicking the Recycle Bin icon does nothing.

Expected Functionality

When a user clicks the Recycle Bin icon on a Testimonial card:

  • The testimonial should be removed from the Redux state (testimonialSlice).
  • A DELETE request should be sent to the backend API endpoint.

DELETE /api/v1/deleteTestimonial/:id

Expected Functionality

When a user clicks the Recycle Bin icon on a Testimonial card:

  • The testimonial should be removed from the Redux state (testimonialSlice).
  • A DELETE request should be sent to the backend API endpoint:
    /api/v1/deleteTestimonial/:id (DELETE),
    where :id is the ID of the testimonial being deleted.

⚙️ Tech Stack

  • Frontend: React
  • State Management: Redux Toolkit
  • API Endpoint: /api/v1/deleteTestimonial/:id (DELETE)

🛠️ To-Do

  • Add onClick logic to Recycle Bin icon
  • Create and connect deleteTestimonial thunk
  • Update Redux store on delete
  • Handle errors gracefully
  • (Optional) Add confirmation dialog before deletion
  • (Optional) Show toast/alert after deletion

Discord Server

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the Home page Testimonial section and trace the Testimonial Cards and testimonialSlice. Follow the Recycle Bin icon to connect deletion to DELETE /api/v1/deleteTestimonial/:id, using the selected testimonial ID and the existing error-handling patterns. Done means the request succeeds and the testimonial is removed from Redux state.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react, redux
Domain
api, frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.