feat(dashboard): delete a form (with confirmation)#75
Merged
Conversation
Adds a red "Delete" button next to Edit in the forms list (managers only), guarded by a confirm dialog. - api: `DELETE /api/guilds/[guildId]/forms/[formId]` (owner/admin, form ∈ guild). Cascade removes versions, submissions, events, files and form status defs; stored file objects are purged from object storage best-effort afterwards. - ui: `DeleteFormButton` client component (confirm → DELETE → refresh); shown only to managers (forms page now resolves canManageForms). - i18n DE/EN (deleteForm / deleteFormConfirm / deleteFormFailed).
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.
Adds the ability to delete a form — a red Delete button next to Edit in the forms list (managers only), guarded by a confirm dialog.
Changes
DELETE /api/guilds/[guildId]/forms/[formId](owner/admin, form ∈ guild). The cascade removes versions, submissions, events, files and the form's status defs; stored file objects are purged from MinIO best-effort after the row is gone.DeleteFormButtonclient component (confirm → DELETE →router.refresh()), shown only to managers (the forms page now resolvescanManageForms).deleteForm/deleteFormConfirm/deleteFormFailed).Validation
pnpm typecheck,pnpm lint,pnpm buildgreen.