Skip to content
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

[$2000] iOS app - Attachment - User can't see PDF preview before uploading #7962

Closed
kbecciv opened this issue Mar 2, 2022 · 139 comments
Closed
Assignees
Labels
Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@kbecciv
Copy link

kbecciv commented Mar 2, 2022

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Action Performed:

  1. Open the New Expensify Beta app
  2. Sign into a valid user account (High Traffic or Low)
  3. Navigate to any conversation
  4. Tap on the "Plus" signal
  5. Tap on "Add Attachment"
  6. Tap on "Choose Document" and select any PDF document

Expected Result:

The user expects to be able to see the preview of the PDF before uploading

Actual Result:

The user is not able to see the preview of his/her PDF. The document loads as a grey page and can only be seen within the chat history after being sent.

Workaround:

Unknow

Platform:

Where is this issue occurring?

  • iOS

Version Number: 1.1.41.1

Reproducible in staging?: Yes

Reproducible in production?: Yes

Email or phone of affected tester (no customers): [email protected]

Logs: https://stackoverflow.com/c/expensify/questions/4856

Notes/Photos/Videos: Any additional supporting documentation

Bug5475042_Can_t_See_Preview_.mp4

Bug5475042_PDF_that_can_t_be_seen.pdf

Expensify/Expensify Issue URL:

Issue reported by: Applause

Slack conversation:

View all open jobs on GitHub

@MelvinBot
Copy link

Triggered auto assignment to @TomatoToaster (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@TomatoToaster TomatoToaster removed their assignment Mar 2, 2022
@TomatoToaster TomatoToaster added the External Added to denote the issue can be worked on by a contributor label Mar 2, 2022
@MelvinBot
Copy link

Triggered auto assignment to @Christinadobrzyn (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

@Christinadobrzyn
Copy link
Contributor

looks like it might be related to this GH - #7365 - that is closed.

@Christinadobrzyn
Copy link
Contributor

@MelvinBot
Copy link

Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat (Exported)

@MelvinBot MelvinBot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Mar 4, 2022
@MelvinBot
Copy link

Triggered auto assignment to @roryabraham (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@Christinadobrzyn
Copy link
Contributor

Price increase $500!

@barun1997
Copy link
Contributor

Hi, I just reproduced this bug and found the root cause.

It is to do with the file name. I tried uploading a PDF with a space in its name, and it didn't show me a preview. (case in point, first video).

This is because of the sourceURL that is given to PDFViewer (

<TouchableWithoutFeedback style={[styles.flex1, props.style]}>
<PDF
activityIndicator={<FullScreenLoadingIndicator />}
source={{uri: props.sourceURL}}
): file:///.../sample%20file.pdf

And there is an error loading the file with that URL. We will need to find a way to replace that %20 into a space, like this: /sample file.pdf.

This can be as easy as replacing props.sourceURL using: props.sourceURL.replace("%20", " ") for iOS.

The second video shows my solution works.

Simulator.Screen.Recording.-.iPhone.13.-.2022-03-11.at.17.47.34.mp4
This.is.new.mov

@parasharrajat
Copy link
Member

Nice catch @barun1997. Could you please use decodeURIComponent for this purpose?

I like @barun1997's proposal. Let's go with it.

cc: @roryabraham

🎀 👀 🎀 C+ reviewed

@barun1997
Copy link
Contributor

@parasharrajat yup will do!

@barun1997
Copy link
Contributor

Hi guys, should I start working on this?

@parasharrajat
Copy link
Member

Did you get a chance to look at the Contribution.md guidelines? Maybe that helps. In short, you will be assigned to this issue before you can start. Also hired on Upwork.

@roryabraham
Copy link
Contributor

Thanks for the investigation @barun1997, your proposal looks good to me 👍

@MelvinBot MelvinBot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Mar 15, 2022
@MelvinBot
Copy link

📣 @barun1997 You have been assigned to this job by @roryabraham!
Please apply to this job in Upwork and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@Christinadobrzyn
Copy link
Contributor

Hired @barun1997 in Upwork for the fix and @parasharrajat as the C+

@Christinadobrzyn Christinadobrzyn changed the title iOS app - Attachment - User can't see PDF preview before uploading [$500] iOS app - Attachment - User can't see PDF preview before uploading Mar 16, 2022
@gadhiyamanan
Copy link
Contributor

gadhiyamanan commented Aug 25, 2022

ok. i think PR deployed to production and right now regression period is going on, correct me if I am wrong.

cc: @roryabraham @kadiealexander

@kadiealexander
Copy link
Contributor

@gadhiyamanan, could you please link me to the PR? There are quite a few in the hundreds of messages in this issue so I'd like to make sure it's the right one.

@gadhiyamanan
Copy link
Contributor

gadhiyamanan commented Aug 25, 2022

Please check this PR #9841

cc: @roryabraham @kadiealexander

@kadiealexander
Copy link
Contributor

kadiealexander commented Aug 25, 2022

Thank you! The PR is not yet deployed to staging or production because QA is still happening as per this comment:

image

@gadhiyamanan
Copy link
Contributor

gadhiyamanan commented Aug 25, 2022

I think PR deployed as per list

cc: @roryabraham @kadiealexander

@roryabraham
Copy link
Contributor

Hi @gadhiyamanan, this PR was merged to the production branch two days ago: #10495, but due to deploy issues, it was not deployed to production. We are working hard to try and get a new release out. Thanks for your patience.

@roryabraham
Copy link
Contributor

This PR is in production now, was deployed in 1.1.89-4, 4 days ago. https://github.com/Expensify/App/actions/runs/2928185961

@mvtglobally
Copy link

Issue not reproducible during KI retests. (Second week)

@kadiealexander
Copy link
Contributor

https://www.upwork.com/ab/applicants/1499594733421305856/job-details
https://www.upwork.com/jobs/~0109a0f58059e7df27

@gadhiyamanan @parasharrajat please accept the contract I just sent and I'll get this paid out for you both :)

@kadiealexander kadiealexander added Daily KSv2 and removed Weekly KSv2 labels Sep 1, 2022
@gadhiyamanan
Copy link
Contributor

@kadiealexander accepted.

@gadhiyamanan
Copy link
Contributor

@kadiealexander ping for upwork

@kadiealexander
Copy link
Contributor

Payment was made yesterday, is there an issue?

@melvin-bot
Copy link

melvin-bot bot commented Sep 2, 2022

@roryabraham @kadiealexander Be sure to fill out the Contact List!

@gadhiyamanan
Copy link
Contributor

gadhiyamanan commented Sep 2, 2022

@kadiealexander I think you sent an offer but payment is pending, can you check ?

cc: @roryabraham

@gadhiyamanan
Copy link
Contributor

gadhiyamanan commented Sep 5, 2022

@kadiealexander I think you sent an offer but payment is pending, can you check ?

@kadiealexander have you checked?

cc : @roryabraham @parasharrajat

@parasharrajat
Copy link
Member

Yeah, payment is pending for me too. @kadiealexander

@kadiealexander
Copy link
Contributor

kadiealexander commented Sep 6, 2022

Strange, for me it is showing that the contracts were ended by you both. I'll reissue a new contract for you both now and once you've accepted I'll issue payment. Sorry for the confusion here!

@kadiealexander kadiealexander reopened this Sep 6, 2022
@kadiealexander
Copy link
Contributor

@parasharrajat - all paid, thank you!
@gadhiyamanan - please accept the contract at your earliest convenience :)

@gadhiyamanan
Copy link
Contributor

gadhiyamanan commented Sep 7, 2022

@kadiealexander accepted, should i end the first contact?

@parasharrajat
Copy link
Member

parasharrajat commented Sep 7, 2022

Yeah, cancel the contract and I will do the same. You can also paste the link here.

@kadiealexander This is the job URL for the first contract https://www.upwork.com/jobs/iOS-app-User-can-see-PDF-preview-when-uploading-attachment-Expensify-7962_~0139a6e40732d704a3.

@gadhiyamanan
Copy link
Contributor

gadhiyamanan commented Sep 8, 2022

@kadiealexander ping for upwork

@kadiealexander
Copy link
Contributor

Thanks @gadhiyamanan, I think everyone is paid and all contracts are ended. Please let me know if there's anything outstanding!

@melvin-bot
Copy link

melvin-bot bot commented Sep 8, 2022

@roryabraham @kadiealexander Be sure to fill out the Contact List!

@gadhiyamanan
Copy link
Contributor

Thank You :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests