-
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
[HOLD for payment 2024-10-24] [$250] Web -Tooltip -Tooltip is not displayed when hovering over the avatar in the main conversation #50267
Comments
Triggered auto assignment to @johncschuster ( |
@johncschuster FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
Edited by proposal-police: This proposal was edited at 2024-10-04 21:05:21 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.The tooltip is not displayed when hovering over the task assignee's avatar. What is the root cause of that problem?The assignee avatar is displayed without being wrapped by the App/src/components/ReportActionItem/TaskPreview.tsx Lines 120 to 127 in 92eee5f
What changes do you think we should make in order to solve the problem?We should wrap the avatar with the {hasAssignee && (
<UserDetailsTooltip accountID={Number(taskAssigneeAccountID ?? -1)}>
<View>
<Avatar
containerStyles={[styles.mr2, isTaskCompleted ? styles.opacitySemiTransparent : undefined]}
source={avatar}
size={avatarSize}
avatarID={taskAssigneeAccountID}
type={CONST.ICON_TYPE_AVATAR}
/>
</View>
</UserDetailsTooltip>
)} POCScreen.Recording.2024-10-04.at.22.05.26.movWhat alternative solutions did you explore? (Optional)Alternatively, we can use let displayName = ReportUtils.getDisplayNameForParticipant(taskAssigneeAccountID);
const icon = {
source: avatar,
type: CONST.ICON_TYPE_AVATAR,
name: displayName ?? '',
id: taskAssigneeAccountID,
};
....
{hasAssignee && (
<SubscriptAvatar
mainAvatar={icon}
size={avatarSize}
/>)
} Additionally we should extend the SubscriptAvatar props to accept the container styles so that we can pass the existing style to the inner avatar |
ProposalPlease re-state the problem that we are trying to solve in this issue.Tooltip is not displayed when hovering over the avatar in the main conversation What is the root cause of that problem?We are not adding tooltip to the avatar hence no tooltip is displayed: App/src/components/ReportActionItem/TaskPreview.tsx Lines 120 to 127 in 92eee5f
What changes do you think we should make in order to solve the problem?Here there are 2 factors involved,
When the task is competed we should not show the assignee following the same patter as we grey out the avatar and put a line to text: If we directly display the tooltip without first checking if the task is open then we will cause a regression when the task is closed we will still show the tooltip even when the avatar has greyed out: So to properly solve this bug, we should check if the task is not completed and then only show the avatar, without which it will cause regression : {hasAssignee && (
<UserDetailsTooltip
shouldRender={!isTaskCompleted}
accountID={taskAssigneeAccountID ?? -1}
>
<View>
<Avatar
containerStyles={[styles.mr2, isTaskCompleted ? styles.opacitySemiTransparent : undefined]}
source={avatar}
size={avatarSize}
avatarID={taskAssigneeAccountID}
type={CONST.ICON_TYPE_AVATAR}
/>
</View>
</UserDetailsTooltip>
)} What alternative solutions did you explore? (Optional) |
Job added to Upwork: https://www.upwork.com/jobs/~021843406645377169271 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @dukenv0307 ( |
@abzokhattab's proposal looks good to me @twilight294 I don't think we should hide tooltip in case the task is completed 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @francoisl, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@francoisl can you confirm this, I think we should hide the tooltip if the task is completed, this will match the design, as we strike of name and fade the avatar when the task is completed (currently then the avatar will be faded but we will have bright tooltip, which is wrong IMO), shouldn't we match this design wise here? that would make more sense |
Personally I think it makes sense to always show the tooltip, even for completed tasks. Mostly for consistency. |
We grey out the avatar of the user: So i thought to not show the tooltip in that case, eager to hear what @johncschuster has to say, thanks for responding @francoisl :)) |
@francoisl, @johncschuster, @dukenv0307 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
I agree with @francoisl that we should show the tooltip for consistency. |
📣 @dukenv0307 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @abzokhattab 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
PR is ready #50690 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.49-2 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-10-24. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Looks like payment is due tomorrow for this one |
BugZero Checklist:
Regression test:
Do we 👍 or 👎 |
Payment Summary: Contributor: @abzokhattab paid $250 via Upwork - PAID! 🎉 |
@francoisl @johncschuster Be sure to fill out the Contact List! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.0.40-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/runs/view/25140&group_by=cases:section_id&group_order=asc&group_id=291936
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
A tooltip with the assignee user details should display when hovering over the avatar in both the main conversation and the task details conversation
Actual Result:
A tooltip with the assignee user details is not displayed when hovering over the avatar in the main conversation
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6620584_1727730415306.Screen_Recording_2024-09-30_at_4.00.09_PM.mov
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @johncschusterThe text was updated successfully, but these errors were encountered: