Add an option for distance requests#23048
Conversation
|
@eVoloshchak 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] |
|
This is ready for review, but I'll hold it on Andrew's PR so that we don't make his PR larger than it needs to be. |
|
@AndrewGable @arosiclair @eVoloshchak ready for review! |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-08-08.at.7.18.38.AM.movMobile Web - ChromeScreen.Recording.2023-08-08.at.7.25.59.AM.movMobile Web - SafariScreen.Recording.2023-08-08.at.7.23.49.AM.movDesktopScreen.Recording.2023-08-08.at.7.21.51.AM.moviOSScreen.Recording.2023-08-08.at.7.39.22.AM.movAndroidScreen.Recording.2023-08-08.at.8.06.29.AM.mov |
| function createEmptyTransaction() { | ||
| const transactionID = NumberUtils.rand64(); | ||
| Onyx.merge(`${ONYXKEYS.COLLECTION.TRANSACTION}${transactionID}`, {}); | ||
| Onyx.merge(ONYXKEYS.IOU, {transactionID}); |
There was a problem hiding this comment.
This will not reset the iou key rather just add transactionID as a key. Are you sure this is what we want to do here?
There was a problem hiding this comment.
Yeah I think other flows should handle resetting the iou key. It should be in a good state.
|
@neil-marcellini We might want to add the added route in |
allroundexperts
left a comment
There was a problem hiding this comment.
Changes are testing well. Two small comments but feel free to merge if this is urgent.
|
@jasperhuangg 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] |
I'll do that in this PR as a quick follow up. |
|
✋ 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: 1.3.52-0 🚀
|
|
🚀 Deployed to staging by https://github.com/neil-marcellini in version: 1.3.52-0 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.52-5 🚀
|
|
Coming from #25661, We should've disabled the drag & drop for the distance page, it was disabled only for the manual tab |
Details
Simple first step of adding a distance request option and generating a transaction for the IOU request optimistically, as per the design doc.
Fixed Issues
$ #22698
PROPOSAL: N/A
Tests
Offline tests
QA Steps
Run tests above
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)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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
I only tested on web because the code is platform independent.
Web
Screen.Recording.2023-07-19.at.6.29.41.PM.mov
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android