-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Fix system paid message #36993
Fix system paid message #36993
Conversation
translationKey = 'iou.payerPaidAmount'; | ||
break; | ||
} | ||
return Localize.translateLocal(translationKey, {amount: formattedAmount, payer: ''}); |
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.
From #33819, I bring the getIOUReportActionDisplayMessage
back and only remove the payerName
for the paid message.
src/libs/ReportUtils.ts
Outdated
@@ -2380,7 +2379,7 @@ function getReportPreviewMessage( | |||
translatePhraseKey = 'iou.paidWithExpensifyWithAmount'; | |||
} | |||
|
|||
let actualPayerName = report.managerID === currentUserAccountID || shouldHidePayer ? '' : getDisplayNameForParticipant(report.managerID, true); |
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.
remove shouldHidePayer
param here since we will handle this case in getIOUReportActionDisplayMessage
function.
@dukenv0307 Let's speed up this PR |
@DylanDylann 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] |
Hey @DylanDylann and @dukenv0307, what are your thoughts on merging the revert PR first. Most of these changes seem to be similar and it might be easier reviewing this PR if it branches from the already reverted PR since we know the reverted PR will solve the deploy blockers without re-introducing new issues. |
@srikarparsi I think that's good. |
Merged the revert PR @dukenv0307, please merge main into this PR whenever you get a chance. |
@DylanDylann Merged main and updated to fix the original issue. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-02-21.at.18.45.17-compressed.movAndroid: mWeb ChromeScreen.Recording.2024-02-21.at.18.46.40-compressed.moviOS: NativeScreen.Recording.2024-02-21.at.18.42.59-compressed.moviOS: mWeb SafariScreen.Recording.2024-02-21.at.18.44.41-compressed.movMacOS: Chrome / SafariScreen.Recording.2024-02-21.at.18.48.22.movMacOS: DesktopScreen.Recording.2024-02-21.at.18.51.02.mov |
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.
lgtm according to these specifications
✋ 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/srikarparsi in version: 1.4.44-0 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.44-13 🚀
|
Details
Fix regression of issue
Fixed Issues
$ #33819
PROPOSAL: #33819 (comment)
Tests
%workspaceName% paid $100.00
%payerName%: paid $100.00 [using Expensify || elsewhere]
paid $100.00 [using Expensify || elsewhere]
Offline tests
Same as above
QA Steps
%workspaceName% paid $100.00
%payerName%: paid $100.00 [using Expensify || elsewhere]
paid $100.00 [using Expensify || elsewhere]
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)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.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
Android: Native
Screen.Recording.2024-02-21.at.12.18.16.mp4
Android: mWeb Chrome
Screen.Recording.2024-02-21.at.11.06.13.mov
iOS: Native
Screen.Recording.2024-02-21.at.12.11.55.mp4
iOS: mWeb Safari
Screen.Recording.2024-02-21.at.11.01.51.mov
MacOS: Chrome / Safari
Screen.Recording.2024-02-21.at.10.55.21.mov
MacOS: Desktop
Screen.Recording.2024-02-21.at.11.12.18.mov