Files
fete/specs/018-cancel-event-list/data-model.md
nitrix b067c0ef1e
All checks were successful
CI / backend-test (push) Successful in 58s
CI / frontend-test (push) Successful in 26s
CI / frontend-e2e (push) Successful in 1m35s
CI / build-and-publish (push) Has been skipped
Add organizer cancel-event flow to EventList
Organizers can now cancel events directly from the event list via the
existing PATCH /events/{eventToken} API. The confirmation dialog shows
role-differentiated messaging: "Cancel event?" with a severity warning
for organizers vs. "Remove event?" for attendees. Responses 204, 409,
and 404 all result in successful removal from the local list.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 16:23:04 +01:00

1.4 KiB

Data Model: Cancel Event from Event List

Date: 2026-03-12 | Branch: 018-cancel-event-list

No New Entities

This feature introduces no new entities, fields, or relationships. All required data structures already exist.

Existing Entities Used

StoredEvent (frontend localStorage)

Field Type Notes
eventToken string (UUID) Used as path param for cancel API
organizerToken string (UUID) | undefined Present only for organizer role; used as query param
rsvpToken string (UUID) | undefined Present only for attendee role
rsvpName string | undefined Attendee display name
title string Event title for dialog context
dateTime string Event date/time

Role Detection (derived, not stored)

Role Condition Delete Action
organizer organizerToken present PATCH cancel-event API
attendee rsvpToken present (no organizerToken) DELETE cancel-rsvp API
watcher neither token present Direct localStorage removal

API Contracts Used

Endpoint Method Auth Body Success Already Cancelled
/events/{eventToken} PATCH ?organizerToken=... { cancelled: true } 204 409 (treat as success)
/events/{eventToken}/rsvps/{rsvpToken} DELETE rsvpToken in path 204 204 (idempotent)