Skip to content

Hosts can delete an event - #5

Merged
HeWillCook merged 1 commit into
mainfrom
t3/delete-event-ux-features
Nov 16, 2026
Merged

HeWillCook merged 1 commit into
mainfrom
t3/delete-event-ux-features

Conversation

@HeWillCook

Copy link
Copy Markdown
Owner

What

  • Danger zone on Edit details: "Delete event" reveals an inline confirmation naming the event; "Yes, delete it" / "Cancel".
  • deleteEvent service deletes only where the event belongs to the signed-in host (bound action args aren't trusted); all child tables already cascade, so no migration.
  • Dashboard shows a dismissible Deleted "<title>". notice after redirect.
  • Button now forwards refs (focus moves to the confirm button) and gains a danger variant.

Tests

Service tests (own event + cascade, other host's event, unknown id), action tests, and component tests for the confirm flow. Full suite, lint, typecheck and build pass locally.

🤖 Generated with Claude Code

Danger zone on the edit page with an inline confirmation; the delete is
scoped to the signed-in host and cascades to everything on the event.
The dashboard confirms with a dismissible notice.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
cookout Ready Ready Preview Nov 16, 2026 2:51am UTC

@HeWillCook
HeWillCook merged commit 7566e69 into main Nov 16, 2026
3 checks passed
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