Skip to content

feat(frontend): let admins delete a hackathon from the Hackathons page - #450

Merged
sabinem merged 2 commits into
mainfrom
feat/admin-delete-hackathon
Nov 24, 2026
Merged

sabinem merged 2 commits into
mainfrom
feat/admin-delete-hackathon

Conversation

@sabinem

@sabinem sabinem commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Admins can delete a hackathon

Before, a hackathon could only be deleted by calling the API directly. Test runs and mistakes stayed on the platform for good. Now a platform admin can delete one from the admin Hackathons page.

  • Admins: each hackathon on Hackathons has a Delete button. The admin types the hackathon's name to confirm, then it is gone for everyone.
  • Delete hackathon stays locked until the typed name matches exactly. Spaces at either end are ignored.
  • The data is kept in the database, but it cannot be restored from the app.
  • Only admins get the button. The API still also lets a hackathon's owners delete it.

Left out: restoring a deleted hackathon. That needs a new backend call, so it comes in a separate PR.

The backend has had HackathonService.Delete (a soft delete) for a while,
but nothing in the UI called it, so a hackathon could only be removed
over the API.

Each row on the admin Hackathons page (/manage/hackathons) now has a
Delete button. It asks once more in the app's danger confirm dialog,
then calls Delete and stays on the page: the list reloads without the
row, and a line above the table says what happened. A refusal or an
already-deleted hackathon is reported there too.

Only this admin page offers it for now. The backend still also lets
owners delete their own hackathon. There is no Restore RPC yet, so a
deleted hackathon can't be brought back from the app.
A hackathon delete cannot be undone from the app, and a single confirm
@sabinem
sabinem merged commit e6e739c into main Nov 24, 2026
4 checks passed
@sabinem
sabinem deleted the feat/admin-delete-hackathon branch November 24, 2026 12:24
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