Refactor createDistanceRequest function#53994
Refactor createDistanceRequest function#53994neil-marcellini merged 3 commits intoExpensify:mainfrom
Conversation
|
@dukenv0307 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] |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-12-16.at.14.42.50.movAndroid: mWeb ChromeScreen.Recording.2024-12-16.at.14.13.51.moviOS: NativeScreen.Recording.2024-12-16.at.14.36.00.moviOS: mWeb SafariScreen.Recording.2024-12-16.at.14.10.41.movMacOS: Chrome / SafariScreen.Recording.2024-12-16.at.14.08.25.movMacOS: DesktopScreen.Recording.2024-12-16.at.14.46.25.mov |
neil-marcellini
left a comment
There was a problem hiding this comment.
One comment that's not a blocker. You can fix it in a follow up if you like, or we can leave it as is. Thanks.
| iouType: ValueOf<typeof CONST.IOU.TYPE> = CONST.IOU.TYPE.SUBMIT, | ||
| existingTransaction: OnyxEntry<OnyxTypes.Transaction> | undefined = undefined, | ||
| ) { | ||
| function createDistanceRequest(distanceRequestInformation: CreateDistanceRequestInformation) { |
There was a problem hiding this comment.
NAB: It's pretty redundant to have the prefix distanceRequest in distanceRequestInformation. Let's just call it params or something simple like that.
|
✋ 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/neil-marcellini in version: 9.0.77-0 🚀
|
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.0.77-6 🚀
|
Explanation of Change
Refactor createDistanceRequest function
Fixed Issues
$ #53789
PROPOSAL: #53789 (comment)
Tests
Offline tests
Same
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.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 and/or tagged@Expensify/designso 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
Screen.Recording.2024-12-12.at.15.14.51.mov
Android: mWeb Chrome
Screen.Recording.2024-12-12.at.15.13.07.mov
iOS: Native
Screen.Recording.2024-12-12.at.15.15.59.mov
iOS: mWeb Safari
Screen.Recording.2024-12-12.at.15.12.04.mov
MacOS: Chrome / Safari
Screen.Recording.2024-12-12.at.15.10.52.mov
MacOS: Desktop
Screen.Recording.2024-12-12.at.15.19.56.mov