feat: add admin upcoming events list - #48
Open
DJCrossman wants to merge 1 commit into
Open
Conversation
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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
4 tasks
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 3/4 — stacked on #47 (data layer). Next: event detail with show-up predictions.
Summary
/adminnow 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).HydrationBoundaryper house pattern; the query key is exported fromhooks/useAdminEvents.tsand imported by the page, so prefetch and client query share one key (avoids thetimeFilter/time_filterdrift bug that exists in the public events page).KeyTypeunion extended with'admin-events'. Page re-checksrequireAdminOrRedirect()(defense in depth on top of proxy + layout).Test plan
bun run lint/bun run buildpass/adminshows the 12 upcoming events with correct sold/capacity (e.g. Code Together 24/24); draft events badged/adminstill redirects to login🤖 Generated with Claude Code