-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
#2 - Fix scan in progress isn't shown in room LHN last message when there is a scan in progress report preview #41821
#2 - Fix scan in progress isn't shown in room LHN last message when there is a scan in progress report preview #41821
Conversation
@thesahindia 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] |
!ReportActionsUtils.isWhisperAction(reportAction) && | ||
reportAction.actionName !== CONST.REPORT.ACTIONS.TYPE.CREATED && | ||
reportAction.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE, | ||
(reportAction) => ReportActionsUtils.shouldReportActionBeVisibleAsLastAction(reportAction) && reportAction.actionName !== CONST.REPORT.ACTIONS.TYPE.CREATED, |
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.
The regression is caused by the removal of the CREATED condition. I missed the case where the last action is being used to display the last actor display name and the display name of the CREATED action is __fake__
.
Lines 306 to 310 in 55c56bf
if (!lastActorDetails && visibleReportActionItems[report.reportID]) { | |
const lastActorDisplayName = visibleReportActionItems[report.reportID]?.person?.[0]?.text; | |
lastActorDetails = lastActorDisplayName | |
? { | |
displayName: lastActorDisplayName, |
Reviewer Checklist
Screenshots/VideosiOS: mWeb SafariScreen.Recording.2024-05-03.at.6.44.52.PM.mov |
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.
Looks good!
✋ 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/yuwenmemon in version: 1.4.73-0 🚀
|
🚀 Deployed to production by https://github.com/Beamanator in version: 1.4.73-7 🚀
|
Details
The last message depends on the last action of a report, but we filtered out any action that is a whisper, including the report preview that is still in scanning. This PR fix it.
Attempt #2
Fixed Issues
$ #41753
$ #40557
PROPOSAL: #40557 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
A.
B.
__fake__
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-04-29.at.19.04.37.mov
Android: mWeb Chrome
Screen.Recording.2024-04-29.at.10.58.27.mov
iOS: Native
Screen.Recording.2024-04-29.at.18.24.28.mov
iOS: mWeb Safari
Screen.Recording.2024-04-29.at.10.56.22.mov
MacOS: Chrome / Safari
Screen.Recording.2024-05-08.at.10.58.56.mov
MacOS: Desktop
Screen.Recording.2024-04-29.at.10.54.01.mov