Failed to load PDF#37136
Conversation
Reviewer Checklist
Screenshots/Videos |
|
@kaushiktd looks like we're causing a regression Screen.Recording.2024-02-26.at.10.44.33.AM.mov |
|
@getusha Please check now. |
|
@kaushiktd there is a delay before the message appears, could you check? Screen.Recording.2024-02-27.at.11.31.33.PM.mov |
|
@getusha That's not related to the PR changes - that's just the time it takes for the PDF library to load the file and based on it the lib errors -> we set the This already happens on web, you can try it out by opening a report which has the Failed to load PDF error and you can notice the slight delay -> this should be handled separately in a new issue if it's a problem. I think we're good to go here, with your permission - if everything else works as expected✌️ |
|
Still can notice the distorted loading indicator after applying this solution Screen.Recording.2024-02-28.at.12.14.59.AM.mov |
|
was able to repro ^ after reverting the solution |
|
Yes, I think that was happening before the fix too, I remember from testing the solution myself 🙌 It's unrelated to our issue / PR and it's coming from here: App/src/components/PDFView/index.native.js Line 139 in 069efef |
|
✋ 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/jasperhuangg in version: 1.4.45-0 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.45-6 🚀
|






Details
Fixed Issues
$ #35808
PROPOSAL:#35808 (comment)
Tests
I've tested the scenarios with MacOS / Chrome / Safari / Android / IOS
Steps to follow:
Open the Expensify application in your device and follow below steps:
Offline tests
QA Steps
Open the Expensify application in your device and follow below 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)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so the design team can review the changes.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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop