Repository navigation
Conversation
|
@Beamanator @fedirjh One of you needs to 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] |
|
@fedirjh please review when you have time and test on web & desktop |
|
@burczu @Beamanator Unrelated to this PR, the logo of the tooltip for users with default avatars are different.
|
| const keys = lodashKeys(allPersonalDetails); | ||
| const result = lodashFind(keys, (key) => allPersonalDetails[key].login === login) || '0'; | ||
| return Number(result); |
There was a problem hiding this comment.
| const keys = lodashKeys(allPersonalDetails); | |
| const result = lodashFind(keys, (key) => allPersonalDetails[key].login === login) || '0'; | |
| return Number(result); | |
| const accountID = _.findKey(allPersonalDetails, {login}) || '0'; | |
| return Number(accountID); |
We can simplify this block , we can use underscore findKey .
There was a problem hiding this comment.
This seemed to work well for me too 👍
| import lodashFind from 'lodash/find'; | ||
| import lodashKeys from 'lodash/keys'; |
There was a problem hiding this comment.
| import lodashFind from 'lodash/find'; | |
| import lodashKeys from 'lodash/keys'; |
Suggestion Follow up
Reviewer Checklist
Screenshots/VideosMobile Web - ChromeMobile Web - SafariiOSAndroid |
|
Can we re-think of more optimized solution proposed here? |
|
Can anyone please confirm if this issue is fixed by this PR #20839 |
|
@0xmiroslav I think you are right and I agree that the other solution looks better. How do we want to tackle this? Should we close this PR and related issue, reopen the other one and let the author of that other proposal work on it? cc: @Beamanator |
|
@MonilBhavsar I think this PR won't fix the issue you've mentioned - it only fixes missing display name in the tooltip and doesn't handle too long emails/displayNames in any way... |
I am not sure. @alex-mechler will decide. |
|
I agree with @0xmiroslav & @burczu that this solution looks best - Let's close this out & reopen that issue |






















Details
This PR fixes the issue with the lack of display name displayed in the tooltip while hovering over the avatars in the LHN.
Fixed Issues
$ #20801
PROPOSAL: #20801 (comment)
Tests
Offline tests
Same as above.
QA Steps
Same as above.
PR 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
screen-capture-20801-web.mp4
Mobile Web - Chrome
n/a
Mobile Web - Safari
n/a
Desktop
screen-capture-20801-desktop.mp4
iOS
n/a
Android
n/a