-
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(lhn): don't show closed this report in lhn for reopned reports #55141
fix(lhn): don't show closed this report in lhn for reopned reports #55141
Conversation
Signed-off-by: jay <jaydamani567@gmail.com>
} | ||
|
||
// we do not want to show report closed in LHN for non archived report so use getReportLastMessage as fallback instead of lastMessageText from report | ||
if (reportID && !report.private_isArchived && report.lastActionType === CONST.REPORT.ACTIONS.TYPE.CLOSED) { | ||
return lastMessageTextFromReport || (ReportUtils.getReportLastMessage(reportID).lastMessageText ?? ''); | ||
} |
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.
edit: I think it makes sense to return empty string in this case
Reviewer Checklist
Screenshots/Videos |
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 staging by https://github.com/youssef-lr in version: 9.0.85-0 🚀
|
3 similar comments
🚀 Deployed to staging by https://github.com/youssef-lr in version: 9.0.85-0 🚀
|
🚀 Deployed to staging by https://github.com/youssef-lr in version: 9.0.85-0 🚀
|
🚀 Deployed to staging by https://github.com/youssef-lr in version: 9.0.85-0 🚀
|
🚀 Deployed to staging by https://github.com/youssef-lr in version: 9.0.85-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.85-4 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.85-4 🚀
|
Explanation of Change
When the lastActionType of a report is "report_closed" action and the report is not archived we show message from last visible action instead of the "report is closed" message
Fixed Issues
$ #54578
PROPOSAL: #54578 (comment)
Tests
Offline tests
Not applicable
QA Steps
Same as tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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
android-2.mp4
Android: mWeb Chrome
android-web.mp4
iOS: Native
Screen.Recording.2025-01-12.at.20.41.23.mov
iOS: mWeb Safari
Simulator.Screen.Recording.-.iPhone.16.Pro.Max.-.2025-01-12.at.20.47.08.mp4
MacOS: Chrome / Safari
MacOS: Desktop