Skip to content

fix(web): delete draft events immediately#1881

Merged
tyler-dane merged 1 commit into
mainfrom
fix/delete-alert
Jun 24, 2026
Merged

fix(web): delete draft events immediately#1881
tyler-dane merged 1 commit into
mainfrom
fix/delete-alert

Conversation

@tyler-dane

@tyler-dane tyler-dane commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

What changed

Draft events in the EventForm now close immediately when deleted, instead of flowing through the confirmation alert. The delete hotkey and the action menu both share the same draft-aware delete path.

Why

Drafts are unsaved state. They should discard directly rather than asking for a confirmation that only applies to persisted events.

Impact

Deleting a draft event now behaves like a discard action, which removes an unnecessary confirmation step and matches the user expectation for unsaved work.

Validation

  • TZ=Etc/UTC bun run type-check:web-tests
  • TZ=Etc/UTC bun run test:web
  • TZ=Etc/UTC bun run lint

Closes #1879

@tyler-dane tyler-dane force-pushed the fix/delete-alert branch 2 times, most recently from 0345c70 to e0ec11c Compare June 24, 2026 21:21
@tyler-dane tyler-dane marked this pull request as ready for review June 24, 2026 21:29
@tyler-dane tyler-dane merged commit 42d729a into main Jun 24, 2026
9 checks passed
@tyler-dane tyler-dane deleted the fix/delete-alert branch June 24, 2026 21:29
@tyler-dane tyler-dane changed the title [codex] fix(web): delete draft events immediately fix(web): delete draft events immediately Jun 24, 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.

"Delete this event?" alert shows when deleting a draft event

1 participant