-
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
[HOLD for payment 2022-11-18] [$250] Attachments - Preview is broken for Protected PDF file (iOS and Android) #12480
Comments
Triggered auto assignment to @conorpendergrast ( |
Proposal The issue is in PDFView App/src/components/PDFView/index.native.js Lines 145 to 153 in 38b1d84
We need to pass styles After Fixing :- |
ProposalThis is a regression from #11586 which replaced our own KeyboardAvoidingView with default react native KeyboardAvoidingView. Solution: <View style={containerStyles}>
{this.state.shouldAttemptPdfLoad && (
<TouchableWithoutFeedback style={touchableStyles}>
<PDF
trustAllCerts={false}
renderActivityIndicator={() => <FullScreenLoadingIndicator />}
source={{uri: this.props.sourceURL}}
style={pdfStyles}
onError={this.initiatePasswordChallenge}
password={this.state.password}
onLoadComplete={this.finishPdfLoad}
/>
</TouchableWithoutFeedback>
)}
{this.state.shouldRequestPassword && (
- <KeyboardAvoidingView>
+ <KeyboardAvoidingView style={styles.flex1}>
<PDFPasswordForm
onSubmit={this.attemptPdfLoadWithPassword}
onPasswordUpdated={() => this.setState({isPasswordInvalid: false})}
isPasswordInvalid={this.state.isPasswordInvalid}
shouldShowLoadingIndicator={this.state.shouldShowLoadingIndicator}
/>
</KeyboardAvoidingView>
)}
</View> NOTE: We don't need to stretch horizontally (
|
Testing file, password is |
Current assignee @conorpendergrast is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
Triggered auto assignment to @thienlnam ( |
Internal job posting: https://www.upwork.com/ab/applicants/1589438303439740928/job-details |
@parasharrajat Two proposals for you to review already! |
The proposals look good. I will share my review tomorrow morning CST. |
@0xmiroslav 's proposal cc: @thienlnam 🎀 👀 🎀 C+ reviewed |
@parasharrajat I already fixed it in this PR because without this fix, cannot test pdf password form. |
I like the This KeyboardAvoidingView in BaseScreenWrapper:
I see it has the Should we maybe have something like |
I like this one.
Previously, we had |
Except ScrollView (SectionList, FlatList are also ScrollView), react-native views (View, KeyboardAvoidingView) don't fully stretch height as default and height depends on child views' height sum (similar to wrap_content in android).
|
Here's good example of |
Thanks for the video. So I think we can create a follow-up PR to replace the Will that work? |
yes will work. but everywhere is just 2 cases.
|
Yeah, that is fine to setup a norm. |
Yeah, that sounds great! That video shows it well. Thanks! |
@tgolen Do you want to assign this to @0xmiroslav? |
📣 @0xmiroslav You have been assigned to this job by @thienlnam! |
The job:
Ok, I'm following this process to hire via Upwork. I'm hiring:
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.2.26-0 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2022-11-18. 🎊 |
Issue not reproducible during KI retests. (First week) |
Hi all, due to the work I did in #11586, which probably forced a regression in this area, please don't hold any regressions against the contributor. |
Ok great, thanks for the heads up! Noted, though we'll still wait for the regression period to pass. |
Thanks Tim! Note to myself: Two days until we pay out :👍 |
It is time, so I shall pay using this SO: How do I pay an external contributor via Upwork? I am paying these two people: #12480 (comment) Assignment date: 2022-11-09 #12480 (comment) That fits: Merged PR within 3 business days - 50% bonus So that makes base of $250 each plus 50% bonus of $125 = $375. Pay $375 and end contract on:
And finally:
All done! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
Preview is not broken for Protected PDF file
Actual Result:
Preview is broken for Protected PDF file
Workaround:
Unknown
Platform:
Where is this issue occurring?
Version Number: 1.2.24.0
Reproducible in staging?: Yes
Reproducible in production?: Yes
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
RPReplay_Final1667585840.MP4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: