-
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: add actor display name in lhn #34212
Conversation
@0xmiroslav 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] |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Desktop |
@eVoloshchak 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] |
#33703 |
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'm able to reproduce the issue described in #34212 (comment), but for me, it displays "{username}: invited" until you open the report
@dukenv0307, could you take a look at this please?
@eVoloshchak The problem here is when we do not open the report, there is no report action so the subtitle fallback lastMessageText of the report and then when we open the report, |
Reviewer Checklist
Screenshots/Videos |
Can see the same problem as described in #34212 (comment) on |
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. |
Heads up - we're reverting this because cc @koko57 if you can think of a way to re-apply this change based on your previous changes in #34872, that would be appreciated. Thanks! |
🚀 Cherry-picked to staging by https://github.com/francoisl in version: 1.4.33-5 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to staging by https://github.com/stitesExpensify in version: 1.4.34-0 🚀
|
🚀 Deployed to staging by https://github.com/stitesExpensify in version: 1.4.34-0 🚀
|
@francoisl @dukenv0307 you can use the lastActorDisplayName. It returns an empty string if the last actor is the current user, otherwise, it returns the first name. You can also restore currentUserId, but lastActorDisplayName works here. |
|
||
const actorDisplayName = ReportUtils.getDisplayNameForParticipant(lastAction.actorAccountID); | ||
result.alternateText = | ||
lastAction.actorAccountID === currentUserAccountID ? `${verb} ${targetAccountIDs.length} ${users}` : `${actorDisplayName} ${verb} ${targetAccountIDs.length} ${users}`; |
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.
remove const actorDisplayName
and replace currentUserAccountID
with lastActorDisplayName
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.
Do I need to create a follow PR to refactor this?
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.
@francoisl wdyt?
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 gotchu, sent a PR here.
🚀 Deployed to production by https://github.com/francoisl in version: 1.4.34-1 🚀
|
Details
As invited user, in LHN, sender user id is not displayed under room chat report.
Fixed Issues
$ #33703
PROPOSAL: #33703 (comment)
Tests
Offline tests
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 methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.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 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
33703-android.mov
Android: mWeb Chrome
33703-android-mweb.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios-mweb.mov
MacOS: Chrome / Safari
33703-web.mov
MacOS: Desktop
desktop.mov