-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Add an option for distance requests #23048
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
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
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.
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 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
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