-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
fix: broken attachments and avatar picker #24184
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 |
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
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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