-
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 tooltip for mentions #23310
Fix tooltip for mentions #23310
Conversation
<UserDetailsTooltip | ||
accountID={accountID} | ||
fallbackUserDetails={{ | ||
displayName: loginWithoutLeadingAt, |
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.
we don't need to pass anything else here since login is not shown if displayName is same as login
const subtitle = (userLogin || '').trim() && !_.isEqual(LocalePhoneNumber.formatPhoneNumber(userLogin || ''), userDisplayName) ? Str.removeSMSDomain(userLogin) : ''; |
and avatar is generated from optimistic accountID
passed above in UserDetailsTooltip
component here -
source={props.icon ? props.icon.source : UserUtils.getAvatar(userAvatar, userAccountID)} |
@mollfpr PR is open. |
Reviewer Checklist
Screenshots/VideosWeb23310.Web.mp4Mobile Web - Chrome23310.mWeb-Chrome.mp4Mobile Web - Safari23310.mWeb-Safari.mp4Desktop23310.Desktop.mp4iOS23310.iOS.mp4Android23310.Android.mp4 |
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 and tests well 👍
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.
Thanks!
✋ 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/mountiny in version: 1.3.44-0 🚀
|
🚀 Deployed to production by https://github.com/marcaaron in version: 1.3.44-2 🚀
|
🚀 Deployed to staging by https://github.com/mountiny in version: 1.3.45-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.45-7 🚀
|
Details
Use the new tooltip for mentions.
Fixed Issues
$ #21683
PROPOSAL: #21683 (comment)
Tests
@
in the composer and selecting anyone from the list.@unexistingperson@gmail.com
.Note - Tooltip is not currently shown for unregistered mobile numbers. This is a known bug.
Offline tests
Same as above.
QA Steps
Same as above.
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)/** 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
Screen.Recording.2023-07-21.at.1.51.40.AM.mov
Screen.Recording.2023-07-21.at.1.52.24.AM.mov
Mobile Web - Chrome
Since this is related to tooltip which is not shown on mobiles, this can't be tested on mobiles.
Mobile Web - Safari
Since this is related to tooltip which is not shown on mobiles, this can't be tested on mobiles.
Desktop
Screen.Recording.2023-07-21.at.2.04.57.AM.mov
Screen.Recording.2023-07-21.at.2.05.17.AM.mov
iOS
Since this is related to tooltip which is not shown on mobiles, this can't be tested on mobiles.
Android
Since this is related to tooltip which is not shown on mobiles, this can't be tested on mobiles.