Repository navigation
fix: Description/Merchant does not show in request preview. - #39228
Conversation
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
| @@ -228,7 +231,8 @@ function ReportPreview({ | |||
| In this case, we don't want to show the merchant because it says: "Pending route...", which is already displayed in the amount field. | |||
| */ | |||
| const shouldShowSingleRequestMerchant = numberOfRequests === 1 && !!formattedMerchant && !(hasOnlyTransactionsWithPendingRoutes && !totalDisplaySpend); | |||
There was a problem hiding this comment.
Can we just change this line?
| const shouldShowSingleRequestMerchant = numberOfRequests === 1 && !!formattedMerchant && !(hasOnlyTransactionsWithPendingRoutes && !totalDisplaySpend); | |
| const shouldShowSingleRequestMerchantOrDescription = numberOfRequests === 1 && (!!formattedMerchant || !!formattedDescription) && !(hasOnlyTransactionsWithPendingRoutes && !totalDisplaySpend); |
There was a problem hiding this comment.
Yeah we can, updated.
| @@ -228,7 +231,8 @@ function ReportPreview({ | |||
| In this case, we don't want to show the merchant because it says: "Pending route...", which is already displayed in the amount field. | |||
There was a problem hiding this comment.
It'll be great to get the above comment updated as well.
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
Reviewer Checklist
Screenshots/VideosMacOS: Chrome / Safari0-web.mp4 |
|
@hayata-suenaga looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
not emergency. checks were all green |
|
✋ 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/hayata-suenaga in version: 1.4.59-0 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.60-13 🚀
|















Details
Fixed Issues
$ #38506
PROPOSAL: #38506 (comment)
Tests
+button in the composerOffline tests
+button in the composerQA Steps
+button in the composerPR 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