-
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
[HOLD for payment 2023-08-02] [$1000] Web - Tooltip not visible for task assignee #21713
Comments
Triggered auto assignment to @jliexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Tooltip not visible for task assignee. What is the root cause of that problem?In task view, the task assignee is shown using App/src/components/ReportActionItem/TaskView.js Lines 113 to 127 in fa473e9
App/src/components/MenuItem.js Lines 187 to 194 in fa473e9
Avatar does not support Tooltip , so tooltip for task assignee is not shown.
What changes do you think we should make in order to solve the problem?We can wrap Add tooltipAccountID: PropTypes.number, tooltipAccountID: 0, Pass task assignee's id in <MenuItem
...
tooltipAccountID={props.report.managerID}
/> And in {props.iconType === CONST.ICON_TYPE_AVATAR && (
props.tooltipAccountID !== 0 ? (
<UserDetailsTooltip accountID={props.tooltipAccountID}>
<View>
<Avatar
imageStyles={[styles.alignSelfCenter]}
source={props.icon}
fallbackIcon={props.fallbackIcon}
size={props.avatarSize || CONST.AVATAR_SIZE.DEFAULT}
/>
</View>
</UserDetailsTooltip>
) : (
<Avatar
imageStyles={[styles.alignSelfCenter]}
source={props.icon}
fallbackIcon={props.fallbackIcon}
size={props.avatarSize || CONST.AVATAR_SIZE.DEFAULT}
/>
)
)} What alternative solutions did you explore? (Optional)In task view, the task assignee is displayed using App/src/components/MenuItem.js Lines 149 to 161 in 16a83ac
As you can see, if we provide icon prop with array type, MenuItem display avatar using MultipleAvatars , and MultipleAvatars support tooltip.
<MenuItem
...
icon={OptionsListUtils.getAvatarsForAccountIDs([props.report.managerID], props.personalDetails)}
...
/> In <MultipleAvatars
...
size={props.avatarSize || CONST.AVATAR_SIZE.DEFAULT}
...
/> Because if (props.icons.length === 1 && !props.shouldStackHorizontally) {
if (props.size === CONST.AVATAR_SIZE.SMALLER) {
avatarContainerStyles = [styles.emptyAvatarSmaller, styles.emptyAvatarMargin];
}
return ( And add emptyAvatarSmaller: {
height: variables.avatarSizeSmaller,
width: variables.avatarSizeSmaller,
}, |
I can replicate on Staging v32-5, even with a user with a name (which should have a tooltip): 2023-06-28_08-18-22.mp4 |
Job added to Upwork: https://www.upwork.com/jobs/~01e9a87fc35eb2547b |
Current assignee @jliexpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt ( |
I would suggest we hold this issue or close it as we are redesigning task details page. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Tooltip not visible for task assignee What is the root cause of that problem?We don't wrap task assignee with What changes do you think we should make in order to solve the problem?Wrap task assignee with More details: <View style={[styles.flexRow, styles.alignItemsCenter, styles.justifyContentBetween]}>
{props.report.managerEmail && (
<>
<Tooltip text={assigneeName}>
<Avatar
source={assigneeAvatar}
type={CONST.ICON_TYPE_AVATAR}
name={assigneeName}
size={CONST.AVATAR_SIZE.HEADER}
/>
</Tooltip>
<View style={[styles.flexColumn, styles.ml3]}>
<Text
style={[styles.headerText, styles.pre]}
numberOfLines={1}
>
{assigneeName}
</Text>
</View>
</>
)}
</View> |
I have asked here #19330 (comment) whether we should put this one on hold or proceed |
Looks we should put this on hold. cc @jliexpensify |
Still on hold |
@s77rt, @jliexpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Still on hold |
Dropping to Weekly since we're on hold. |
@StevenKKC Thanks for the update. I think we can go with your proposal as it was the first complete one. 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @roryabraham, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
thanks for the update @s77rt , on to the next bug hunting. Good luck @StevenKKC . |
📣 @s77rt 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @StevenKKC 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Upwork job |
📣 @BhuvaneshPatil 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.45-7 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 2023-08-02. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External 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:
|
|
Payment summary:
Is that all correct? It looks like this was merged in a day |
@jliexpensify Looks correct! |
Everyone's paid and job removed, thanks! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
Tooltip should be shown
Actual Result:
Tooltip not present
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.30-5
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
task.assignee.-.tooltip.-.Made.with.Clipchamp.1.mp4
Desktop.2023.06.26.-.21.32.33.22.1.mp4
Expensify/Expensify Issue URL:
Issue reported by: @BhuvaneshPatil
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1687543065679319
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: