Repository navigation
Description
Summary
Registration rows are admin-only, so a program manager's only view of who signed up is the email that announced it, and the Events Registrations tab renders empty for them. This ticket adds a Registrations tab on an event that its own manager, and an admin, can open: name, email, date and answers, with withdrawn registrations shown separately.
Goal context
Part of #1067: the digest's New registrations section links here.
Approach
- A custom edit-view tab on Events (
admin.components.views.edit.registrations, path/registrations), a server component. A collection edit view sits behindRoot's own auth redirect, so norequireAdminAccess; the tab'sconditionhides it from non-managersusers, and the component itself is the gate: admin orevent.manager === user.id, otherwise the unauthorized redirect carrying the route back asredirect. - Reads
user-submissionsoftype: registrationfor that one event withoverrideAccess: trueand an explicitwhere, selecting only the row's own columns (senderEmail,submissionData,status,createdAt,startingAt), neverusers. Name comes offsubmissionDatathroughreadSubmissionValue, answers throughbuildRegistrationAnswers(answersFrom(submissionData)), asSendRegistrationDigestsdoes. - Two filters, Active and Withdrawn, drawn by
isActiveRegistration(src/lib/registrations/active.ts), kept in the URL asAtlasManagerViewkeeps its tab. Columns: name, email, registered on, status, answers. SameTable,Pilland filter-button idiom assrc/components/admin/Dashboard/AtlasManager/AtlasManagerView.tsx, withPaginationpast one page. - The
registrationsjoin on Events (src/collections/Events/Events.ts:552) stays, behind an admin-onlyadmin.condition: it is the admin's drawer-open path, and it renders empty for every manager.
Reuse
The prototype's "Region manager home" artboard (https://claude.ai/artifact/EEEx2P7pijazypguUsp59N, private) shows the table idiom; this tab is one such table with two filters. Reuse Table, Pill, Button and Pagination from @payloadcms/ui, tableColumn and CenteredNotice from src/components/admin/, the filter-button row and useProgramQuery from AtlasManagerView (lift the hook to src/components/admin/helpers/ once this is its second consumer), and readSubmissionValue, answersFrom, buildRegistrationAnswers, isActiveRegistration and formatShortDate. Nothing new to build.
Interfaces
Provides the route /admin/collections/events/<id>/registrations, which the digest child links from its New registrations section.
Provides GET /api/events/:id/registrations/csv, admin-panel only.
Acceptance criteria
- The event's manager sees that event's registrants, with name, email, date and answers.
- Another manager, region manager included, opening the route is redirected to the unauthorized view.
- An admin sees the same tab and still has the join on the edit view.
- The page reads no
usersrow and no other event's rows. - Three filters — Accepted, Pending, Withdrawn — each carrying its own count, Accepted first. A withdrawn row says which of
rejected,spamorfailedit is, beside the row. (review, Ardnived, 2026-11-04) - The Registrations tab carries a count of accepted registrations, behind the view's own gate, so a refused visitor does not learn it. (review, Ardnived, 2026-11-04)
-
GET /api/events/:id/registrations/csvserves the accepted registrants as a spreadsheet through that same gate, one column per question anyone answered. (review, Ardnived, 2026-11-04) - The gate refuses a manager the event still names once their account is
inactive. (review, Ardnived, 2026-11-04)
Verification checklist
-
pnpm exec vitest run tests/int/atlas-manager.int.spec.ts --config ./vitest.config.mts, with a case for each criterion above that drives the view's loader directly. -
pnpm exec vitest run tests/unit/sanitized-config-rules.spec.ts tests/unit/client-bundle-safety.spec.ts --config ./vitest.config.mtsafterpnpm generate:importmap. -
.claude/skills/pr-prep/check.sh - On the PR preview, as an event's manager:
/admin/collections/events/<id>/registrationslists its registrants with all three filters, and Download accepted (CSV) returns a file. As another manager: redirected, and the CSV route answers 403.
Notes
- Part of Every Atlas manager gets a digest and a home shaped for their role #1067. Independent of the roles ticket.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Hold Until
Projects
- StatusShow more project fieldsDone
Activity
Ardnived commentedon Nov 2, 2026
@sydevs-bot implement
sydevs-bot commentedon Nov 2, 2026
🤖 no session running
approved by Ardnived
recent dispatches
Written by the sydevs dispatcher. Sessions never edit this comment.
merge(main): resolve tests/COVERAGE.md against the Registrations empt…