Skip to content

Render event based on user registration status#2109

Merged
trista-chen-29 merged 1 commit intodevfrom
trista/events_registration_status
Apr 27, 2026
Merged

Render event based on user registration status#2109
trista-chen-29 merged 1 commit intodevfrom
trista/events_registration_status

Conversation

@trista-chen-29
Copy link
Copy Markdown
Collaborator

@trista-chen-29 trista-chen-29 commented Apr 27, 2026

Closes #2097

Backend dependency

Relies on SCEvents returning registration_status in the events response (JWT-authenticated).

Changes

  • Attach JWT token to SCEvents API requests (getAllSCEvents, getEventByID)
  • Enable user-specific event data (e.g. registration_status)
  • Update CalendarView popup:
    • Registered → disabled CTA
    • Pending → disabled CTA
    • Rejected → unavailable state
  • Add full-page status views in EventRegistration:
    • Registered
    • Pending
    • Waitlisted (UI support, not full logic)
    • Rejected (UI support, not full logic)
  • Refactor status UI into reusable StatusPanel component

Screenshots

Register

Screenshot 2026-04-27 at 2 27 41 PM This event was created earlier and has no registration form fields, but users can still register. Screenshot 2026-04-27 at 2 27 50 PM Shown immediately after a user submits a registration request. The duration depends on backend processing time. Screenshot 2026-04-27 at 2 42 08 PM Screenshot 2026-04-27 at 2 27 58 PM Screenshot 2026-04-27 at 3 10 20 PM

Registration unavailable

Screenshot 2026-04-27 at 3 38 30 PM

Notes

  • Enables personalized event data via authenticated requests
  • Without JWT, registration_status is not returned by backend
  • Waitlist and rejection behavior depend on backend logic and related PRs

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.

nice thanks!

@trista-chen-29 trista-chen-29 merged commit fd94d75 into dev Apr 27, 2026
4 checks passed
@trista-chen-29 trista-chen-29 deleted the trista/events_registration_status branch April 27, 2026 23:32
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.

Render event cards differently based on users' registration status

3 participants