-
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: pdf send attachment regression #30995
fix: pdf send attachment regression #30995
Conversation
@mollfpr PR is ready. |
@HezekielT Could you add the details in description what the issue is? |
@mollfpr I've added a note that states that it fixes the regression caused by #30050 |
@mollfpr can you do the checklist in this one? |
@danieldoglas Yup, on it now! |
Reviewer Checklist
Screenshots/VideosAndroid: NativeUploading 30995 Android.mp4… Android: mWeb ChromeUploading 30995 mWeb-Chrome.mp4… iOS: NativeUploading 30995 iOS.mp4… iOS: mWeb SafariMacOS: Chrome / SafariUploading 30995 Web.mp4… MacOS: Desktop |
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.
@HezekielT The test results looks good, but I still don't understand what the problem is and why the solution is this.
@mollfpr Since we are using gesture detector, if we don't have the right hierarchy of components the solution will not work. The problem is that for a pdf attachment that is already sent, we use |
If we don't have the right component structure(hierarchy) and the correct styles applied to the components the event won't properly propagate, which is why the scrolling is not working and the password preview is not shown. |
Should we put the view wrapper here? App/src/components/Attachments/AttachmentView/index.js Lines 122 to 126 in 9b53463
Wrapping it around |
I haven't tested that. Let me try it and I will let you know if it works. |
@HezekielT On second thought, I'm okay with the current changes. I don't see any harm, and it's better since |
Ok, I will only add a comment then. |
@mollfpr I have added a comment on why we need the |
@mollfpr can you please check and approve the PR if it's good for you now? |
…gression fix: pdf send attachment regression (cherry picked from commit 3bcea70)
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Cherry-picked to staging by https://github.com/puneetlath in version: 1.3.96-4 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
Sorry, I fell asleep waiting for the recordings to be done uploading. Thank you @danieldoglas for taking care of this 🙏 |
🚀 Deployed to staging by https://github.com/danieldoglas in version: 1.3.96-6 🚀
|
@Beamanator Apologies for the regression. Had we put the wrapper in |
@Beamanator @HezekielT Another regression?? 🥲 |
Yepppp 😅 |
Ooh if @HezekielT 's comment is right (which was @mollfpr 's idea) maybe we don't need |
I haven't checked yet if my idea will solve the regression 😅 |
I just did a small test & so far it works in all cases (Concierge avatar, uploading video, viewing multiple images carousel) 👍 🙏 |
Make sense to me to redo this PR, then. |
Yeah I like that solution better anyway - less elements wrapping other attachment types unnecessarily 👍 |
@HezekielT are you around to create this PR? If not, I'll make it now |
@mollfpr here is the PR: #31130 Are you free to test on all platforms? I'm working on adding test steps looks like @Santhosh-Sellavel was free and will do the testing 🙏 |
@Beamanator Thank you for taking care of this. If there is anything I can do to help, I am available now. I'm so sorry once again for the regressions. |
FYI it looks like this is currently in production: App/src/components/AttachmentModal.js Lines 444 to 461 in e6451bb
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.97-7 🚀
|
🚀 Deployed to staging by https://github.com/danieldoglas in version: 1.3.98-0 🚀
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.3.98-5 🚀
|
Details
This PR fixes the regression caused by #30050 on android native.
Fixed Issues
$ #30977
#30979
PROPOSAL:
Tests
Offline tests
Same as above
QA Steps
Same as Tests Section
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
Android: Native
regressionAndroidNative.mov
Android: mWeb Chrome
regressionAndroidChrome.mov
iOS: Native
regressioniOSNative.mov
iOS: mWeb Safari
regressioniOSSafari.mov
MacOS: Chrome / Safari
regressionWeb.mov
MacOS: Desktop
regressionDesktop.mov