Sayali - Add: Success and Error Feedback to Help Request Submission#4844
Open
sayali-2308 wants to merge 4 commits intodevelopmentfrom
Open
Sayali - Add: Success and Error Feedback to Help Request Submission#4844sayali-2308 wants to merge 4 commits intodevelopmentfrom
sayali-2308 wants to merge 4 commits intodevelopmentfrom
Conversation
✅ Deploy Preview for highestgoodnetwork-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
…ighestGoodNetworkApp into Sayali_Help_Request_Success_Error_Feedback
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.








Description
Fixes #22 (PRIORITY Medium) from HGN Phase I Bugs and Needed Functionalities doc - HGN Questionnaire Dashboard: Add Success and Error Feedback to Help Request Submission
Currently, users receive no feedback when submitting a help request from the Help Modal. This PR adds UI feedback with success/error toast notifications, disables the submit button during processing to prevent duplicate submissions, and re-enables it after completion. Backend API integration complete with merged PR OneCommunityGlobal/HGNRest#2045
Related PRS (if any):
This PR builds on top of merged PR #4291 (Neeraj - Fix being able to submit the help request form).
Integrated with backend PR OneCommunityGlobal/HGNRest#2045 (help request tracking API) which has now merged to development.
Main changes explained:
src/components/LandingPage/HelpModal.jsxto add submission state managementisSubmittingstate variable to track submission statustoast.success()notification displaying "Help request submitted successfully!" on successful submissiontoast.error()notification in catch block for error handlingtoast.error('Please select a help category')if user clicks Submit without selecting option/api/helprequest/createendpointdisabled={!selectedOption || !isSoftwareDevMember || isSubmitting})How to test:
Prerequisites
Sayali_Help_Request_Success_Error_Feedbacknpm installin frontend repodevelopmentbranch (includes merged PR XiaoW_Hotfix of adding a temporary fix to the task check for displaying timeentry correctly #2045)npm run start(port 4500)npm run start:local(port 5173)/hgnhelpTest Case 1: Success Feedback
Test Case 2: Validation - No Category Selected
Test Case 3: Prevent Duplicate Submissions
Test Case 4: Button Re-enables After Submission
Test Case 5: Dark Mode Support
Test Case 6: User Without Software Dev Team Access
Test Case 7: Backend API Integration
/api/helprequest/createScreenshots or videos of changes:
Note: