-
Notifications
You must be signed in to change notification settings - Fork 16
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
Tax receipt/modify donor data form #2394
base: feature/tax-receipt
Are you sure you want to change the base?
Tax receipt/modify donor data form #2394
Conversation
-Prevent users from directly accessing donor contact management. -Move the donor receipt provider to the app level.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
-added company name field to the donor contact management form
…ckedAddressGuid state - Moved the `isMatchingAddress` helper function to the utils folder for better reusability. - Initialized a new state variable `checkedAddressGuid` to track the selected address. - Updated `useEffect` to check if the receipt address matches the profile address and set `checkedAddressGuid` accordingly. - Updated `<StyledCheckbox>` to use `checkedAddressGuid` for determining the checked state.
- Implemented onSubmit function to handle profile update based on user type (individual or organization). - Dynamically constructs request body with appropriate fields (firstName, lastName, companyName, tin). - Updates donor receipt data with new profile information, including donor name and address details. - Includes error handling and loading state for data upload. - Redirects to verification page after successful submission.
- introduce a spinner for the loading state - move updateDonorProfile function to the parent component
- added logic for PUT authentication request when donor data has changed - merged common request structure into a single object for both authenticated and unauthenticated requests - incorporated additional dependency checks (address.guid, token, user, contextLoaded)
Added a condition to prevent unauthorized users from accessing the Donor Contact Management page.
-replaced negated && condition with a more readable || condition.
…ing. -Introduced isUserDataChanged to prevent unnecessary profile updates. -Enhanced readability and maintainability.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sunilsabatp - Please review my feedback
- restrict unauthorized user to access the link - rename EditPermissionDeniedMessage ->EditPermissionDenied - rearrange translation resources -
- Ensure the primary toggle is hidden in the edit address modal when the selected address is already marked as primary.
src/features/user/Settings/EditProfile/AddressManagement/EditAddress.tsx
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM after adding in #2411
…rify-email Tax receipt/verify email
Key Features :
Figma design
Important points:
"Save and Proceed"
button.hasDonorDataChanged
will be set to true.To Do :