[TS migration] Migrate withFullTransactionOrNotFound HOC to TypeScript#38990
Merged
tylerkaraszewski merged 6 commits intoExpensify:mainfrom Apr 3, 2024
Conversation
50 tasks
MrRefactor
approved these changes
Mar 26, 2024
| import type {Transaction} from '@src/types/onyx'; | ||
|
|
||
| type WithFullTransactionOrNotFoundOnyxProps = { | ||
| /** Indicated whether the report data is loading */ |
fabioh8010
approved these changes
Mar 26, 2024
fabioh8010
approved these changes
Mar 27, 2024
blazejkustra
approved these changes
Mar 27, 2024
| const IOURequestStepWaypointWithWritableReportOrNotFound = withWritableReportOrNotFound(IOURequestStepWaypoint); | ||
| // eslint-disable-next-line rulesdir/no-negated-variables | ||
| const IOURequestStepWaypointWithFullTransactionOrNotFound = withFullTransactionOrNotFound(IOURequestStepWaypointWithWritableReportOrNotFound); | ||
| export default withFullTransactionOrNotFound( |
Contributor
There was a problem hiding this comment.
You changed the order of HOC here, please make sure it doesn't introduce any regressions
Contributor
Author
There was a problem hiding this comment.
I have't found any issue while testing, but just in case I've swapped it.
Thanks!
Contributor
|
@mollfpr kind bump 🙂 |
Contributor
|
@mollfpr kind bump 😄 |
Contributor
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 |
Contributor
Author
|
Kind bump @tylerkaraszewski |
50 tasks
tylerkaraszewski
approved these changes
Apr 3, 2024
44 tasks
48 tasks
Contributor
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.60-13 🚀
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.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