Fix duplicate react-pdf dependency#41238
Conversation
|
@ahmedGaber93 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] |
Reviewer Checklist
Screenshots/VideosAndroid: Nativea.mp4Android: mWeb Chromeaw.mp4iOS: Nativei.mp4iOS: mWeb Safariiw1.mp4iw2.mp4MacOS: Chrome / Safariw1.mp4w2.mp4MacOS: Desktopd.mp4 |
|
Found two bugs while testing, but I don't think any of them is related to this PR, you can take a look, maybe you can see something different. BUG: mWeb ios: when upload PDF password-protected, send button disappear after enter the password.
Send button disappear after enter the password. videoissue1.mp4BUG: mWeb: when tap the last PDF message, the previous PDF message is open instead of the last one.
the previous PDF message is open instead of the last one. videoissue2.mp4 |
|
@janicduplessis Just a small change in QA tests. - Verify that uploading and viewing a pdf works on web
+ Verify that uploading and viewing a pdf works on web/mWeb/Desktop |
ahmedGaber93
left a comment
There was a problem hiding this comment.
LGTM! just a small change in QA tests.
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #41237 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
|
@ahmedGaber93 Might be good to open some issues for those bugs, could you try and see if it also happens on main just to confirm it is not related to this? I can also check tomorrow. |
@janicduplessis Yes, I can reproduce on main also, and seem not related to this PR. |
|
@tylerkaraszewski PR is ready for your review, I tagged you because melvin-bot failed to assign you #41238 (comment). |
|
Good, thanks @ahmedGaber93! |
|
🚀 Deployed to production by https://github.com/marcaaron in version: 1.4.70-5 🚀
|


Details
This updates the version of react-pdf that is specified in our package.json. The react-fast-pdf dependency depends on react-pdf@^7.7.0 so this cause to have 2 different versions. Ideally we'd have a way to prevent this from happening in the future, but this will fix the issue for now.
Before:
After:
Fixed Issues
$ #41237
PROPOSAL:
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.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 and/or tagged@Expensify/designso 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