Skip to content

fix(events): move attendee roster into the edit form (web + native)#525

Merged
KishParikh13 merged 1 commit into
v2from
fix/attendees-roster-edit-only
Jun 17, 2026
Merged

fix(events): move attendee roster into the edit form (web + native)#525
KishParikh13 merged 1 commit into
v2from
fix/attendees-roster-edit-only

Conversation

@KishParikh13

Copy link
Copy Markdown
Collaborator

Problem

The "Manage attendees" roster card showed on the event detail view. The detail view already shows the attendee list, making the roster redundant there — and because localhost force-trues the admin gate, non-editors saw a "You do not have access to this roster" card.

Change

Move the roster (full list + emails/guests + CSV export) out of the detail view and into the event edit form, shown only when editing an existing event. Only editors can reach the edit form, so it's naturally editor-only.

Removed from detail views: app/events/[id].tsx (native), app/events/[id].web.tsx (web full-page), components/events/EventDetailPanel.web.tsx (Explore split-view, both layouts).

Added to edit forms ({isEdit && eventId}): app/events/form.tsx (native), app/events/form.web.tsx (web full-page), components/events/EventFormPanel.web.tsx (Explore split-view).

Verify

  • Non-editor on an event: no "Manage attendees" card (just the attendee list).
  • Editor → edit event → roster + CSV export at the bottom of the form.
  • Both web and native. tsc --noEmit clean.

The "Manage attendees" roster (full list + emails/guests + CSV export) showed
on the event detail view, gated by canEdit/canManage. But the detail view
already lists attendees, so the roster was redundant there — and on localhost
the admin gate is force-true, so it surfaced "You do not have access to this
roster" to non-editors.

Move it into the EDIT form (edit-existing only) on both web and native:
- Remove from [id].tsx, [id].web.tsx, and both layouts in EventDetailPanel.web.tsx.
- Add to form.tsx, form.web.tsx, EventFormPanel.web.tsx, gated `isEdit && eventId`.

Only editors reach the edit form, so the roster is naturally editor-only.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying chinmaya-janata with  Cloudflare Pages  Cloudflare Pages

Latest commit: 54a818b
Status: ✅  Deploy successful!
Preview URL: https://9db93ea4.project-janatha.pages.dev
Branch Preview URL: https://fix-attendees-roster-edit-on.project-janatha.pages.dev

View logs

@KishParikh13 KishParikh13 merged commit af647f7 into v2 Jun 17, 2026
3 checks passed
@KishParikh13 KishParikh13 deleted the fix/attendees-roster-edit-only branch June 17, 2026 15:42
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