Skip to content

Chirag: Fixed user registration for activites#5138

Open
ChiragBellara wants to merge 3 commits intodevelopmentfrom
chirag-fix-user-registration-for-activities
Open

Chirag: Fixed user registration for activites#5138
ChiragBellara wants to merge 3 commits intodevelopmentfrom
chirag-fix-user-registration-for-activities

Conversation

@ChiragBellara
Copy link
Copy Markdown
Contributor

@ChiragBellara ChiragBellara commented Apr 12, 2026

Description

Screenshot 2026-04-12 at 12 21 46 AM

Related PRS (if any):

This frontend PR is related to the OneCommunityGlobal/HGNRest#2152 backend PR.

Main changes explained:

  • Updated the registration logic on the UI
  • Updated the UI to hide profile pictures because all the values are null right now
  • Added logic to update the number of registrants, number of empty seats etc on registration
  • Added logic to display a newly registered user on the list below

How to test:

  1. check into current branch
  2. do npm install and npm run start:local to run this PR locally
  3. Clear site data/cache
  4. log as admin user
  5. navigate to /communityportal
  6. click on any of the activity cards
  7. if you are not already registered, click on the Register button
  8. once clicked, it should register you to the event, add your name to the list of Attendees at the bottom of the page
  9. it should also not allow you to click on the register button again
  10. the number of current attendees and spots left should also get updated on registration

Screenshots or videos of changes:

activity_registration_fix.mov

Note:

It is possible that the number of current attendees may not match the number of people listed in the Attendees list initially. That is because the registration API was just implemented and all the entries before that were done directly to the DB causing the calculation inconsistency on the UI. We need to flush the DB to resolve the inconsistency and that can be done once the changes an PR is approved.

@netlify
Copy link
Copy Markdown

netlify bot commented Apr 12, 2026

Deploy Preview for highestgoodnetwork-dev ready!

Name Link
🔨 Latest commit bb40911
🔍 Latest deploy log https://app.netlify.com/projects/highestgoodnetwork-dev/deploys/69db5bfc897e2d0008ef804c
😎 Deploy Preview https://deploy-preview-5138--highestgoodnetwork-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@ChiragBellara ChiragBellara marked this pull request as ready for review April 12, 2026 08:14
@sonarqubecloud
Copy link
Copy Markdown

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