feat: add admin event detail with attendee show-up predictions - #49
Open
DJCrossman wants to merge 1 commit into
Open
feat: add admin event detail with attendee show-up predictions#49DJCrossman wants to merge 1 commit into
DJCrossman wants to merge 1 commit into
Conversation
Adds /admin/events/[id]: event summary header (Regina-zone date, venue, stat tiles for registered / checked in / expected turnout with the history basis / capacity progress) and the attendee table with name, email, ticket type, status, live checked-in column (60s refetch), and a tiered show-up-chance badge (>=75% green, 50-74% amber, <50% red) with each person's past checkins/registrations; first-timers get a New badge at the community base rate. Cancelled/refunded rows are dimmed with no prediction. Client-side name/email filter. The page prefetches getAttendeeReport server-side under the shared query key and 404s unknown event ids. New hand-rolled table primitives in components/ui/table.tsx follow the existing trimmed shadcn style (the shadcn CLI is unusable here: components.json points at a nonexistent tailwind.config.ts). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Stack 4/4 — stacked on #48 (events list). Completes the admin dashboard.
Summary
/admin/events/[id]: summary header (event image/name/date/venue + stat tiles: Registered, Checked in, Expected turnout with "based on N past events · base rate B%", Capacity with progress) and the attendee table.refetchIntervalso check-ins appear during the event), and Show-up chance — tiered badge (≥75% green / 50–74% amber / <50% red) plus each person'sC/R past events; first-timers get a blue New badge at the base rate; checked-in people show 100%; cancelled/refunded rows are dimmed with no prediction. Client-side name/email filter.getAttendeeReportunder the sharedattendeeReportQueryKey; unknown event ids →notFound(); non-404 prefetch failures fall through to the client hook's retry/error state.components/ui/table.tsxprimitives hand-rolled in the existing trimmed shadcn style (components.jsonis stale, the CLI can't be used).Test plan
bun run lint/bun run buildpass/admin/events/123redirects to login;/api/admin/events/123/attendees→ 401🤖 Generated with Claude Code