Skip to content

Conversation

@pavanputti
Copy link
Contributor

Description

Please include the exact bug/functionality description and a summary of the changes/ related issues. Please also include any other relevant motivation and context:
Fixes # (bug list priority high/medium/low x.y.z)
Or Implements # (WBS)

Related PRS (if any):

This frontend PR is related to the #XXX backend PR.
To test this backend PR you need to checkout the #XXX frontend PR.

Main changes explained:

  • Delete file A for removing unused components …
  • Update file B for including new pattern …
  • Create file C for introducing new components …

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 admin user
  5. go to dashboard→ Tasks→ task→…
  6. verify function “A” (feel free to include screenshot here)
  7. verify this new feature works in dark mode

Screenshots or videos of changes:

Note:

Include the information the reviewers need to know.

- Changed route from /communityportal/ActivityAgenda to /communityportal/activity/:activityid
- Enables dynamic routing based on activity ID
- Fixes 'Page Not Found' issue when accessing activity details
- Changed route from /communityportal/ActivityAgenda to /communityportal/activity/:activityid
- Enables dynamic routing based on activity ID
- Fixes 'Page Not Found' issue when accessing activity details
- Route now accepts activityid as URL parameter
@pavanputti pavanputti added DO NOT MERGE Don't merge PR do not review Do not review or look at code without full context labels Nov 21, 2025
@netlify
Copy link

netlify bot commented Nov 21, 2025

Deploy Preview for highestgoodnetwork-dev ready!

Name Link
🔨 Latest commit e3f7ad4
🔍 Latest deploy log https://app.netlify.com/projects/highestgoodnetwork-dev/deploys/696c9693e51a5f00089c922c
😎 Deploy Preview https://deploy-preview-4434--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.

- Added useParams import from react-router-dom
- Extract activityid parameter from URL route
- Added validation and error handling for missing activityId
- Component now receives activityId from URL parameter
- Prepared component for dynamic data fetching in next commit
- Added EVENT_BY_ID endpoint to URL.js for fetching single event
- Implemented useState hooks for eventData, loading, and error states
- Added useEffect to fetch event data when component mounts or activityid changes
- Implemented fallback logic: tries EVENT_BY_ID endpoint first, falls back to fetching all events and filtering by ID
- Added data transformation to map event model fields to component structure
- Implemented loading, error, and no-data states with user-friendly messages
- Added proper error handling and validation for API responses
- Enhanced data transformation with better date/time formatting helpers
- Added event metadata display (date, type, location, status, attendance)
- Improved schedule display with better formatting and resource location
- Added image error handling with fallback to default image
- Enhanced UI structure with organized sections for metadata, description, and schedule
- Improved styling with conditional dark mode support for metadata sections
- Better handling of missing or incomplete event data
- Added formatted date display with full date string
- Enhanced schedule items with background styling and better layout
- Enhanced error handling with specific messages for different error types (404, network, server, permission errors)
- Added validation for activity ID (empty string check)
- Improved date/time formatting with NaN validation to prevent invalid date displays
- Enhanced schedule building with null/undefined resource filtering
- Added type checking for numeric values (maxAttendees, currentAttendees)
- Improved fallback API call error handling with network error detection
- Better event data validation (object type check)
- Enhanced error messages for better user experience
- Fixed date display logic to handle null dates properly
- Added array validation for schedule and resources data
…er functions to reduce fetchEventData complexity from 31 to ≤15 - Extract render functions to reduce ActivityAgenda complexity from 17 to ≤15
…urcesUsage import and ActivityAgenda route from both branches
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DO NOT MERGE Don't merge PR do not review Do not review or look at code without full context

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants