-
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
[TS migration] Migrate withFullTransactionOrNotFound HOC to TypeScript #38990
[TS migration] Migrate withFullTransactionOrNotFound HOC to TypeScript #38990
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.
lgtm
import type {Transaction} from '@src/types/onyx'; | ||
|
||
type WithFullTransactionOrNotFoundOnyxProps = { | ||
/** Indicated whether the report data is loading */ |
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.
Indicates*
const IOURequestStepWaypointWithWritableReportOrNotFound = withWritableReportOrNotFound(IOURequestStepWaypoint); | ||
// eslint-disable-next-line rulesdir/no-negated-variables | ||
const IOURequestStepWaypointWithFullTransactionOrNotFound = withFullTransactionOrNotFound(IOURequestStepWaypointWithWritableReportOrNotFound); | ||
export default withFullTransactionOrNotFound( |
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.
You changed the order of HOC here, please make sure it doesn't introduce any regressions
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.
I have't found any issue while testing, but just in case I've swapped it.
Thanks!
@mollfpr kind bump 🙂 |
@mollfpr kind bump 😄 |
Reviewer Checklist
Screenshots/VideosAndroid: Native38990.Android.mp4Android: mWeb Chrome38990.mWeb-Chrome.mp4iOS: Native38990.iOS.moviOS: mWeb Safari38990.mWeb-Safari.movMacOS: Chrome / Safari38990.Web.mp4MacOS: Desktop38990.Desktop.mp4 |
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.
Sorry for the delay 🙏
Kind bump @tylerkaraszewski |
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.60-13 🚀
|
Details
[TS migration] Migrate *withFullTransactionOrNotFound HOC to TypeScript
Fixed Issues
$ #36123
PROPOSAL: N/A
Tests
Verify that no errors appear in the JS console
Open the app and log in
Navigate to any chat
Press plus and request money
Following the request money process should work as before
Offline tests
N/A
QA Steps
Same as in the Tests section.
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)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label 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
8mb.video-2W7-OcZXZfPw.mp4
Android: mWeb Chrome
android-web.mov
iOS: Native
ios-native.mov
iOS: mWeb Safari
ios-web.mov
MacOS: Chrome / Safari
macos-web.mov
MacOS: Desktop
macos-native.mov