-
-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(organizations): code cleanup and patch data cleanup in accou…
…nt settings and tos view TASK-1292 (#5290) ### 👀 Preview steps 1. ℹ️ have an account and a project 2. Go into account settings view 3. Change information on some field(s) 4. Save the changes 5. Check in the network tab the call to the `/me` endpoint. The payload should only contain the changed fields. 6. Enable a TOS view by following [this document](https://www.notion.so/kobotoolbox/Setting-up-TOS-1447e515f65480f8ab34f69d42d806f8) 7. In the TOS view, fill in the information and save (you may want to `preserve log` before saving data) 8. Check the network tab. Payload should contain only the changed field. ### 💭 Notes We're refactoring accountDetails and TOS view on the way of implementing some changes on displayed fields: - Removed the "global" observer from mob-x which was causing linting issues in favor of using the `useSession` hook created at #5303 - Cleaned up the code - Changed in a way that only changed fields are sent to the `PATCH` request to update data
- Loading branch information
1 parent
38393e0
commit aaa8aac
Showing
4 changed files
with
130 additions
and
177 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.