Skip to content

Site: events from Supabase, event pages and All events - #321

Merged
Flapjacck merged 7 commits into
feat/event-details-formfrom
feat/event-details-site
Nov 30, 2026
Merged

Flapjacck merged 7 commits into
feat/event-details-formfrom
feat/event-details-site

Conversation

@b4sleal

@b4sleal b4sleal commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator

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

  • 🎨 Frontend (public site UI, pages, styles, content)
  • ⚙️ Backend / admin (admin dashboard, Supabase tables, RLS policies, data fetching, config)
  • 📝 Docs / chore (README, CI, dependencies, cleanup)

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 old location text. Meet the Pros uses it too, since the admin clears location once a building is picked.

  • TicketFace.astro: the ticket itself, now shared. EventTicket keeps 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):

    • poster (or a card in the event's colour);
    • the kind and highlights as pills, and partners;
    • At a glance: days away, when, where, dress code, Watch it live;
    • the description from limited Markdown (markdown-it, HTML off);
    • Scan in, or Join online for online events (Zoom/Meet worked out from the link);
    • topics, speakers with "Speakers from", resources and last time.

    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

Before After
Desktop
Mobile
  • Checked on desktop and mobile widths
  • Matches the Marketing design / branding (if a design was given)
  • Images are compressed and have alt text

⚙️ Backend / admin only: data changes

  • No Supabase changes
  • Supabase schema changed (tables/columns listed below, with a migration or SQL included)
  • RLS policies added or changed (only signed-in execs can write; public can only read)
  • New environment variables (added to .env.example and noted below)

supabase/v2/14_drop_will_stream.sql drops events.will_stream: an event is streamed when it has a stream_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

  1. pnpm i && pnpm dev in apps/site
  2. Check Coming up shows the real upcoming events, then click a ticket: it opens /events/<slug>.
  3. In the calendar's bottom corner, open All events: past events are below the upcoming ones on grey stubs. Open one.
  4. On an event page, check At a glance, the pills, description, speakers, resources and last time against what's in the admin. Try an online event (Join online, no Scan in).
  5. Visit /events/not-a-real-event: it says there's no event there, with a way back.

Checklist

  • pnpm lint and pnpm build pass locally
  • PR is small and focused on one issue
  • I understand every line of this code (AI-assisted is fine, AI-authored without review is not)
  • No secrets, keys, or .env files committed (anon key only on the client, never the service role key)
  • Docs/README updated if setup, routes, or env vars changed

@b4sleal b4sleal self-assigned this Nov 30, 2026
@vercel

vercel Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
admin_page Ready Ready Preview Nov 30, 2026 3:56am UTC
better-website Ready Ready Preview Nov 30, 2026 3:56am UTC

@Flapjacck Flapjacck left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Flapjacck
Flapjacck merged commit d1b0778 into main Nov 30, 2026
5 checks passed
@Flapjacck
Flapjacck deleted the feat/event-details-site branch November 30, 2026 17:22

This branch was successfully deployed

1 active deployment
Preview – better-website — 09747115 Deployed Nov 30, 2026 by vercel[bot]
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.

2 participants