Skip to content

Chirag: Added logic to the Show Past Events button on CPDashboard#5148

Open
ChiragBellara wants to merge 1 commit intodevelopmentfrom
chirag-fix-past-events-display-order-on-activites-screen
Open

Chirag: Added logic to the Show Past Events button on CPDashboard#5148
ChiragBellara wants to merge 1 commit intodevelopmentfrom
chirag-fix-past-events-display-order-on-activites-screen

Conversation

@ChiragBellara
Copy link
Copy Markdown
Contributor

Description

Past Events ordering bug

Related PRS (if any):

This is NOT related to any other PRs.

Main changes explained:

  • Added logic to filter past events on click of button
  • Added code to sort events based on date

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. By default you should be able to see only events that occur in the future
  7. Click on the "Show Past Events" button and it should show all the event sorted by date

Screenshots or videos of changes:

ShowPastEventsFunctionalityFix.mov

Note:

This PR is ONLY for the Show Past Events functionality. Any other bugs on the screen are not addressed in this PR.

@netlify
Copy link
Copy Markdown

netlify bot commented Apr 14, 2026

Deploy Preview for highestgoodnetwork-dev ready!

Name Link
🔨 Latest commit 5c330d8
🔍 Latest deploy log https://app.netlify.com/projects/highestgoodnetwork-dev/deploys/69dece76d740940008a90736
😎 Deploy Preview https://deploy-preview-5148--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 #5148 by Chirag. Checked out the branch locally and tested the community portal events page. Verified that by default only future events are shown, and clicking the Show Past Events button correctly reveals past events with the list sorted by date as expected. No issues were observed during testing. Approving.

Image Image

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.

2 participants