Skip to content

Feature(challenge): Deleting challenge modal#783

Open
otrocadev wants to merge 11 commits intodevelopfrom
feature/#251-deleting-challange-modal
Open

Feature(challenge): Deleting challenge modal#783
otrocadev wants to merge 11 commits intodevelopfrom
feature/#251-deleting-challange-modal

Conversation

@otrocadev
Copy link
Collaborator

@otrocadev otrocadev commented Mar 12, 2026

Task IT-Academy-BCN/ita-challenges#251

📍 Context

Deletion is an irreversible action. To prevent accidental data loss, a confirmation modal is required before the deletion is executed. The modal also needs to handle and communicate failure states clearly in case the API call does not succeed, so the mentor is never left without feedback.

Important

This PR follows its previous one #780

🏁 Objective

Build a reusable confirmation modal component that handles three states: idle/confirmation, loading, and error — providing the mentor with a safe and informed deletion experience.

🔧 Changes done

  • Create new modal components in the common modal service to manage all cases (Question, success and error)
  • Implement three UI states: confirmation prompt, loading/pending, and error message
  • Confirmation action emits an event or calls a callback to proceed with deletion
  • Cancel action closes the modal without triggering any changes
  • Error state displays a clear message and allows the mentor to retry or dismiss

Warning

The current implementation uses mocked data to be able to test the implementation easily. Bear in mind that the next task, solves this. IT-Academy-BCN/ita-challenges#252

❌ Out of Scope

🕹️ Demo

Screen.Recording.2026-03-12.at.12.45.55.mov

@otrocadev otrocadev marked this pull request as draft March 12, 2026 11:56
@sonarqubecloud
Copy link

@otrocadev otrocadev marked this pull request as ready for review March 12, 2026 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant