-
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
Update reimbursement account page to function component #29166
Update reimbursement account page to function component #29166
Conversation
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.
Also, please run lint
script to make sure that everything is correct, because I see that some deps. arrays don't have all dependencies and no lint ignores.
fa28b86
to
ffe65cc
Compare
@ntdiary @marcaaron just want to let you know the changes have been pushed yesterday |
@keisyrzk, thank you, I have tested, looks like it's working well, except there's a small difference when opening from test.mp4 |
Sorry for the delay here - code LGTM. We must run prettier and then it is ready for |
@marcaaron I ran prettier and pushed the update. |
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, but the reassure performance test is failing. I am not sure how to resolve that and don't quite understand why it fails.
@marcaaron, the failed jest test on the main branch are causing the reassure job to fail, So there's probably not much we can do on this branch. : ) I see other branches have successful runs, maybe we could also try rerunning the reassure job, or merging this branch first, and then improving the stability of the jest tests in a separate issue. |
That failure is just a timeout in those tests which we have fixed in a recent PR, I am going to merge this over the failing tests as its flakey |
✋ 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.98-0 🚀
|
import ReimbursementAccountLoadingIndicator from '@components/ReimbursementAccountLoadingIndicator'; | ||
import ScreenWrapper from '@components/ScreenWrapper'; | ||
import Text from '@components/Text'; | ||
import withLocalize, {withLocalizePropTypes} from '@components/withLocalize'; | ||
import Text from '@components/TextInput'; |
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.
This caused a regression IRT the resuming bank account flows here: #31212 |
This is staged to be reverted and CP'd |
🚀 Deployed to production by https://github.com/roryabraham in version: 1.3.98-5 🚀
|
Ah, I didn't realize it was a regression. I initially thought it wasn't a blocking problem, so I left only a comment there. 😅 |
🚀 Deployed to staging by https://github.com/mountiny in version: 1.4.0-0 🚀
|
Details
Updated the component so it is now built with a function.
Fixed Issues
$ #16245
Tests
Offline tests
NA
QA Steps
Same steps as the
Tests
sectionPR 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
Android: Native
android.mp4
Android: mWeb Chrome
android_chrome.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
ios_safari.mp4
MacOS: Chrome / Safari
macos_chrome.mp4
macos_safari.mp4
MacOS: Desktop
macos_desktop.mp4