Skip to content

Som/fix(participation): fix 'more' button bug#5163

Open
somramnani wants to merge 3 commits intodevelopmentfrom
som-fix/event-participation/more-button-bug
Open

Som/fix(participation): fix 'more' button bug#5163
somramnani wants to merge 3 commits intodevelopmentfrom
som-fix/event-participation/more-button-bug

Conversation

@somramnani
Copy link
Copy Markdown
Contributor

@somramnani somramnani commented Apr 17, 2026

Description

Screenshot 2026-04-17 at 2 00 19 PM
PR.0000-Demo-Bug.mov

Related PRS (if any):

This frontend PR is related to the development backend PR.

Main changes explained:

  • Update src/components/CommunityPortal/Reports/Participation/MyCases.jsx to fix the Upcoming Events filtering logic by using eventDate consistently for This Week and This Month, ensuring the filtered count is accurate and the “More” button appears whenever more than 10 events exist in the selected range.

  • Update src/components/CommunityPortal/Reports/Participation/mockData.jsx to improve test coverage by adding enough upcoming events for the current week and generating 13 future events for Today, so both filters reliably have enough data to display the “More” button during testing.

How to test:

  1. Checkout into this branch.
  2. Run npm install and start the app locally.
  3. Clear site data/cache.
  4. Log in as an admin user.
  5. Navigate to /communityportal/reports/participation.
  6. Verify that the "More" button appears when filtering through the other filters (Today, This Week, This Month)

Screenshots or videos of changes:

Coming soon

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 17, 2026

Deploy Preview for highestgoodnetwork-dev ready!

Name Link
🔨 Latest commit 54a12e3
🔍 Latest deploy log https://app.netlify.com/projects/highestgoodnetwork-dev/deploys/69e2764dbb15960008d88e70
😎 Deploy Preview https://deploy-preview-5163--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.

@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown

@Rajasrivatsansrinivasan Rajasrivatsansrinivasan left a comment

Choose a reason for hiding this comment

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

Reviewed PR #5163 by Som. Checked out the branch locally and tested the Participation page event filters on the community portal reports page. Verified that the event list updates correctly for Today, This Week, and This Month, and that the “More” button now appears when the selected filter contains more than 10 events. Also confirmed the button behaves as expected when clicked. Approving.

Image Image

@somramnani somramnani changed the title Som fix/event participation/more button bug Som/fix(participation): fix 'more' button bug Apr 19, 2026
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