-
Notifications
You must be signed in to change notification settings - Fork 2
Combine 'Edit Profile' and 'Edit Profile Image' #1086
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
base: main
Are you sure you want to change the base?
Conversation
| * uploads it to the server, and closes the modal. | ||
| */ | ||
| const cropAndSubmitImage = () => { | ||
| if (editor !== null) { |
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.
Looks amazing Esha, I really like how you added documentation. One thing I would point out is that currently inside the cropAndSubmitImage function, you're creating an object URL with window.URL.createObjectURL(blob) for the preview, but if a user is editing their profile image multiple times, we have quite a lot on our memory as there is like no cleanup being done. Otherwise, amazing!!
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.
Everything looks good! Thanks Esha!
|
[diff-counting] Significant lines: 111. |
Summary
This pull request is to combine the two pages - 'Edit Profile' and 'Edit Profile Image' - into just one. Essentially, the bulk of this is migrating the code in 'Edit Profile Image' into 'Edit Profile' and making sure it is integrated into the page properly.
Linear Link
Combine Edit Profile and Edit Profile Image
Test Plan
Notes
Need to update 'Edit Profile' tests to test for this addition