Add system message on report with bottom up flow#60482
Add system message on report with bottom up flow#60482lakchote merged 19 commits intoExpensify:mainfrom
Conversation
|
@shubham1206agra 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] |
Co-authored-by: Lucien Akchoté <lucien@expensify.com>
Co-authored-by: Lucien Akchoté <lucien@expensify.com>
|
@shubham1206agra friendly bump |
Screen.Recording.2025-05-22.at.10.40.12.PM.mov@nkdengineer BE issue |
| html: isIouReport | ||
| ? `moved this <a href='${CONST.NEW_EXPENSIFY_URL}r/${reportID}/${reportActionID}' target='_blank' rel='noreferrer noopener'>report</a> to the ${policyName} workspace` | ||
| : `moved this report to the <a href='${CONST.NEW_EXPENSIFY_URL}r/${newParentReportID}' target='_blank' rel='noreferrer noopener'>${policyName}</a> workspace`, |
There was a problem hiding this comment.
@lakchote The message we are getting has different html
See Request ID - 943ded0a7811ffab-SJC
There was a problem hiding this comment.
Sorry, I had urgent priorities to handle. Which message are you getting exactly?
The message returned in the backend for the MOVED report action will be:
"moved this report to" + policyNameText + "workspace");There was a problem hiding this comment.
There was a problem hiding this comment.
Okay, I've been starting to work on it.
There was a problem hiding this comment.
@lakchote Can you please update us here when the BE is fixed?
There was a problem hiding this comment.
@shubham1206agra @nkdengineer it should be good now.
|
@nkdengineer Can you merge main please? |
Screen.Recording.2025-06-11.at.8.32.18.PM.mov@lakchote Still not working correctly. The link for report is missing on 1:1 report's report action. |
Co-authored-by: Shubham Agrawal <58412969+shubham1206agra@users.noreply.github.com>
Co-authored-by: Shubham Agrawal <58412969+shubham1206agra@users.noreply.github.com>
PRs (https://github.com/Expensify/Auth/pull/15747, https://github.com/Expensify/Web-Expensify/pull/47198) to fix this are under review. |
|
@nkdengineer Fix lint please |
|
@lakchote Can you please give status update here for the PRs? |
|
We already added this, seems duplicate. |
|
@getusha Your message is wrong. So, you haven't really implemented this. |
Can you elaborate? I don't see the code we added getting removed. and createWorkspaceFromIOUPayment already had a system message before. |
I mean see the message we are implementing. Plus, the message was present in the 1:1 DM, but was not present in the IOU report earlier. Plus, your PR only covers if the workspace is present. |
Co-authored-by: Shubham Agrawal <58412969+shubham1206agra@users.noreply.github.com>
|
@shubham1206agra thanks for your review. I updated |
@nkdengineer You have not addressed this yet |
|
I'm checking now |
@shubham1206agra I updated, It seems we also need to update the API |
@nkdengineer I don't think you have done this correctly. You just needed to update the parameter of the function correctly there. |
|
@shubham1206agra, These places you mentioned are the moved action we added to the old chat report and I don't think it should be the same with the new action we add to the iou report. |
|
What? I am confused here |
|
You mean we can add But from what I see, it's the action we added to the old chat report. It's not the same with the new action we added to the iou report in this issue. (The expectation of this PR is that we add a new moved action to the iou report). App/src/libs/actions/Report.ts Line 5126 in 6b934d1 App/src/libs/actions/Report.ts Line 5379 in 6b934d1 |
|
Hardcoded strings from |
These cannot be translated since there are 2 different version for same action. Plus, we should never translate the action since these are always in English. |
|
@shubham1206agra i updated. It seems that we’ve removed all usages of the |
|
✋ 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/lakchote in version: 9.1.74-2 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 9.1.74-10 🚀
|
Explanation of Change
Fixed Issues
$ #59752
PROPOSAL: #59752 (comment)
Tests
Offline tests
Same as tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)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.mov
Android: mWeb Chrome
android-mweb.mov
iOS: Native
ios.mp4
iOS: mWeb Safari
ios-mweb.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov