Skip to content

Event pages: a Speakers tab, company links, and points for every kind of event - #329

Open
b4sleal wants to merge 7 commits into
mainfrom
feat/event-page-extras
Open

b4sleal wants to merge 7 commits into
mainfrom
feat/event-page-extras

Conversation

@b4sleal

@b4sleal b4sleal commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

The event edit page is split into tabs, and the speakers panel from #327 becomes a Speakers tab, with a fix so a failed save can't lose speakers. Companies get a link that their partner chip opens on the site, an event's points ("What's in store") work for every kind of event, and online events show the real Zoom or Meet logo.

Part of #328

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

  • Speakers save fix.
    • saveHosts from Admin: speakers and hosts on the event page #327 deleted removed hosts first and wrote the list after, so a failed write lost speakers.
    • It now writes the list in order first, then removes whoever was taken out: one removal per kind, not one per person.
    • Each read is checked against its row: only the person the row names, and only one.
  • Tabs on the event edit page: Details, Speakers (with a count) and On the page, plus a Photos link.
    • The tab is in the URL (?tab=speakers).
    • Arrow keys move between tabs.
    • Every tab stays mounted, so switching never loses what's been typed.
  • Speakers tab (replaces EventHostsPanel):
    • Split into small files (panel, row, picker, face, choices).
    • Speakers in the site's order: face in a company-colour ring, title and company. Team members are tagged.
    • Arrows, remove, and Add a speaker, which searches guests and the team. Each group loads and fails on its own.
    • The moved row stays highlighted until saved.
    • On a phone each row shows the face and name only.
    • When a team member is on the list, the panel says the site's speaker cards show guests only for now.
  • Companies:
    • A Link field (companies.link), opened from the company's chip under "In collaboration with".
    • Delete is on each company's row next to Edit. It asks first, and its guests stay.
  • Sheets: one scroll area (the dialog), and the page keeps its scrollbar's space while one is open.
  • What's in store (was "What they'll cover"):
    • An event's points work for any kind of event.
    • The site heading follows the kind: "What we'll go over", "What's planned", "What you'll learn", "What's happening" or "What they'll cover".
    • The admin name avoids clashing with the form's "What to expect" (highlights).
  • Join online: the Zoom and Google Meet logos, a platform button that drops below the text on a phone, and a line that it runs in the browser.
  • v2 schema follow-ups: companies.link, events.location and diagram notes #328 (part):
    • companies.link has its own step, 17_company_links.sql (step 18), with add column if not exists. No extra line in 99_rollback.sql: dropping the v2 schema takes the column with it.
    • Step 16's header was already right: headers use the README's step numbers, one ahead of the file numbers from step 7 on. The README now says so.
    • The team diagram marks its nullable columns, checked against the live schema.
    • Dropping events.location comes in the next PR, with the events CSV switching to building, room and format.
  • docs/admin-guide.md covers the tabs, Speakers, company links, Delete and What's in store. The separate "Speakers and hosts" section is folded into "Change or delete an event".

🎨 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/17_company_links.sql adds companies.link text (an https:// address or empty). Already applied to LCS-Site; the step is safe to run again. Speakers use the existing event_hosts table; the existing policies cover both (anyone reads, admins write).


How to test

  1. pnpm i && pnpm dev in apps/admin and apps/site
  2. Edit Meet the Professionals and switch tabs. Type in Details, switch away and back: nothing is lost.
  3. On the Speakers tab, move someone up, save and refresh. The order sticks, and the event's speaker cards on the site follow it.
  4. Add a guest and a team member with Add a speaker, then remove one and save.
  5. On Companies, add a link to a partner. Its chip on the event's page opens it. Delete a test company from its row.
  6. Open an online event with a Zoom or Meet link to see the logo and button. A review's points are headed "What we'll go over".

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 Dec 1, 2026
@vercel

vercel Bot commented Dec 1, 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 Dec 1, 2026 5:41am UTC
better-website Ready Ready Preview Dec 1, 2026 5:41am UTC

This branch was successfully deployed

1 active deployment
Preview – better-website — 66de9b8e Deployed Dec 1, 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.

1 participant