-
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
[$250] Web - LHN - Blank tooltip displayed when created a workspace and hover over workspace selector #48691
Comments
Triggered auto assignment to @anmurali ( |
@anmurali 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 |
@anmurali Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Job added to Upwork: https://www.upwork.com/jobs/~021833240040535012696 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jjcoffee ( |
Waiting on proposals. |
ProposalPlease re-state the problem that we are trying to solve in this issue.The tooltip size becomes small after displaying it, navigating two screens away, then returning and displaying the tooltip again. What is the root cause of that problem?The code below calculates the tooltip size. It works correctly the first time, but when called again, it calculates the size as App/src/components/Tooltip/BaseGenericTooltip/index.tsx Lines 50 to 55 in 762bffc
The reason it is called again is that the component is frozen after navigating away for two screens and then resumed when returning. What changes do you think we should make in order to solve the problem?A straightforward solution is to temporarily set the transformation to const rootWrapperStyle = rootWrapper?.current?.style;
const isScaled = rootWrapperStyle?.transform === 'scale(0)';
if (isScaled) {
rootWrapperStyle.transform = 'scale(1)';
}
setContentMeasuredWidth(contentRef.current?.getBoundingClientRect().width);
setWrapperMeasuredHeight(rootWrapper.current?.getBoundingClientRect().height);
if (isScaled) {
rootWrapperStyle.transform = 'scale(0)';
} What alternative solutions did you explore? (Optional)We could calculate the size only once if we intend not to update it further. if (!contentMeasuredWidth) {
setContentMeasuredWidth(contentRef.current?.getBoundingClientRect().width);
}
if (!wrapperMeasuredHeight) {
setWrapperMeasuredHeight(rootWrapper.current?.getBoundingClientRect().height);
} |
Thanks for the proposal @QichenZhu!
Could you clarify which animation you're talking about and where the |
@jjcoffee I’m referring to the animation of the tooltip scaling down as it disappears. Screen.Recording.2024-09-11.at.11.13.04.PM.mov
App/src/components/Tooltip/BaseGenericTooltip/index.tsx Lines 123 to 126 in 762bffc
|
@QichenZhu Thanks, I see what you mean now! For now I think the proposed solution sounds like a bit too much of a workaround, and I don't think the alternative solution necessarily works (unless you can argue for it's robustness). |
@jjcoffee Thank you for the review. The alternative solution works if App/src/components/Tooltip/GenericTooltip.tsx Lines 179 to 181 in 12a0822
In my understanding, this means that by design, a fresh new Details can be found here: #18189 (comment). |
@QichenZhu Hmm interesting, thanks for the clarification! After a bit of further investigation, I'm happy to go with @QichenZhu's proposal. I agree with their RCA and don't think there's another way to solve this. We could probably go with either the main or alternative solution, but the main one might be a bit safer. 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @marcochavezf, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@marcochavezf, @anmurali, @jjcoffee Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Not overdue - just waiting for @marcochavezf to assign. |
@marcochavezf @anmurali @jjcoffee this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
@marcochavezf, @anmurali, @jjcoffee Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@marcochavezf Are you able to assign @QichenZhu here? Thanks! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
📣 @jjcoffee 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @QichenZhu 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Issue not reproducible during KI retests. (First week) |
Deployed to production 7 days ago, and no regressions were reported. cc @anmurali |
Regression Test Proposal
Do we agree 👍 or 👎 |
@anmurali Friendly bump for payment 🙇 |
Gentle bump @anmurali |
Done |
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.30-4
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
Tooltip "Choose a workspace" should be displayed when user created a workspace and hovers over the workspace selector
Actual Result:
Blank tooltip displayed when user created a workspace and hover over workspace selector. If user reloads the page, the workspace selector tooltip will be displayed properly.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6594725_1725577761937.Screen_Recording_2024-09-06_at_02.00.09.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @jjcoffeeThe text was updated successfully, but these errors were encountered: