-
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
[$1000] Chat - Tooltip vibrates when moving cursor over it and does not automatically resize #22840
Comments
Triggered auto assignment to @bfitzexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.After change the workspace name to a long name, tooltip vibrates when moving cursor over it and does not automatically resize. What is the root cause of that problem?Workspace name is fetched and displayed as below code, App/src/components/UserDetailsTooltip/index.web.js Lines 39 to 41 in d395b7c
App/src/components/UserDetailsTooltip/index.web.js Lines 65 to 70 in d395b7c
App/src/components/Tooltip/index.js Lines 140 to 142 in 53e4154
App/src/components/UserDetailsTooltip/index.web.js Lines 20 to 22 in d395b7c
Therefore, Tooltip component does not remount, so the width does not automatically change.
What changes do you think we should make in order to solve the problem?We should pass proper <Tooltip
renderTooltipContent={renderTooltipContent}
- renderTooltipContentKey={[userDisplayName, userLogin]}
+ renderTooltipContentKey={[userDisplayName || title, userLogin]}
>
{props.children}
</Tooltip> What alternative solutions did you explore? (Optional)None. |
Reproduced. |
Job added to Upwork: https://www.upwork.com/jobs/~01f0bc95c39f3ce8e0 |
Current assignee @bfitzexpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt ( |
I will use CSS tricks to stop tooltip vibrates like "pointer-event"
|
📣 @misgana96! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
@StevenKKC Thanks for the proposal. Your RCA makes sense that the tooltip content has 3 sources (userDisplayName, userLogin and props.icon.name) but we only account for 2. We can either add the missing source BTW are you still able to constantly reproduce the bug? I was able to reproduce it once but now I can't, and even that I omitted the |
@misgana96 Thanks for your interest here. For proposals we have a proposal template. Please checkout the contributing guide. |
@s77rt I'm also unable to reproduce this bug. I think this issue have fixed by this PR.
App/src/components/Tooltip/index.js Lines 140 to 156 in 88b9416
App/src/components/Tooltip/TooltipRenderedOnPageBody.js Lines 57 to 66 in 88b9416
Thanks for your reply anyway. I think we can close this issue. |
I'm also unable to reproduce now. Agreed that #22693 likely solved this, and agreed with closing this out. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Precondition: The workspace must have a short name
Expected Result:
In Step 7 and 8, the tooltip automatically resizes according to the workspace name. There will be no viibration effect when moving over the workspace icon
Actual Result:
In Step 7 and 8, the tooltip is not resized. When hovering and moving cursor over workspace icon, the tooltip is vibrating. The tooltip only resizes after switching to other chat and back to workspace chat
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.40.2
Reproducible in staging?: Yes
Reproducible in production?: Yes
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
Bug6127100_20230714_005538.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: