Skip to content

fix: make delete a soft delete with a revoke action - #5

Merged
tmimmanuel merged 1 commit into
mainfrom
feat/admin-soft-delete
Jul 23, 2026
Merged

fix: make delete a soft delete with a revoke action#5
tmimmanuel merged 1 commit into
mainfrom
feat/admin-soft-delete

Conversation

@tmimmanuel

Copy link
Copy Markdown
Contributor

Summary

  • Delete no longer removes a row: it's dimmed, gets a "deleted" badge, and shows a Revoke button in place of Delete.
  • Uses the new POST /api/admin/evaluations/{id}/revoke and POST /api/admin/submissions/{id}/revoke backend endpoints (companion PR: fix: make evaluation/submission delete a soft delete with revoke minirouter#243).
  • deleteEvaluation/deleteSubmission in lib/api.ts now return the updated resource (backend returns 200 + the resource instead of 204) so rows update in place instead of vanishing from local state.

Test plan

  • npm run build passes
  • npm run lint passes
  • Manually delete + revoke a row in each table against a running backend

Deleting a row previously removed it permanently. Delete now shows a
"deleted" badge and dims the row instead of removing it, and a Revoke
button appears in its place, backed by the new
POST /api/admin/evaluations/{id}/revoke and
POST /api/admin/submissions/{id}/revoke endpoints (companion PR in
minirouter). deleteEvaluation/deleteSubmission now return the updated
resource instead of void, so the row updates in place rather than
disappearing from the table.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@tmimmanuel
tmimmanuel merged commit 98cb791 into main Jul 23, 2026
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