Skip to content

Add frontend waitlist support for events#2111

Merged
steeevin88 merged 2 commits intodevfrom
mita/frontend-waitlist
Apr 28, 2026
Merged

Add frontend waitlist support for events#2111
steeevin88 merged 2 commits intodevfrom
mita/frontend-waitlist

Conversation

@miiiyyi
Copy link
Copy Markdown
Collaborator

@miiiyyi miiiyyi commented Apr 28, 2026

Closes #2091
Summary
This PR adds frontend support for event waitlisting in Clark.

What changed

  • added waitlist controls to event create and edit pages
  • added waitlist_enabled and waitlist_size to the create/update event payloads
  • added a joinWaitlistForSCEvent API helper for POST /events/:id/waitlist
  • updated the event popup CTA logic to:
    • show Register when spots are available
    • show Join waitlist when the event is full and waitlist is enabled
    • stop offering normal registration for full events without a waitlist
  • added frontend validation for invalid waitlist sizes

Notes

  • current frontend only knows waitlist_enabled and waitlist_size
  • waitlist occupancy/count is not currently exposed by SCEvents, so Clark cannot yet show exact remaining waitlist spots or disable the button ahead of time when the waitlist is already full. a follow-up update could expose waitlist occupancy/count from SCEvents so Clark can show clearer UI like waitlist spots: 2 instead of just waitlist available, and disable the Join waitlist button ahead of time when the waitlist is already full instead of only showing an error after the user clicks it

Screenshots:
create event with waitlist enabled:
Screenshot 2026-04-27 at 9 07 54 PM
Screenshot 2026-04-27 at 9 08 00 PM

create event with waitlist disabled:
Screenshot 2026-04-27 at 9 08 25 PM
Screenshot 2026-04-27 at 9 08 35 PM

user trying to register for an event that is full but waitlist is enabled:
Screenshot 2026-04-27 at 9 11 00 PM

user trying to register for an event that is full but waitlist is disabled:
Screenshot 2026-04-27 at 9 11 17 PM

user trying to join a waitlist that is full:
Screenshot 2026-04-27 at 9 13 17 PM

@steeevin88 steeevin88 merged commit 757bf4d into dev Apr 28, 2026
4 checks passed
@steeevin88 steeevin88 deleted the mita/frontend-waitlist branch April 28, 2026 23:34
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.

Add frontend logic for event waitlists

3 participants