-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[$250] Avatar - Avatar position moves after error appears (web), incorrect error position (native) #48244
Comments
Triggered auto assignment to @Julesssss ( |
Triggered auto assignment to @kevinksullivan ( |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
We'll fix, but this is not a blocker. |
Edited by proposal-police: This proposal was edited at 2024-09-03 10:29:15 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Avatar position moves after error appears (web), incorrect error position (native) What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
<View style={[styles.pt3, styles.pb6, styles.alignSelfStart, styles.w100]}> What alternative solutions did you explore? (Optional)Alternative solution for web issue
|
Edited by proposal-police: This proposal was edited at 2023-10-02T14:53:00Z. ProposalPlease re-state the problem that we are trying to solve in this issue.On web and desktop app, avatar position moves after the error appears. What is the root cause of that problem?
App/src/components/AvatarWithImagePicker.tsx Line 375 in b9af3d1
When there's an error, the width of avatar container is same as error message -> the avatar is center
We don't set the width: 100% for the container in App/src/components/AvatarWithImagePicker.tsx Line 328 in b9af3d1
What changes do you think we should make in order to solve the problem?
Add styles.w100 in here What alternative solutions did you explore? (Optional)NA |
|
@Julesssss, @kevinksullivan Huh... This is 4 days overdue. Who can take care of this? |
Job added to Upwork: https://www.upwork.com/jobs/~021831363479706276077 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @alitoshmatov ( |
@haris-ali9211 Your proposal will be dismissed because you did not follow the proposal template. |
ProposalPlease re-state the problem that we are trying to solve in this issue.The avatar position moves after the error appears on the web and desktop app. On Android and iOS apps, the avatar position does not move, but the error message is not placed correctly. What is the root cause of that problem?
<PressableWithoutFeedback
onPress={() => onPressAvatar(openPicker)}
accessibilityRole={CONST.ROLE.BUTTON}
accessibilityLabel={translate('avatarWithImagePicker.editImage')}
disabled={isAvatarCropModalOpen || (disabled && !enablePreview)}
disabledStyle={disabledStyle}
style={[styles.pRelative, avatarStyle, type === CONST.ICON_TYPE_AVATAR && styles.alignSelfCenter]}
ref={anchorRef}
>
style={[styles.pRelative, avatarStyle, type===CONST.ICON_TYPE_AVATAR && styles.alignSelfCenter]}
<View style={[styles.pt3, styles.pb6, styles.alignSelfStart]}>
<MenuItemGroup shouldUseSingleExecution={false}>
<AvatarWithImagePicker
isUsingDefaultAvatar={UserUtils.isDefaultAvatar(currentUserPersonalDetails?.avatar ?? '')}
source={avatarURL}
avatarID={accountID}
onImageSelected={PersonalDetails.updateAvatar}
onImageRemoved={PersonalDetails.deleteAvatar}
size={CONST.AVATAR_SIZE.XLARGE}
avatarStyle={styles.avatarXLarge}
pendingAction={currentUserPersonalDetails?.pendingFields?.avatar ?? undefined}
errors={currentUserPersonalDetails?.errorFields?.avatar ?? null}
errorRowStyles={styles.mt6}
onErrorClose={PersonalDetails.clearAvatarErrors}
onViewPhotoPress={() => Navigation.navigate(ROUTES.PROFILE_AVATAR.getRoute(String(accountID)))}
previewSource={UserUtils.getFullSizeAvatar(avatarURL, accountID)}
originalFileName={currentUserPersonalDetails.originalFileName}
headerTitle={translate('profilePage.profileAvatar')}
fallbackIcon={currentUserPersonalDetails?.fallbackIcon}
editIconStyle={styles.profilePageAvatar}
/>
</MenuItemGroup>
</View>
style={[styles.pt3, styles.pb6, styles.alignSelfStart]}
What changes do you think we should make in order to solve the problem?
|
Just marking here for visibility, @rushatgabhane will fix this in #48517. |
@shubham1206agra I see this bug is external, should we handle it here? |
No, it will be handled by @rushatgabhane since it was a regression from copilot. |
Closing out since we have that PR fixing this and other issues. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.0.26-1
Reproducible in staging?: Y
Reproducible in production?: N
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
Avatar position will not move after the error appears.
Actual Result:
On web and desktop app, avatar position moves after the error appears.
On Android and iOS app, the avatar position does not move but the error message is not placed correctly.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6585839_1724882325226.pic.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @alitoshmatovThe text was updated successfully, but these errors were encountered: