-
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
Fix/15373 last message in the report shows for a brief moment #16332
Conversation
…ginTop of the modal
@aldo-expensify @aimane-chnaif One of you needs to 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] |
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.
@tienifr did you push all your changes? It's not complete yet.
App/src/components/Modal/BaseModal.js Line 142 in 3be4d99
- } = StyleUtils.getSafeAreaPadding(insets);
+ } = StyleUtils.getSafeAreaPadding(insets, this.props.statusBarTranslucent); |
@tienifr I think I gave all my feedback. Please check suggested changes. |
@situchan Thank you for suggesting. I have updated the code. |
Let's follow jsdocs for new functions |
@@ -0,0 +1,5 @@ | |||
import {StatusBar} from 'react-native'; | |||
|
|||
export default function getSafeAreaPaddingTop(insets, statusBarTranslucent) { |
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.
As suggested by @situchan, add doc of description, params and return value.
Co-authored-by: Aimane Chnaif <96077027+aimane-chnaif@users.noreply.github.com>
@situchan @aimane-chnaif updated, thanks for the feedback |
bug.mp4While testing, I noticed weird bugs on password protected pdf preview:
Both are not constantly reproducible. |
Except the issue above, works well on all devices / platforms. Screenshots/VideosWebweb.movMobile Web - Chromemchrome.mp4Mobile Web - Safarimsafari.mp4Desktopdesktop.moviOSios.mp4Androidandroid.mp4tablet.mp4 |
I reported this bug here |
ok, we can consider that bug out of scope for this issue. |
Reviewer Checklist
Screenshots/VideosWebweb.movMobile Web - Chromemchrome.movMobile Web - Safarimsafari.mp4Desktopdesktop.moviOSios.mp4Androidandroid.mov |
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.
Looks good and tests well on all kinds of modals.
Hi @aldo-expensify We have the full test from @situchan and the approval of @aimane-chnaif. Please help me review the PR. Thank you! |
Thanks, I'll review today |
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, tested well.
Thank you all for the collaborative work :) |
✋ 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/aldo-expensify in version: 1.2.89-0 🚀
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.2.89-0 🚀
|
Details
Fixed Issues
$ #15373
$ #15373 (comment)
Tests
Sample password protected PDF: password-protected.pdf
Password: 1234
Offline tests
QA Steps
Sample password protected PDF: password-protected.pdf
Password: 1234
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
Web
Screen.Recording.2023-03-21.at.12.53.59.mov
Mobile Web - Chrome
Screen.Recording.2023-03-21.at.12.52.14.mov
Mobile Web - Safari
Screen.Recording.2023-03-21.at.13.08.38.mov
Desktop
Screen.Recording.2023-03-21.at.13.00.35.mov
iOS
Screen.Recording.2023-03-21.at.13.07.16.mov
Android
Screen.Recording.2023-03-21.at.12.47.47.mov