-
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 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 |
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.
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop