remove distance flow in split bill#26666
Conversation
|
@allroundexperts 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/VideosWebScreen.Recording.2023-09-04.at.7.39.12.PM.movMobile Web - ChromeScreen.Recording.2023-09-04.at.7.51.09.PM.movMobile Web - SafariScreen.Recording.2023-09-04.at.7.50.21.PM.movDesktopScreen.Recording.2023-09-04.at.7.45.41.PM.moviOSScreen.Recording.2023-09-04.at.7.53.12.PM.movAndroidScreen.Recording.2023-09-04.at.7.52.20.PM.mov |
|
@situchan Tests seem to be passing on main. No? |
|
|
Oh well. @mountiny Should we fix the unit tests first before merging this? |
|
Hmm why are they failing? Is it not the checkout issue? |
…1-distance-flow-in-split-bill
|
Success this time 🎉 |
| * @returns {Boolean} | ||
| */ | ||
| function isDistanceRequest(iouType, selectedTab) { | ||
| return iouType === CONST.IOU.MONEY_REQUEST_TYPE.REQUEST && selectedTab === CONST.TAB.DISTANCE; |
There was a problem hiding this comment.
Can you rephrase your question?
There was a problem hiding this comment.
It's clearly stated in jsDoc:
* @param {String} iouType - `send` | `split` | `request`
There was a problem hiding this comment.
Oh my god. Sorry, I completely miswrote it. I mean't to ask that how can the send flow be tested?
There was a problem hiding this comment.
send flow is disabled for now. It's already announced in channel. So no need to test
There was a problem hiding this comment.
Must have missed. Thanks @situchan for the confirmation.
|
@allroundexperts confirmed edit works as expected https://expensify.slack.com/archives/C02NK2DQWUX/p1693841136035539?thread_ts=1693832321.726089&cid=C02NK2DQWUX |
|
✋ 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/mountiny in version: 1.3.63-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.63-2 🚀
|
|
🚀 Deployed to staging by https://github.com/mountiny in version: 1.3.64-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.64-2 🚀
|




Details
There are 5 pages where this wrong condition is used
Fixed Issues
$ #26661
Tests
Same as QA step
Offline tests
Same as QA step
QA Steps
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
Web
web.mov
Mobile Web - Chrome
mchrome.mov
Mobile Web - Safari
msafari.mov
Desktop
desktop.mov
iOS
ios.mov
Android
android.mov