Skip to content

Add browse upcoming events pages with verified-only sign-up - #41

Merged
saitunguturu merged 1 commit into
mainfrom
feature/browse-upcoming-events
Nov 17, 2026
Merged

saitunguturu merged 1 commit into
mainfrom
feature/browse-upcoming-events

Conversation

@niranjana2222

Copy link
Copy Markdown
Collaborator

Closes #37

Changes

  • /events lists upcoming events only (no past ones), soonest first, with loading, empty and error states
  • /events/[id] is the event detail page. It reuses the existing workshop detail page instead of copying it
  • Sign-up only works for verified users. Unverified users see a prompt with a link to verify on their profile
  • registerForWorkshop also rejects unverified users, so the check isn't only in the UI
  • Added supabase/seed_events.sql with 3 future and 2 past events for testing

Notes

  • There's no series table in the database, so events here are workshops. Series would need a new table and migration
  • Workshops with no start date aren't listed, since we can't tell if they're upcoming
  • The verified check is in app code only, not a database policy

How to test

  1. Run supabase/seed_events.sql in the Supabase SQL editor
  2. Log in and go to /events. Only the 3 "(future)" events should show
  3. Open one as an unverified user. You should see the verify prompt instead of the Register button
  4. Set verification_status to true on your participants row, reload, and Register should work

@saitunguturu
saitunguturu force-pushed the feature/browse-upcoming-events branch from dc271b7 to 4aa1aeb Compare November 17, 2026 01:26
@saitunguturu
saitunguturu merged commit d5e2544 into main Nov 17, 2026
2 checks passed
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.

Browse Upcoming Events

2 participants