-
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: Chat - No details tooltip for assignee name on task title. #29725
fix: Chat - No details tooltip for assignee name on task title. #29725
Conversation
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
Reviewer Checklist
Screenshots/VideosWebchrome-desktop-2023-10-17_11.58.06.mp4Mobile Web - Chromeandroid-chrome.mp4Mobile Web - Safariios-safari-2023-10-17_12.01.27.mp4Desktopmac-desktop-2023-10-17_12.06.03.mp4iOSios-native-2023-10-17_12.08.04.mp4Androidandroid-native.mp4 |
@Krishna2323 Not sure what happened to the automation here, can you try re-requesting a review from pullerbear (if you can!)? |
@Krishna2323 I think one of the expected changes here was for the tooltip to show on the confirm screen. Or do you think this isn't consistent with elsewhere? |
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
…323/App into krishna2323/issue/29175
@jjcoffee, can you pls have a look once again :), fixed the tooltip on task report page & task confirm page. test_assignee_tooltip.mp4 |
@Krishna2323 Lint and TS checks are failing. |
src/libs/actions/Task.js
Outdated
@@ -721,6 +727,13 @@ function getShareDestination(reportID, reports, personalDetails) { | |||
icons: ReportUtils.getIcons(report, personalDetails, Expensicons.FallbackAvatar), | |||
displayName: ReportUtils.getReportName(report), | |||
subtitle, | |||
displayNamesWithTooltips, | |||
shouldShowDestinationTooltip: |
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.
Could you explain what this is based 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.
We need to retrieve both the display name and tooltip details for all participants. Our previous code was functioning well when dealing with only assignee. However, tasks can be shared within groups, and given that a single group can comprise multiple users, it's essential to obtain the details for all users within these groups. From our report, we've procured the participant IDs. We then utilize these IDs to fetch the displayNamesWithTooltips.
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
@jjcoffee, bump for a look at review comments. |
@jjcoffee, Apologies for the follow-up. I'd appreciate it if we could have this approved within three working days. I believe there are no further changes needed. |
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
src/components/MenuItem.js
Outdated
{Boolean(isEllipsisActive) && ( | ||
<View style={styles.displayNameTooltipEllipsis}> | ||
<Tooltip text={props.title}> | ||
{/* There is some Gap for real ellipsis so we are adding 5 `.` to cover */} |
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.
Can you explain why this is needed?
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.
@Krishna2323 Oh wait I see you've taken this from DisplayNamesWithTooltip
. I'm wondering now if there's any reason why we don't just use DisplayNames
here actually, rather than reproducing most of the code from it?
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
@jjcoffee, bump. |
@Krishna2323 Code is looking much tidier, thanks! Could you just update the test steps to include that the tooltip should appear on the confirm task page too? |
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 comment was marked as resolved.
This comment was marked as resolved.
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.
Great, looks good 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/thienlnam in version: 1.3.91-0 🚀
|
🚀 Deployed to production by https://github.com/marcaaron in version: 1.3.91-8 🚀
|
Details
Fixed Issues
$ #29175
PROPOSAL: #29175 (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)/** 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
Android: Native
android_native.mp4
Android: mWeb Chrome
android_chrome.mp4
iOS: Native
ios_native.mp4
iOS: mWeb Safari
ios_safari.mp4
MacOS: Chrome / Safari
web_chrome.mp4
MacOS: Desktop
desktop_app.mp4