Skip to content

Display attendee counts on event cards#2104

Merged
maernest04 merged 2 commits intodevfrom
ernest_ma/display_attendee_count
Apr 27, 2026
Merged

Display attendee counts on event cards#2104
maernest04 merged 2 commits intodevfrom
ernest_ma/display_attendee_count

Conversation

@maernest04
Copy link
Copy Markdown
Collaborator

@maernest04 maernest04 commented Apr 26, 2026

PR for #2098

Problem

Event cards did not show how many people were going, even though event platforms like Luma and Facebook Events commonly display a {number} going count.

This depends on backend support from SCE-Development/SCEvents#95.

Solution

  • Added attendance summary fetching from SCEvents.
  • Rendered attendee count in the event card metadata section.
  • Displayed the count as {number} people going.
  • Kept attendance visibility aligned with the current admin-only backend behavior.
  • Updated event date/time formatting to be more readable.

Files Changed

  • Clark/src/APIFunctions/SCEvents.js
  • Clark/src/Pages/Events/Events.js
  • Clark/src/Pages/Events/EventsRegistation.js

Other Changes Made

Event Registration Now Submits To SCEvents

The event registration page previously showed a success message without creating a SCEvents registration.

Solution: added registerForSCEvent and wired the registration form to POST /events/:id/register.

Registration Success Message Is Stricter

Clark could show success even when SCEvents had not completed the registration.

Solution: only treat 201 Created from SCEvents as a completed registration.

Event Date And Time Are Easier To Read

Event cards previously displayed raw date/time values.

Solution: format dates as month/day/year text and times in 12-hour AM/PM format.

Possible Follow-Up Issues

  • Update Clark once SCEvents supports public attendee counts for all users, if the backend visibility changes from admin-only.
  • Add frontend tests for attendance count rendering and registration submission.

Screenshots

Member view

Screenshot 2026-04-26 at 12 13 09 AM

Admin view

Screenshot 2026-04-26 at 12 13 12 AM

Copy link
Copy Markdown
Collaborator

@steeevin88 steeevin88 left a comment

Choose a reason for hiding this comment

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

can you rebase + add screenshots

- Fetch attendance summaries from SCEvents
- Show attendee counts on event cards for admins
- Submit event registration forms to SCEvents
- Format event date and time for display
- Only treat completed registrations as successful
@maernest04 maernest04 force-pushed the ernest_ma/display_attendee_count branch from ff6a3a6 to f3517aa Compare April 26, 2026 06:19
Copy link
Copy Markdown
Collaborator

@steeevin88 steeevin88 left a comment

Choose a reason for hiding this comment

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

thanks for adding the screenshot!

@maernest04 maernest04 merged commit dff119b into dev Apr 27, 2026
4 checks passed
@maernest04 maernest04 deleted the ernest_ma/display_attendee_count branch April 27, 2026 01: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.

3 participants