Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nishita_develop_frontend_for_event_participation_analysis #3052

Open
wants to merge 2 commits into
base: development
Choose a base branch
from

Conversation

nishitag5
Copy link

Description

Implemented the frontend of the Landing Page for Event Popularity Analytics where the user can see the Drop-off and No-show event analysis.

Related PRS (if any):

No related PRs

Main changes explained:

  • Updated the routes.js file to add the URL mapping for the analysis page.
  • Added the components to display the metrics for the no-show and drop-off rates of the events along with mock events data in MockData.jsx file to verify the UI.

How to test:

  1. check into current branch
  2. do npm install and ... to run this PR locally
  3. Clear site data/cache
  4. log as any user
  5. go to the URL http://localhost:3000/communityportal/reports/participation.
  6. Verify that the full landing page is displayed along with the filters without any console errors.

Screenshots or videos of changes:

Recording.2025-01-18.003537.mp4

Note:

The mockData is being used to verify the UI as the backend is not yet implemented.

@nishitag5 nishitag5 added the High Priority - Please Review First This is an important PR we'd like to get merged as soon as possible label Jan 18, 2025
Copy link

netlify bot commented Jan 18, 2025

Deploy Preview for highestgoodnetwork-dev ready!

Name Link
🔨 Latest commit f7f8dd8
🔍 Latest deploy log https://app.netlify.com/sites/highestgoodnetwork-dev/deploys/67947ae7005b200008b9e382
😎 Deploy Preview https://deploy-preview-3052--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 site configuration.

Copy link

@srikanthpusthem srikanthpusthem left a comment

Choose a reason for hiding this comment

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

image
PR.3052.mp4

Verified if full landing page is displayed along with the filters without any console errors. Changes are looking good

Copy link

@Sheehan20 Sheehan20 left a comment

Choose a reason for hiding this comment

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

Good progress on implementing the event participation landing page. Some suggestions for improvement:

Component Structure:

Missing error handling for date parsing in getDateRange function
Select elements need associated labels for accessibility
Consider memoizing filteredEvents to improve performance

Suggested Improvements:

Add PropTypes/TypeScript for type safety
Add aria-labels for color-based indicators (tracking-rate-green/red)
Document expected mockData format
Consider separating filter logic into a custom hook

Eveye2023
Eveye2023 previously approved these changes Jan 20, 2025
Copy link

@Eveye2023 Eveye2023 left a comment

Choose a reason for hiding this comment

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

I’ve noticed two small issues:

  • There’s a small alignment issue in the list view.
  • The time filter doesn't seem to work quite right. When selecting "This Week" or "This Month," any events with AM times don’t appear. This seems to be caused by the code that splits the time in mockData: const eventDate = new Date(event.eventTime.split(' pm ')[1]);.

.case-list-item {
display: flex;
justify-content: space-between;
align-items: center;

Choose a reason for hiding this comment

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

The items don't seem to be perfectly aligned in the list view. Would it be helpful to consider using flex-basis, flex-grow, and flex-shrink instead of justify-content?

Choose a reason for hiding this comment

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

Screenshot 2025-01-20 at 11 24 17 AM

Copy link
Author

Choose a reason for hiding this comment

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

Hi @Eveye2023, I have fixed the alignment issue. Please feel free to review the updated changes.

Copy link
Author

Choose a reason for hiding this comment

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

Hi @Eveye2023 , I have fixed the alignment issue.
For now, the goal was to establish the foundational structure for displaying the data. I’ll ensure that once the backend is set up, The filter functionality is incorporated based on how the data is being stored. Thanks for your review and insights!

@jeyanthi-sm
Copy link

The metrics for the no-show and drop-off rates of the events are displayed correctly. However, the List view has a slight alignment issue. Please see the attachment. Everything else looks good to me.
List_Alignment_Problem

PR-3052.mp4

@nishitag5
Copy link
Author

nishitag5 commented Jan 25, 2025

Hi @Sheehan20,
Thank you for the detailed feedback and suggestions! I appreciate your input. At this stage, I focused on creating the structure and layout of the event participation page using mockData as placeholders. The enhancements you’ve mentioned—such as error handling, performance optimizations- will be addressed once the backend is implemented and we start receiving actual data.

For now, the goal was to establish the foundational structure for displaying the data, and I’ll ensure these suggestions are incorporated during the integration phase. Thanks again for your review and insights!

@nishitag5 nishitag5 closed this Jan 25, 2025
@nishitag5 nishitag5 reopened this Jan 25, 2025
@khushijain03 khushijain03 self-requested a review January 25, 2025 07:08
Copy link

@khushijain03 khushijain03 left a comment

Choose a reason for hiding this comment

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

The PR works as expected after the latest changes. The filters work as described.

List:

Screenshot 2025-01-25 at 12 50 26 AM

Card:

Screenshot 2025-01-24 at 11 25 49 PM

Calendar:

Screenshot 2025-01-24 at 11 26 25 PM

@lycan10
Copy link

lycan10 commented Jan 26, 2025

Screenshot 2025-01-25 at 8 01 59 PM

i am getting an error message

Copy link

@ziddigsm ziddigsm left a comment

Choose a reason for hiding this comment

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

The changes that are aforementioned are functioning as expected.

Screen.Recording.2025-01-29.at.11.20.16.PM.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
High Priority - Please Review First This is an important PR we'd like to get merged as soon as possible
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants