-
Notifications
You must be signed in to change notification settings - Fork 3.5k
fix: broken attachments and avatar picker #24184
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
Conversation
|
@aimane-chnaif Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
fix: more lint errors
3ff7184 to
134e7ca
Compare
| accessibilityRole={CONST.ACCESSIBILITY_ROLE.IMAGEBUTTON} | ||
| accessibilityLabel={this.props.translate('avatarWithImagePicker.editImage')} | ||
| disabled={this.state.isAvatarCropModalOpen} | ||
| ref={this.anchorRef} |
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.
why ref set here? And why this view hierarchy is changed?
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.
Its because we need to close the popover once clicked on the anchor. Previously, the anchor was enclosing the popover menu itself as well which was causing the issue as mentioned in Slack. We need to separate the anchor and the popover menu.
Co-authored-by: Aimane Chnaif <96077027+aimane-chnaif@users.noreply.github.com>
Reviewer Checklist
Screenshots/VideosWeb
web-chrome.mov
web-safari.movMobile Web - Chromemchrome.movMobile Web - Safarimsafari.movDesktopdesktop.moviOSios.movAndroidandroid.mov |
aimane-chnaif
left a comment
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 good!
cc: @dangrous for expedited review
dangrous
left a comment
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 good! I am unable to repro the Workspace image bug, so I'm trusting you on that.
One very minor update, about a comment
| // by the user. | ||
| if (index === menuItems.length - 1) { | ||
| // Set a flag to block suggestion calculation until we're finished using the file picker, | ||
| // which will stop any flickering as the file picker opens on non-native devices. |
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.
One minor update - can we copy this comment over to new L1045 so we keep the note?
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.
bump @allroundexperts
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.
@aimane-chnaif @dangrous Handled.
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/dangrous in version: 1.3.51-0 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.3.51-2 🚀
|
|
🚀 Deployed to staging by https://github.com/dangrous in version: 1.3.52-0 🚀
|
|
🚀 Deployed to staging by https://github.com/dangrous in version: 1.3.52-0 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.52-5 🚀
|
|
@dangrous Reporting bonus for https://expensify.slack.com/archives/C049HHMV9SM/p1691182214043129 is due to @Natnael-Guchima. |
Details
This PR fixes the attachment picker which was not opening on iOS. Apart from that, it also fixes the following two bug reports:
#24183
https://expensify.slack.com/archives/C049HHMV9SM/p1691182214043129
Fixed Issues
$ #15289
PROPOSAL: #15289 (comment)
Tests
Offline tests
N/A
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Web
Screen.Recording.2023-08-06.at.5.28.59.AM.mov
Screen.Recording.2023-08-06.at.6.27.15.AM.mov
Mobile Web - Chrome
Screen.Recording.2023-08-06.at.5.33.29.AM.mov
Mobile Web - Safari
Screen.Recording.2023-08-06.at.5.32.36.AM.mov
Desktop
Screen.Recording.2023-08-06.at.5.30.55.AM.mov
iOS
Screen.Recording.2023-08-06.at.6.26.31.AM.mov
Android
Screen.Recording.2023-08-06.at.5.34.39.AM.mov