-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
Surveyor view: Load My Account data #402
Conversation
…r handling and loading
* state restoration on logout made more concise * fix account data error message * camelCase function name in EditAccount
}, | ||
}, | ||
}); | ||
return updatedAccount; |
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.
You should make sure this updates the user
object as well, otherwise if they change their email here they won't be able to use that to log in.
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.
Meeting note: Maybe surveyor shouldn't have email at all, just user.
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.
@mattdelsordo I'm not entirely sure how to update a user.
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.
I looked into this a bit, and it seems like this might be a bit more complicated than just doing a PATCH. I say for now, just don't let the user edit their email or password.
Another thing that's probably out of scope for this particular thing is that we should allow surveyors to change their passwords on this screen. |
*EditAccount uses controlled HeatPump[Etc.] field components.
* surveyors_controller: add email to list of allowed search params * Account: grab account data via email address using new rtkq hook.
Loads account data for surveyor My Account page and displays it, with error handling and page loading.
To complete: