Skip to content

feat(events): show spots left under who's going for capacity-limited events - #1163

Merged
leahpeker merged 2 commits into
mainfrom
feat-event-capacity-count
Jul 24, 2026
Merged

feat(events): show spots left under who's going for capacity-limited events#1163
leahpeker merged 2 commits into
mainfrom
feat-event-capacity-count

Conversation

@leahpeker

Copy link
Copy Markdown
Collaborator

Summary

  • Adds a small "{spotsLeft}/{maxAttendees} spots left" line under the "who's going" heading on the event detail page.
  • Uses the existing spotsLeft() helper from models/event.ts — no new logic.
  • Only renders when the event has a capacity (maxAttendees !== null); hidden for uncapped events.

Test plan

  • make agent-frontend-typecheck — clean
  • make agent-frontend-lint — clean
  • EventMemberSection.test.tsx — 34/34 passed (2 new tests covering shown/hidden cases)

Adds "{spotsLeft}/{maxAttendees} spots left" under the "who's going"
heading on the event detail page, using the existing spotsLeft() helper.
Only rendered when the event has a capacity limit set.
@leahpeker
leahpeker merged commit e958111 into main Jul 24, 2026
3 checks passed
@leahpeker
leahpeker deleted the feat-event-capacity-count branch July 24, 2026 22:00
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