fix: display thread of send money request as normal thread#43742
fix: display thread of send money request as normal thread#43742stitesExpensify merged 9 commits intoExpensify:mainfrom
Conversation
|
@ahmedGaber93 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] |
|
Bug: replies related to 20240616214800492.mp4 |
|
@ahmedGaber93 Because the child report is transaction thread report so all report actions in this report will appear in the combine report in this case. |
|
That is correct, but we should fix this #43183 Expected behavior
|
|
@ahmedGaber93 Updated to fix this case. |
src/libs/ReportActionsUtils.ts
Outdated
| if (isEmptyObject(transactionThreadReportActions) || reportActions.some((action) => isSentMoneyReportAction(action))) { | ||
| return reportActions; |
There was a problem hiding this comment.
Can you add more context about this change? Also, reportActions are not sorted which make last message in pay report in LHN is not correct
There was a problem hiding this comment.
In this case we well return all report action of the expense report which have already been sorted in the report screen.
There was a problem hiding this comment.
What does reportActions.some((action) => isSentMoneyReportAction(action)) mean? Is this mean this a pay report? If that, can this condition return true on any other reports
There was a problem hiding this comment.
Also, we need to fix this
reportActionsare not sorted which make last message in pay report in LHN is not correct
There was a problem hiding this comment.
No, this only return true when we open the report preview of send money request.
There was a problem hiding this comment.
I think it will be more clean if we define it in a const and add some coments why we return reportActions in SentMoneyReport
const isSentMoneyReport = reportActions.some((action) => isSentMoneyReportAction(action))There was a problem hiding this comment.
@nkdengineer We still need to fix this #43742 (comment)
Steps to reproduce
- set Priority mode to most recent
- pay someone
- open pay report
- send message
the message you sent it in step 3 not visible in LHN as last message you sent
Reviewer Checklist
Screenshots/VideosAndroid: Nativea.mp4Android: mWeb Chromeaw.mp4iOS: Nativei.mp4iOS: mWeb Safariiw.mp4MacOS: Chrome / Safari20240624143548299.mp4MacOS: Desktopd.mp4 |
stitesExpensify
left a comment
There was a problem hiding this comment.
Apologies for the delay I was OOO. Code LGTM, however there are a couple of conflicts now
|
@stitesExpensify I merged main. Please help to 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 production by https://github.com/jasperhuangg in version: 9.0.3-7 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.0.5-13 🚀
|
|
👋 Coming from #44586 |
Details
Display thread of send money request as normal thread
Fixed Issues
$ #41645
#43183
PROPOSAL: #41645 (comment)
Tests
Offline tests
Same as above
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-06-14.at.13.45.14.mov
Android: mWeb Chrome
Screen.Recording.2024-06-14.at.13.44.22.mov
iOS: Native
Screen.Recording.2024-06-14.at.13.47.32.mov
iOS: mWeb Safari
Screen.Recording.2024-06-14.at.13.46.17.mov
MacOS: Chrome / Safari
Screen.Recording.2024-06-14.at.13.43.33.mov
MacOS: Desktop
Screen.Recording.2024-06-14.at.13.50.28.mov