-
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 2025-01-13] [$250] mWeb Safari - Workspace chat tooltip not positioned correctly #53976
Comments
Triggered auto assignment to @stephanieelliott ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.WS chat tooltip in mobile Safari is positioned incorrectly. What is the root cause of that problem?We calculate the position of the tooltip based on the anchor y offset and the tooltip height. The calculation here is already correct.
However, on iOS, the viewport is scrolled when the keyboard is shown. The viewport scroll explanation and visualization are well explained here: #16082. Let's use an example. On my simulator, the composer yOffset without keyboard is 666px. When the keyboard shows, the composer slides up which is closer to the top of the screen, so the yOffset is now 388px. Let's ignore the tooltip height from the calculation and only use the composer yOffset as the What changes do you think we should make in order to solve the problem?We need to account for the viewport scroll amount for the
App/src/pages/home/report/ReportActionCompose/ReportActionCompose.tsx Lines 461 to 462 in 082e14b
(or we can apply it to measureTooltipCoordinate so it's applied to all educational tooltip) What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A What alternative solutions did you explore? (Optional)Or we can use App/src/components/Tooltip/EducationalTooltip/measureTooltipCoordinate/index.ts Lines 4 to 9 in 082e14b
but |
This is buggy looking, seeing as it covers up workspace information on the page I think this needs to be fixed. |
Job added to Upwork: https://www.upwork.com/jobs/~021867716270354111393 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hungvu193 ( |
@bernhardoj How do you enable EducationalTooltip when keyboard opens? |
@hungvu193 you need to open an empty chat, so the composer is focused automatically. (I manually change the show condition to true too) |
Update: I can reproduce it with the above step + change the visible status of EducationalTooltip |
Thanks @bernhardoj. Your proposal looks good to me! 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @marcochavezf, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Thanks @hungvu193, assigning @bernhardoj 🚀 |
PR is ready cc: @hungvu193 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.80-6 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 2025-01-13. 🎊 For reference, here are some details about the assignees on this issue:
|
@hungvu193 @stephanieelliott @hungvu193 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
Payment Summary
BugZero Checklist (@stephanieelliott)
|
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test ProposalTest:
Do we agree 👍 or 👎 |
Created TR case here: https://github.com/Expensify/Expensify/issues/461367 |
Summarizing payment on this issue:
|
Requested in ND. |
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.74-8
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?:
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
Expensify/Expensify Issue URL:
Issue reported by: @rayane-djouah
Slack conversation (hyperlinked to channel name): expensify_bugs
Action Performed:
Expected Result:
The tooltip should be positioned over the composer's Create button on mWeb Safari same with other platforms
Actual Result:
The tooltip is not correctly positioned on mWeb Safari unlike other platforms
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @stephanieelliottThe text was updated successfully, but these errors were encountered: