-
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: Android-Scan camera preview in Scan becomes blank #28792
Conversation
@mananjadhav 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] |
@bondydaa Can we please trigger an adhoc-build for this one to test the iOS camera? |
|
||
const propTypes = { | ||
/* The index of the tab that contains this camera */ | ||
cameraTabIndex: PropTypes.number.isRequired, | ||
|
||
/* Forwarded ref */ | ||
forwardedRef: refPropTypes.isRequired, | ||
|
||
/* Which tab has been selected */ |
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.
/* Which tab has been selected */ | |
/* Name of the selected receipt tab*/ |
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.
Updated
@@ -54,6 +54,9 @@ const propTypes = { | |||
|
|||
/** Whether or not the receipt selector is in a tab navigator for tab animations */ | |||
isInTabNavigator: PropTypes.bool, | |||
|
|||
/** Which tab has been selected */ |
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.
/** Which tab has been selected */ | |
/** Name of the selected receipt tab */ |
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.
Updated
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.
@dukenv0307 Small suggestions on the prop comments.
@dukenv0307 I am getting these warnings. Can you please fix this? |
@mananjadhav Just resolved the warning. Please help review again. |
This looks better. I'll test this again in an hour or so. |
Reviewer Checklist
Screenshots/VideosWebweb-scan-blank.movMobile Web - Chromemweb-chrome-scan-blank.movMobile Web - Safarimweb-safari-scan-blank.movDesktopdesktop-scan-blank.moviOSAndroidandroid-scan-blank.mov |
whoops sorry, going to kick off the build now. hopefully whatever was broken is fixed 🙏 |
okay building here https://github.com/Expensify/App/actions/runs/6460584143 |
@mananjadhav did those work? |
I don't have an iOS device unfortunately. looks like there's a conflict though as well now. |
@mananjadhav @bondydaa Friendly bump. Not sure if any I can do from my side to process this faster |
looks like theres still some conflicts here |
I am OOO today, but I will try to get help on this one. @bondydaa Can you help build the App again? and I can try on the iPad. |
Quick bump @bondydaa? |
doh sorry, triggering the build now. |
build running now on https://github.com/Expensify/App/actions/runs/6592626420 |
🧪🧪 Use the links below to test this build in android and iOS. Happy testing! 🧪🧪 |
Thanks @mountiny for helping us out here. |
✋ 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/mountiny in version: 1.3.90-0 🚀
|
I'm not sure this is exactly a regression but it is definitely revealed by this PR if not caused. See #30280 - thanks! |
🚀 Deployed to production by https://github.com/marcaaron in version: 1.3.90-2 🚀
|
🚀 Deployed to staging by https://github.com/mountiny in version: 1.3.91-0 🚀
|
🚀 Deployed to production by https://github.com/marcaaron in version: 1.3.91-8 🚀
|
Details
Camera preview should not blank after navigating around in tab selector
Fixed Issues
$ #27879
PROPOSAL: #27879 (comment)
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 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
web.2.mp4
Mobile Web - Chrome
Screenrecorder-2023-10-04-15-30-32-425.mp4
Mobile Web - Safari
safari.mov
Desktop
desktop.3.mp4
iOS
Screen.Recording.2023-10-04.at.15.59.34.mov
Android
Screenrecorder-2023-10-04-14-37-05-328.mp4