Skip to content
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

[Improve] profile edit screen #2857

Merged
merged 11 commits into from
Apr 22, 2024
Merged

Conversation

aliseyalvi
Copy link
Collaborator

@aliseyalvi aliseyalvi commented Apr 16, 2024

What does this PR?

  • added avatar update option in edit profile screen
  • fixed bug while updating cover image

Issue number

https://discord.com/channels/@me/920267778190086205/1229321662663495720

Screenshots/Video

Screenrecorder-2024-04-16-17-19-23-707.mp4

({ username, name, reputation, avatarUrl, showImageUploadActions, isUploading }) =>
() => {
const navigation = useNavigation();
const AvatarHeader = ({
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if AvatarHeader is not being used anywhere else perhaps we can rename component to EditAvatar

Copy link
Collaborator

@noumantahir noumantahir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

edit functionality working great... left some comment and some feedback below as well...

  • After updating cover photo, the cover image still remains locked to older cover in profile details screen. even tried restarting. avatar image instead updated instantly.

  • when user updates either profile picture or cover photo, perhaps we should skip the need to tap SAVE button, it should update data automatically, only textual update may require tapping save button after wards.

  • can we try enabling cropping for cover picture as well, or perhaps we left it out on purpose for some reason. may be different platform process cover photo differently, need more digging

avatarUrl={avatarUrl}
isLoading={isUploading}
/>
<IconButton
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Button background should primary blue, and perhaps use pencil icon instead plus/add, can also be slightly bigger may be.

Screenshot 2024-04-16 at 18 09 07

};
<View style={styles.textWrapper}>
{!!name && <Text style={styles.name}>{name}</Text>}
<Text style={styles.username}>{`@${username} (${reputation})`}</Text>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this does not make sense here... perhaps we can use similar header as used in profile screen without display name and reputation...

Uploading Screenshot 2024-04-16 at 18.10.47.png…

<UserAvatar
key={`${avatarUrl}-${username}`}
noAction
size="xl"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try using even larger size is possible without making alot of changes

@aliseyalvi aliseyalvi changed the title [WIP][Improve] profile edit screen [Improve] profile edit screen Apr 17, 2024
@noumantahir
Copy link
Collaborator

@aliseyalvi two things

  1. cover image still updating, also tried restarting app and waiting for quite a while
  2. after avatar and cover image, profile is updated, that is good... but forcing screen to go back, seems choppy, can make an exception for avatar and cover to not automatically go back.

Copy link
Collaborator

@noumantahir noumantahir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Screen.Recording.2024-04-22.at.18.07.16.mov

Copy link
Member

@feruzm feruzm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@feruzm feruzm merged commit 69a5215 into development Apr 22, 2024
@feruzm feruzm deleted the sa/improve-profile-edit-screen branch April 22, 2024 14:43
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.

None yet

3 participants