Closed WoLewicki closed 2 weeks ago
@ZhenjaHorbach 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]
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and not onIconClick
).src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components using Avatar
have been tested & I retested again)/** comment above it */
this
properly so there are no scoping issues (i.e. for onClick={this.submit}
the method this.submit
should be bound to this
in the constructor)this
are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this);
if this.submit
is never passed to a component event handler like onClick
)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG
)Avatar
is modified, I verified that Avatar
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 the Test
steps.🚧 @mountiny has triggered a test build. You can view the workflow run here.
:test_tube::test_tube: Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! :test_tube::test_tube: | Android :robot: | iOS :apple: |
---|---|---|
https://ad-hoc-expensify-cash.s3.amazonaws.com/android/55082/index.html | ❌ FAILED ❌ | |
The QR code can't be generated, because the iOS build failed | ||
Desktop :computer: | Web :spider_web: | |
https://ad-hoc-expensify-cash.s3.amazonaws.com/desktop/55082/NewExpensify.dmg | https://55082.pr-testing.expensify.com | |
:eyes: View the workflow run that generated this build :eyes:
:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.
🚀 Cherry-picked to staging by https://github.com/thienlnam in version: 9.0.83-3 🚀
platform | result |
---|---|
🤖 android 🤖 | success ✅ |
🖥 desktop 🖥 | success ✅ |
🍎 iOS 🍎 | success ✅ |
🕸 web 🕸 | success ✅ |
🤖🔄 android HybridApp 🤖🔄 | failure ❌ |
🍎🔄 iOS HybridApp 🍎🔄 | success ✅ |
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes.
🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.83-5 🚀
platform | result |
---|---|
🤖 android 🤖 | true ❌ |
🖥 desktop 🖥 | success ✅ |
🍎 iOS 🍎 | success ✅ |
🕸 web 🕸 | success ✅ |
🤖🔄 android HybridApp 🤖🔄 | failure ❌ |
🍎🔄 iOS HybridApp 🍎🔄 | success ✅ |
🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.83-5 🚀
platform | result |
---|---|
🤖 android 🤖 | true ❌ |
🖥 desktop 🖥 | success ✅ |
🍎 iOS 🍎 | success ✅ |
🕸 web 🕸 | success ✅ |
🤖🔄 android HybridApp 🤖🔄 | failure ❌ |
🍎🔄 iOS HybridApp 🍎🔄 | success ✅ |
Explanation of Change
In scenario when the HybridApp is freshly installed, there is a bug that when the OD is starting, at the same time RN activity is run, resolving in executing the JS bundle which in turn loads modules. One of them (probably more so until we find a fix for early RN start, bugs can appear quite randomly),
StatusBar
, needscurrentActivity
to get its height: https://github.com/facebook/react-native/blob/fd0894b1c7fcb20dd213ec1e93aafef25935d709/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/statusbar/StatusBarModule.kt#L49. It fails due to activity not being visible (?) so it returns0
as its height. This value is then read in the file changed by the PR, resulting in no top padding.I couldn't find a reason why those values are used at all when we have
SafeAreaProvider
that returns correct values, so I just removed it for now. cc @hannojg @chrispader since I saw you touched that code recently (https://github.com/Expensify/App/pull/53223).Hopefully it fixes the same issue that happens only on ND, maybe those values are incorrect there too in some weird scenarios. Please try and test it.
Fixed Issues
$ https://github.com/Expensify/App/issues/54988 PROPOSAL:
Tests
Offline tests
N/A
QA Steps
N/A // TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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