Feature(challenge): Deleting challenge modal#783
Open
Conversation
…utton in edit mode
…n keys to ca, en, and es locales
…s with danger button styling
…onfirmation and success modals
…and error modals with TranslateService mock
…and getChallengeById dev mock data
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



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
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