Update LHN/chat header to handle displayName not being set - MR participants list fix#30342
Conversation
|
@mananjadhav 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] |
|
@mananjadhav will you be able to review/test this today? |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeScreen.Recording.2023-10-31.at.9.12.47.AM.moviOS: NativeiOS: mWeb SafariScreen.Recording.2023-10-31.at.9.11.03.AM.movMacOS: Chrome / SafariScreen.Recording.2023-10-31.at.9.01.28.AM.movMacOS: DesktopScreen.Recording.2023-10-31.at.9.08.22.AM.mov |
|
@lukemorawski Instead of showing
|
|
@lukemorawski will you be able to address that today? |
|
@puneetlath yep, I think so |
|
@allroundexperts I cannot reproduce that. Everything works good. Can you provide steps for reproduction? |
|
@allroundexperts @puneetlath in effort to reproduce the issue I have found two other places where "Hidden" was not showing up. It's the report welcome message and report action item header. |
|
yep, I have even checked out this PR directly and everything seems to run as it should be |
|
Also there this odd lint error, though I'm running both |
|
I think it's unrelated to this PR and you should be able to fix it by merging main (soon). |
@lukemorawski I'm following the exact steps mentioned in OP. |
|
@allroundexperts Really don't know what's going on. Looking at the screenshot you took it looks like there have been no changes to the code and thus there's no logic present responsible for the "Hidden" fallback. hidden.fallback.mov |
|
I can take a look again. No problem |
|
@allroundexperts did you get a chance to re-test? |
|
@puneetlath Just finished. @lukemorawski It's testing well now. One thing I'm not sure about is that on tooltips, we're just showing the icon and not the text
Also, lint is failing. If you can please fix that. |
|
@allroundexperts cool, will fix that today |
|
@allroundexperts Fixed |
allroundexperts
left a comment
There was a problem hiding this comment.
Looks good to me. @puneetlath I wasn't able to test on Android and iOS native because I'm having some issues with my setup. I think the changes aren't related to a specific platform so we should be fine here. Let me know if you'd disagree.
|
I'm comfortable with it for this PR. Going to go ahead and merge. |
|
🚀 Deployed to staging by https://github.com/puneetlath in version: 1.3.95-0 🚀
|
|
Hi all! Looks like this caused this regression - #30846 - with this particular line causing the trouble: We can fix this by changing that line to: But as there's a bunch going on in the PR, I'd love to get some testing (or an alternate fix) from y'all to make sure that's the best idea and doesn't introduce anything new. Thank you! |
|
This PR also ignores the delegate details implemented in #22848 |
|
@s-alves10 I don't think that's intentional. I think we just missed that scenario. |
|
@s-alves10 I don't it was intentional. If you take a look a the diff for |
|
If so, |
|
@dangrous @s-alves10 yep, I guess so as it's conditionally reassigned on line 96. Sorry, my bad! |
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.95-9 🚀
|
|
🚀 Deployed to staging by https://github.com/puneetlath in version: 1.3.96-0 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.96-15 🚀
|
|
|
||
| const userDetails = lodashGet(props.personalDetailsList, props.accountID, props.fallbackUserDetails); | ||
| let userDisplayName = userDetails.displayName ? userDetails.displayName.trim() : ''; | ||
| let userDisplayName = ReportUtils.getDisplayNameForParticipant(props.accountID); |
There was a problem hiding this comment.
Coming from #31720.
For a user that has never been chatted with, getDisplayNameForParticipant might return an empty string, causing the tooltip not to display.


Details
This PR addresses the issue with creating a distance money request described here.
Fixed Issues
$ #27393
PROPOSAL: No proposal
Tests
Offline tests
QA Steps
personalDetailsListkey, find the object that represents personal details of a contact you want to make hiddenPR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android