fix LHN preview for payment cancellation#39963
fix LHN preview for payment cancellation#39963hayata-suenaga merged 4 commits intoExpensify:mainfrom
Conversation
|
@dukenv0307 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] |
src/libs/ReportUtils.ts
Outdated
| if (!isLHNPreview) { | ||
| payerOrApproverName = ''; | ||
| } | ||
| payerOrApproverName = payerOrApproverName ? `${payerOrApproverName}:` : payerOrApproverName; |
There was a problem hiding this comment.
Why don't we apply this logic in en/es.ts?
src/libs/ReportUtils.ts
Outdated
| const formattedAmount = CurrencyUtils.convertToDisplayString(amount, currency); | ||
| if (originalMessage?.cancellationReason === CONST.REPORT.CANCEL_PAYMENT_REASONS.ADMIN) { | ||
| const payerOrApproverName = isExpenseReport(report) ? getPolicyName(report, false) : getDisplayNameForParticipant(report?.managerID) ?? ''; | ||
| let payerOrApproverName = report?.managerID === currentUserAccountID ? '' : getDisplayNameForParticipant(report?.managerID, true); |
There was a problem hiding this comment.
| let payerOrApproverName = report?.managerID === currentUserAccountID ? '' : getDisplayNameForParticipant(report?.managerID, true); | |
| let payerOrApproverName = report?.managerID === currentUserAccountID || isLHNPreview ? '' : getDisplayNameForParticipant(report?.managerID, true); | |
| payerOrApproverName = payerOrApproverName ? `${payerOrApproverName}:` : payerOrApproverName; |
|
code looks good |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-04-11.at.00.24.47.movAndroid: mWeb ChromeScreen.Recording.2024-04-10.at.23.19.47.moviOS: Nativeweb-resize.mp4iOS: mWeb SafariScreen.Recording.2024-04-10.at.23.18.06.movMacOS: Chrome / Safari
web-resize.mp4
web-resize.mp4MacOS: Desktopweb-resize.mp4 |
|
@nkdengineer Can you please update the test step to verify what's the expectations on admin side? Thanks |
|
@nkdengineer bump |
|
@dukenv0307 please check again |
|
✋ 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.63-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.63-21 🚀
|
Details
Fixed Issues
$ #36704
PROPOSAL: #36704 (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
Screen.Recording.2024-04-10.at.02.31.09.mov
Android: mWeb Chrome
Screen.Recording.2024-04-10.at.02.29.43.mov
iOS: Native
Screen.Recording.2024-04-10.at.02.25.52.mov
iOS: mWeb Safari
Screen.Recording.2024-04-10.at.02.23.43.mov
MacOS: Chrome / Safari
Screen.Recording.2024-04-10.at.02.16.19.mov
MacOS: Desktop
Screen.Recording.2024-04-10.at.02.18.35.mov