fix: Can't view receipt from Split Expense details view#42399
fix: Can't view receipt from Split Expense details view#42399AndrewGable merged 9 commits intoExpensify:mainfrom
Conversation
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
|
@Krishna2323 Let me know when the PR is ready for a review. Thanks! |
|
Will add recording in few hours. |
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
|
@mollfpr, you can review the code, I couldn't add recordings yesterday as I was facing version issues in Xcode. However, I have added recording for |
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
|
All recordings have been added. |
| isEditingSplitBill?: boolean; | ||
|
|
||
| /** Whether we're shwowing a created split expense */ | ||
| isSplitBillDetailsPage?: boolean; |
There was a problem hiding this comment.
I think we can make the naming more useable here, for example, shouldReceiptPressable.
There was a problem hiding this comment.
What do you think about canOpenReceipt/canDIsplayReceipt?
There was a problem hiding this comment.
canDIsplayReceipt sounds good to me.
There was a problem hiding this comment.
updated to shouldDisplayReceipt.
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
src/pages/TransactionReceiptPage.tsx
Outdated
| // eslint-disable-next-line rulesdir/no-negated-variables | ||
| const shouldShowNotFoundPage = isTrackExpenseReport ? !transaction : (moneyRequestReportID ?? '') !== transaction?.reportID; | ||
| const shouldShowNotFoundPage = isTrackExpenseReport || transaction?.reportID === CONST.REPORT.SPLIT_REPORTID ? !transaction : (moneyRequestReportID ?? '') !== transaction?.reportID; | ||
| // const shouldShowNotFoundPage = isTrackExpenseReport ? !transaction : (moneyRequestReportID ?? '') !== transaction?.reportID; |
There was a problem hiding this comment.
We need to modify the shouldShowNotFoundPage because the transaction?.reportID for split transaction is always -2.
There was a problem hiding this comment.
I mena there's a comment in the next line.
There was a problem hiding this comment.
ohh sorry, I missed that, updated now.
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
Reviewer Checklist
Screenshots/VideosAndroid: Native42399.Android.mp4Android: mWeb Chrome42399.mWeb-Chrome.mp4iOS: Native42399.iOS.moviOS: mWeb Safari42399.mWeb-Safari.movMacOS: Chrome / Safari42399.Web.mp4MacOS: Desktop42399.Desktop.mp4 |
|
@Krishna2323 Could you resolve the conflict? Thanks! |
|
Conflicts resolved. |
|
✋ 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 production by https://github.com/luacmartins in version: 1.4.81-11 🚀
|
Details
Fixed Issues
$ #41249
PROPOSAL: #41249 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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
android_native.mp4
Android: mWeb Chrome
android_chrome.mp4
iOS: Native
ios_native.mp4
iOS: mWeb Safari
ios_safari.mp4
MacOS: Chrome / Safari
web_chrome.mp4
MacOS: Desktop
desktop_app.mp4