-
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
Update LHN/chat header to handle displayName not being set - MR participants list fix #30342
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 |
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 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 🚀
|
@@ -18,7 +19,7 @@ function BaseUserDetailsTooltip(props) { | |||
const {translate} = useLocalize(); | |||
|
|||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
personalDetailsList
key, find the object that represents personal details of a contact you want to make hiddenPR 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)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android