LHN-LHN doesn't show the message sent or the system message#64161
LHN-LHN doesn't show the message sent or the system message#64161deetergp merged 6 commits intoExpensify:mainfrom
Conversation
|
@QichenZhu 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] |
QichenZhu
left a comment
There was a problem hiding this comment.
Could you add unit tests as you proposed? These changes don't seem covered by existing tests.
|
Okay, i will add it today |
|
@QichenZhu Test is added |
src/libs/OptionsListUtils.ts
Outdated
| } | ||
|
|
||
| if (reportID) { | ||
| const chatReport = getReportOrDraftReport(report.chatReportID); |
There was a problem hiding this comment.
I've heard getReportOrDraftReport() will be removed. Please refer to #63731 (comment).
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid-native.mp4Android: mWeb Chromeandroid-web.mp4iOS: HybridAppios-native.mp4iOS: mWeb Safariios-web.mp4MacOS: Chrome / Safarimac-web.movMacOS: Desktopmac-desktop.mov |
src/libs/OptionsListUtils.ts
Outdated
|
|
||
| if (reportID) { | ||
| const chatReport = allReports?.[`${ONYXKEYS.COLLECTION.REPORT}${report?.chatReportID}`]; | ||
| // If the expense report is the one expense report, get the last message text from the last report action |
There was a problem hiding this comment.
I don't get this comment. The previous version is clearer if there's no better option.
Suggest change:
|
|
@QichenZhu Updated |
src/libs/OptionsListUtils.ts
Outdated
|
|
||
| if (reportID) { | ||
| const chatReport = allReports?.[`${ONYXKEYS.COLLECTION.REPORT}${report?.chatReportID}`]; | ||
| // If the report is combined report, get the last message text from the last report action |
There was a problem hiding this comment.
| // If the report is combined report, get the last message text from the last report action | |
| // If the report is a one-transaction report, get the last message text from combined report actions so the LHN can display modifications to the transaction thread or the report itself |
|
🚀 Deployed to staging by https://github.com/deetergp in version: 9.1.70-0 🚀
|
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 9.1.70-7 🚀
|
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 9.1.70-7 🚀
|
2 similar comments
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 9.1.70-7 🚀
|
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 9.1.70-7 🚀
|
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 9.1.70-7 🚀
|
Explanation of Change
Fixed Issues
$#62991
PROPOSAL:#62991 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand 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_web.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios_safari.mov
MacOS: Chrome / Safari
chorme.mov
MacOS: Desktop
desktop.mov