Skip to content

Conversation

@shah-esha
Copy link
Contributor

@shah-esha shah-esha commented Oct 27, 2025

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.

  • migrated 'Edit Profile Image' Code
  • update tests for 'Edit Profile'
  • fix the layout for the profile image card

Linear Link

Combine Edit Profile and Edit Profile Image

Test Plan

  1. Go to homepage of Idol and ensure that 'Edit Profile Image' is not there.
  2. Go to 'Edit Profile' and ensure that your profile image is there, along with a button to edit it.
  3. Ensure you can open the editor both by clicking the button and your profile image.
  4. Update your image (play around with the modifications) and make sure it saves

Notes

Need to update 'Edit Profile' tests to test for this addition

@shah-esha shah-esha requested a review from a team as a code owner October 27, 2025 03:36
* uploads it to the server, and closes the modal.
*/
const cropAndSubmitImage = () => {
if (editor !== null) {
Copy link
Contributor

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!!

Copy link
Collaborator

@ladriennel ladriennel left a 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!

@dti-github-bot
Copy link
Member

[diff-counting] Significant lines: 111.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants