Skip to content

Conversation

@aryanrachala54
Copy link
Contributor

Description

image

Related PRs:

None


Main changes explained:

  • HelpModal.module.css contains the dark-mode styles.
  • Updated the HelpModal.jsx to fetch user data via ENDPOINTS.USER_PROFILE(userId).
  • Extract team information safely from the API response.
  • Allows form submission only if the user is an owner, administrator, or a member of the Software Development Team (case-insensitive check).

How to Test

  1. Check out the current branch.

  2. Run the following commands:

    • npm install
    • npm run build
    • npm start
  3. Start the frontend to load the updated UI.

  4. Clear site data/cache.

  5. Log in as an admin user.

  6. Navigate to http://localhost:5173/hgnhelp.

  7. Verify that the page renders correctly in both light and dark modes. While logged in as an admin, confirm that the Submit button is clickable.

  8. Log out and log in as a volunteer.

  9. Navigate again to http://localhost:5173/hgnhelp.

  10. Verify that the page renders correctly in both light and dark modes. If the volunteer is not a member of the Software Development Team, confirm that the Submit button is disabled.

  11. If the volunteer is a member of the Software Development Team, confirm that the Submit button is enabled and clickable.


Screenshots of changes:

Screenshot 2025-12-27 001204 Screenshot 2025-12-27 001250 Screenshot 2025-12-27 001329
Screenshot 2025-12-27 001513 Screenshot 2025-12-27 001552 Screenshot 2025-12-27 001530
Screenshot 2025-12-27 001612 Screenshot 2025-12-27 002022 Screenshot 2025-12-27 002033

@netlify
Copy link

netlify bot commented Dec 27, 2025

Deploy Preview for highestgoodnetwork-dev ready!

Name Link
🔨 Latest commit 8107bed
🔍 Latest deploy log https://app.netlify.com/projects/highestgoodnetwork-dev/deploys/69505f8b1728a90008392f3b
😎 Deploy Preview https://deploy-preview-4636--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.

@aryanrachala54 aryanrachala54 force-pushed the aryan_hgn_help_dark_mode branch from 0a9e0f9 to 8107bed Compare December 27, 2025 22:36
@sonarqubecloud
Copy link

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