Repository navigation
Undo delete, past-event archive, cancel, and guest pages for gone events - #7
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Wave 1 of the event lifecycle spec (features 1, 2, 4, 5). - Deleting an event now sets deleted_at instead of removing it. Every host read and write path filters deleted rows in one place (getHostEvent, listHostEvents, headcountForEvents), so host pages 404 and host writes are rejected. restoreEvent clears it; the dashboard's "Deleted ... Undo" notice looks the id up host-scoped and only for deleted events. - purgeDeletedEvents runs lazily on dashboard load, host-scoped, and hard deletes anything deleted more than 30 days ago (children cascade). - Dashboard splits Upcoming (soonest first) from a collapsed Past details block (most recent first); grouping is a pure helper in lib/event-state, where eventState also derives deleted > cancelled > past > upcoming. Cancelled events stay in their date bucket with a badge. - cancelEvent/uncancelEvent services and edit-page actions, a host layout cancellation banner with a copyable message, and an invite stub that hides when cancelled. - Guest pages: a deleted event renders a friendly "no longer available" slip with the host's name; a cancelled one renders read-only with a "Cancelled by <host>" notice and the guest's existing answer. submitRsvp/updateRsvp reject both server-side. - DeleteEventSection loses its confirm step (deletable is now reversible) and gains a pending state; a shared SubmitButton backs the new forms. Co-Authored-By: DeepSeek V4.1 Flash <noreply@opencode.ai>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
HeWillCook
force-pushed
the
feat/lifecycle
branch
from
November 16, 2026 03:27
597ccb9 to
b07060a
Compare
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.
Wave 1 of the lifecycle & polish spec. Stacked on #6; will be rebased onto main once #6 merges. Uses migration
0005(already on production).What
deleted_at). The dashboard showsDeleted "…" [Undo](POST, host-scoped). Deleted events are purged lazily after 30 days. Every host read and write path excludes deleted events, either directly or viagetHostEvent; the audit is in the child report and covered by tests.eventStatehelper with precedence deleted > cancelled > past (start + 12h) > upcoming.Tests
120 targeted tests pass locally across event-state, events/rsvp services, actions, components, duplicate and the guest pages; typecheck and lint are clean.
🤖 Generated with Claude Code