Repository navigation
Site: events from Supabase, event pages and All events - #321
Merged
Merged
Conversation
… has a stream link
…ng with Meet the Pros
…t, and All events opens every ticket
…for no event and a failed load
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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.
Summary
The home page now reads events from Supabase instead of placeholders, every ticket opens that event's own page at
/events/<slug>, and "All events" in the calendar opens every ticket, past ones included. The event page is laid out plainly for now; the designed version comes next.Part of #200
Type of change
What changed
lib/club-events.ts+listClubEvents: Coming up, the calendar and the Next up card read the events table, cached until the events change like the rest of the home page.content/events.ts(placeholders) is gone.lib/places.ts: where an event is (N2085,LH · 3rd floor staircase,Online) from its building and room, falling back to the oldlocationtext. Meet the Pros uses it too, since the admin clearslocationonce a building is picked.TicketFace.astro: the ticket itself, now shared.EventTicketkeeps only the booth's printing, tilt and Next up stamp around it. The whole ticket links to the event's page.TicketArchive.astro: "All events", a small ticket-shaped button in the calendar's bottom corner, opens a popup of every ticket: upcoming first, then past ones on grey used stubs./events/[slug](rendered on each visit):The page has separate states for no such event (404) and a failed load (503), so a failure never looks like a missing event.
lib/event-page.ts: every row is parsed once with zod; the platform, colours (LCS yellow and pink when none are picked), speakers' companies, last time and countdown (Toronto days) are worked out there.Fixes: the picked speaker's face is no longer clipped; the booth owl stays on the booth when the window is resized.
🎨 Frontend only: screenshots
⚙️ Backend / admin only: data changes
.env.exampleand noted below)supabase/v2/14_drop_will_stream.sqldropsevents.will_stream: an event is streamed when it has astream_url. Nothing reads the column any more and no event has it set; the script stops if one is marked streamed with no link, and gives up after 5 seconds rather than waiting on a lock. The admin's database types drop it too. New dependency:markdown-it(and@types/markdown-it).How to test
pnpm i && pnpm devinapps/site/events/<slug>./events/not-a-real-event: it says there's no event there, with a way back.Checklist
pnpm lintandpnpm buildpass locally.envfiles committed (anon key only on the client, never the service role key)