Frontend/nodeapi/userprofileupdatev1#49
Merged
CDevmina merged 9 commits intoDevelopmentfrom Apr 20, 2025
Merged
Conversation
… refactor preferences handling feat(auth0): add utility functions for updating user phone and deleting users from Auth0 chore(deps): add react-hook-form dependency to package.json and package-lock.json
…d privacy settings
…e functionality, and improved form handling
…ore account deletions
…er profile update flow
…t and add validation for username field
…on, and consent handling
…ce data sharing consent handling with popover
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.
This pull request introduces several updates to enhance user profile management, improve code maintainability, and update the front-end dependencies. The changes include updates to the API schema, refactoring of Auth0-related utilities, adjustments in user profile handling, and front-end enhancements. Below are the most significant changes grouped by theme:
Back-End: API Schema Updates
ObjectIdformat from theuserIdfield in multiple schemas (User,UserPreferences) to simplify its representation (api-service/api/openapi.yaml,web/src/api/types/data-contracts.ts). [1] [2] [3] [4]usernameandphonefields to theUserUpdateschema, along with descriptions for better API documentation (api-service/api/openapi.yaml,web/src/api/types/data-contracts.ts). [1] [2]optInStores,optOutStores, andallowedDomainsin the user schema to clarify their purpose (api-service/api/openapi.yaml).Back-End: Auth0 Integration Refactoring
updateAuth0Username,updateUserPhone,deleteAuth0User) for better maintainability (api-service/utils/auth0Util.js). [1] [2]UserProfileServiceandStoreProfileServicewith the new utility functions to reduce redundancy and improve error handling (api-service/service/UserProfileService.js,api-service/service/StoreProfileService.js). [1] [2] [3] [4]Back-End: User Profile Management Enhancements
updateUserProfilefunction to handle Auth0 username and phone updates, ensuring consistency between the local database and the identity provider (api-service/service/UserProfileService.js).api-service/service/UserProfileService.js). [1] [2]Front-End: Dependency and UI Updates
react-hook-formas a new dependency to simplify form handling (web/package.json,web/package-lock.json). [1] [2]RegistrationCompletionModaland removed unnecessary labels inRegistrationProgressfor a cleaner UI (web/src/components/auth/RegistrationCompletionModal.tsx,web/src/components/auth/RegistrationProgress.tsx). [1] [2]Miscellaneous
api-service/service/StoreProfileService.js,api-service/service/UserProfileService.js). [1] [2]