Skip to content

feat: add admin upcoming events list - #48

Open
DJCrossman wants to merge 1 commit into
feat/admin-02-eventbrite-datafrom
feat/admin-03-events-list
Open

feat: add admin upcoming events list#48
DJCrossman wants to merge 1 commit into
feat/admin-02-eventbrite-datafrom
feat/admin-03-events-list

Conversation

@DJCrossman

Copy link
Copy Markdown
Contributor

Stack 3/4 — stacked on #47 (data layer). Next: event detail with show-up predictions.

Summary

  • /admin now lists upcoming events (drafts included): card grid with Regina-zone date, venue, draft badge, and sold/capacity progress bar; cards link to /admin/events/[id] (404 until PR 4/4 — expected).
  • Server prefetch + HydrationBoundary per house pattern; the query key is exported from hooks/useAdminEvents.ts and imported by the page, so prefetch and client query share one key (avoids the timeFilter/time_filter drift bug that exists in the public events page).
  • KeyType union extended with 'admin-events'. Page re-checks requireAdminOrRedirect() (defense in depth on top of proxy + layout).
  • Loading skeleton, error, and empty states.

Test plan

  • bun run lint / bun run build pass
  • As admin: /admin shows the 12 upcoming events with correct sold/capacity (e.g. Code Together 24/24); draft events badged
  • Logged out: /admin still redirects to login

🤖 Generated with Claude Code

Replaces the /admin placeholder with the events list: prefetched server-
side via the shared adminEventsQueryKey (exported from the hook so the
hydration key can't drift from the client query), rendered by
AdminEventsScene as a card grid with Regina-zone start time, venue,
draft badge, and sold/capacity progress. Cards link to the event detail
page added in the next PR.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Aug 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
website Ready Ready Preview Aug 21, 2026 5:15pm

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