-
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 2023-06-01] [Regression Hold] The tooltip is not aligned with the arrow if the arrow position is at right edge of the tooltip. #18878
Comments
Triggered auto assignment to @strepanier03 ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.The tooltip is not aligned with the arrow correctly What is the root cause of that problem?The root cause of the issue is that we're using an incorrect ref to figure out the the tooltip content width. We're using the ref of the nested What changes do you think we should make in order to solve the problem?We just need to use the
ResultScreen.Recording.2023-05-13.at.2.51.33.PM.movWhat alternative solutions did you explore? (Optional)I'm not sure why we have a wrapping |
ProposalPlease re-state the problem that we are trying to solve in this issue.The tooltip is not aligned with the arrow if the arrow position is at right edge of the tooltip. What is the root cause of that problem?We're using useLayoutEffect to calculate tooltipWidth and tooltipHeight since this PR #18189. It improves a lot UX of showing position of tooltip. Even though, it's almost same with the example in React document useLayoutEffect. But we're using Animated.View as a wrapper component. So calling wrapper.current.getBoundingClientRect to get the size of element is not totally correct. Because useLayoutEffect is triggered before the layout and animation are finished, so the size of the element may not be updated yet. Take a look at the console.log here Because tooltipWidth is not correct, it leads to calculate horizontalShift is not correct too. What changes do you think we should make in order to solve the problem?Given the fact that, by using useLayoutEffect gives us better UX for tooltip in most of cases. I think we need to keep to use it. But we need to also use onLayout callback of ResultScreen.Recording.2023-05-13.at.16.42.00.movScreen.Recording.2023-05-13.at.16.43.36.movWhat alternative solutions did you explore? (Optional)
|
@strepanier03 Your screenshot is showing the bug , the tooltip text should be aligned with tooltip arrow . |
As this is a regression from my PR, I think I should take care of the issue? If yes, I will open the PR to fix the regression. |
@bernhardoj I think yes since the PR #18189 is still under regression period. |
@fedirjh -- aaaahaa, I see. I thought that the below was the bug, where it's really not lined up. |
I need to figure out the proper labels to apply here so that this is treated properly since it's a regression @bernhardoj is going to take care of. Will do that as soon as I confirm. |
@bernhardoj - I just want to make sure I am 100% confident I understand before taking any action. This bug in this GH was introduced when your PR here was deployed to staging, is that correct? |
Yes, that is correct @strepanier03 |
I have open a PR to handle this regression #19097. |
Weird assignment behavior today, sorry about that everyone. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.17-5 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-06-01. 🎊 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.
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:
|
@fedirjh - I've hired you to a reporting job for this, please accept when you can and I'll pay out. |
@strepanier03 Thank you. Accepted! |
All wrapped up with payment. I don't believe we need to do the checklist either because it's a regression from another GH. I'm going to close 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:
Expected Result:
Tooltip should be positioned above the arrow
Actual Result:
The tooltip is not aligned with the arrow
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: v1.3.13-1
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
Screen.Recording.2023-05-12.at.4.41.53.AM.mov
Expensify/Expensify Issue URL:
Issue reported by: @fedirjh
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1683863552205729
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: