-
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
[$250] Web - Reports - Filters button tooltip is not displayed properly #54596
Comments
Triggered auto assignment to @techievivek ( |
Triggered auto assignment to @bfitzexpensify ( |
💬 A slack conversation has been started in #expensify-open-source |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
not reproducible when disable bandicam.2024-12-27.06-35-39-785.mp4 |
Edited by proposal-police: This proposal was edited at 2024-12-27 09:30:08 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Web - Reports - Filters button tooltip is not displayed properly What is the root cause of that problem?The tooltip displayed here App/src/components/Search/SearchPageHeader.tsx Lines 359 to 369 in e94df0f
And on the web and desktop we renter tooltip with shiftHorizontal=variables.searchFiltersTooltipShiftHorizontalNarrow (-20) which causes the tooltip's position to be incorrect.
What changes do you think we should make in order to solve the problem?To resolve this issue, we can:
<EducationalTooltip
shouldRender={shouldShowProductTrainingTooltip}
anchorAlignment={{
vertical: CONST.MODAL.ANCHOR_ORIGIN_VERTICAL.BOTTOM,
horizontal: isWebOrDesktop && !isCannedQuery ? CONST.MODAL.ANCHOR_ORIGIN_HORIZONTAL.CENTER : CONST.MODAL.ANCHOR_ORIGIN_HORIZONTAL.RIGHT,
}}
shouldUseOverlay
shiftHorizontal={isWebOrDesktop && !isCannedQuery ? 0 : variables.searchFiltersTooltipShiftHorizontal}
wrapperStyle={styles.productTrainingTooltipWrapper}
renderTooltipContent={renderProductTrainingTooltip}
onHideTooltip={hideProductTrainingTooltip}
> 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)N/A |
Not a blocker, sending it to external. |
Job added to Upwork: https://www.upwork.com/jobs/~021872571944019699277 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia ( |
Updated proposal #54596 (comment) |
This comment was marked as off-topic.
This comment was marked as off-topic.
ProposalPlease re-state the problem that we are trying to solve in this issue.Tooltip is incorrectly displayed. What is the root cause of that problem?We're calculating the horizontalShift here:
and we're assuming the tooltip position is at the center of target App/src/styles/utils/generators/TooltipStyleUtils/computeHorizontalShift/index.ts Line 25 in e94df0f
but the tooltip position can be right, left, and center so the that trigger the logic here (even though the tooltip right edge can't be over the window right edge since it's the RIGHT here What changes do you think we should make in order to solve the problem?
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?What alternative solutions did you explore? (Optional)NA Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. Result |
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.79-0
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: Exp
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Mac 15.0 / Chrome
App Component: Search
Action Performed:
Expected Result:
Tooltip will be properly displayed under Filters button.
Actual Result:
Tooltip is incorrectly displayed.
The arrow is under Filters button, but the content (the box) is far away from the arrow.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6702688_1735252108451.2tip.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @thesahindiaThe text was updated successfully, but these errors were encountered: