-
Notifications
You must be signed in to change notification settings - Fork 3k
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: display thread of send money request as normal thread #43742
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, we need to fix this
reportActions
are not sorted which make last message in pay report in LHN is not correct
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.
No, this only return true when we open the report preview of send money request.
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ahmedGaber93 I updated.
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.
@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
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.
@ahmedGaber93 I fixed this case.
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!
Reviewer Checklist
Screenshots/VideosAndroid: Nativea.mp4Android: mWeb Chromeaw.mp4iOS: Nativei.mp4iOS: mWeb Safariiw.mp4MacOS: Chrome / Safari20240624143548299.mp4MacOS: Desktopd.mp4 |
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.
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. |
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
✋ 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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.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 and/or tagged@Expensify/design
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-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