Skip to content

Feat (challenge): Editor chellenge danger zone UI#780

Open
otrocadev wants to merge 6 commits intodevelopfrom
feature/#250-editorChellenge-danger-zone-ui
Open

Feat (challenge): Editor chellenge danger zone UI#780
otrocadev wants to merge 6 commits intodevelopfrom
feature/#250-editorChellenge-danger-zone-ui

Conversation

@otrocadev
Copy link
Collaborator

Link to the task IT-Academy-BCN/ita-challenges#250

📍 Context

The editorChallenge component is where mentors manage challenge content. Currently there is no dedicated area for destructive actions. Mixing destructive actions with regular editing controls is a UX risk — a clearly separated Danger Zone section is a standard pattern to signal to the user that the actions within it are irreversible.

Important

This is one of the steps that are needed to accomplish the parent task IT-Academy-BCN/ita-challenges#12

🏁 Objective

Add a visually distinct "Danger Zone" section at the bottom of the editorChallenge component that contains the delete trigger, making it clear to the mentor that this area holds destructive actions.

🔧 Changes Done

  • Add a Danger Zone UI section to the editorChallenge component template
  • Style it to be clearly distinguishable (e.g. red accent, warning label, visual separator)
  • Place the delete action trigger (button) inside this section
  • Ensure the section is only rendered for users with the appropriate mentor permissions

❌ Out of Scope

🕹️ Demo

Screen.Recording.2026-03-10.at.18.57.26.mov

Copy link
Collaborator

@JungleGiu JungleGiu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR is coherent with the proposed scope, the UI is well executed and correctly displays in the edit challenge section, i18n translations are working correctly, no destructive changes have been made to other elements. This is a victory!
Approved!

@otrocadev otrocadev changed the title Feature/#250 editor chellenge danger zone UI Feat (challenge): Editor chellenge danger zone UI Mar 12, 2026
Copy link
Collaborator

@polserrano8 polserrano8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks fine. Good job 🤙

@sonarqubecloud
Copy link

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.

4 participants