Sanjeev: Fix Create New Event Button in Upcoming Events Section#4366
Sanjeev: Fix Create New Event Button in Upcoming Events Section#4366one-community merged 20 commits intodevelopmentfrom
Conversation
✅ Deploy Preview for highestgoodnetwork-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
…ighestGoodNetworkApp into Sanjeev-fix-create-new-event-button
|
Shravan-neelamsetty
left a comment
There was a problem hiding this comment.
Hi Sanjeev, I tested this PR locally after temporarily commenting out the missing CSS import on line 23 of CreateEventModal.jsx ("../../../Header/DarkMode.css" doesn't exist and causes a build error). After this fix, I navigated to /communityportal/reports/participation and clicked the "+ Create New" button, which successfully opens the event creation modal. The form displays all necessary fields correctly, and I verified in the Network tab that submitting an event returns status 201 with the created event object, confirming the backend integration works.



There was a problem hiding this comment.
Hi Sanjeev, I performed local testing on this PR and identified a build issue caused by the missing DarkMode.css import reference on line 23 of CreateEventModal.jsx. Upon commenting out this problematic import, I proceeded to test at /communityportal/reports/participation where the "+ Create New" button successfully triggered the event creation modal. All form fields rendered as expected, and I validated the backend integration by creating a test event the Network tab confirmed a successful 201 response with the complete event object in the payload.
…ighestGoodNetworkApp into Sanjeev-fix-create-new-event-button
…com/OneCommunityGlobal/HighestGoodNetworkApp into Sanjeev-fix-create-new-event-button
shashank-madan
left a comment
There was a problem hiding this comment.
Functionality works as expected. however text in dark mode does not seem to be visible clearly. Please also create a task for rendering the created backend events instead of mock data. Thank you.
HGN.APP.-.Google.Chrome.2026-01-31.19-27-12.mp4
…ighestGoodNetworkApp into Sanjeev-fix-create-new-event-button
|
|
Thank you all, merging! |
…ew-event-button Sanjeev: Fix Create New Event Button in Upcoming Events Section

























Description
Main changes explained:
Create file
src/actions/communityPortal/eventActions.js- IntroducescreateEventaction function that makes POST requests toENDPOINTS.EVENTSAPI endpoint. Includes error handling and toast notifications for success/error states.Create file
src/components/CommunityPortal/Reports/Participation/CreateEventModal.jsx- New modal component for event creation with form fields.Update file
src/components/CommunityPortal/Reports/Participation/MyCases.jsx- Added:CreateEventModalcomponentisCreateModalOpen)CreateEventModalcomponentHow to test:
npm installand...to run this PR locallycommunityportal/reports/participationon the UI+ Create Newbutton which should open a modal for event creation.Screenshots or videos of changes:
https://www.dropbox.com/scl/fi/9jpaohap7a0wq2y0bt8bs/PR-4365-video.mov?rlkey=lzmomi7ulch56nztjlkg1j3pk&st=ne0zvdmm&dl=0
Note:
The UI currently displays dummy/mock events, so the newly created event will not appear in the list immediately. Verify success by checking the Network tab response (status 201 and the created event object) to confirm the event was created in the backend.