You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Due for payment 2025-04-14] [$250] Web - Subscription - Web - "Request tax exempt status" button opens at the bottom of the page #57011
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2
Version Number: 9.1.0-0 Reproducible in staging?: Yes Reproducible in production?: Yes Issue reported by: Applause Internal Team Device used: Windows 10 / Chrome App Component: Other
When we open the page for the first time, the subscription details 3-dot menu is at the bottom of the list, so the position is also at the bottom. Since we calculate it in on layout, it only happens once, unless the 3-dot menu size changes.
What changes do you think we should make in order to solve the problem?
Calculate it back on click. The previous problem that it's trying to solve is that the popover is shown at the wrong position briefly. To solve it, we just need to show the popover when the calculation is done, just like in emoji picker for example.
To do that, we can introduce new props to ThreeDotsMenu, anchorRef and shouldCalculatePositionOnClick. For TaxExemptActions, we pass threeDotsMenuContainerRef as the anchorRef and we don't pass anchorPosition anymore.
Then, in onThreeDotsPress, if shouldCalculatePositionOnClick is true, then we only call showPopoverMenu after the calculation is done. position is a new state.
changed the title [-]Web - Subscription - Web - "Request tax exempt status" button opens at the bottom of the page[/-][+][$250] Web - Subscription - Web - "Request tax exempt status" button opens at the bottom of the page[/+]on Feb 21, 2025
changed the title [-][$250] Web - Subscription - Web - "Request tax exempt status" button opens at the bottom of the page[/-][+][Due for payment 2025-04-14] [$250] Web - Subscription - Web - "Request tax exempt status" button opens at the bottom of the page[/+]on Apr 7, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.23-7 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@parasharrajat@bfitzexpensify@parasharrajat 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]
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: Not needed
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Test:
Log in with a Gmail account that is already an admin of a workspace (or create one)
Navigate to Settings - Subscription
Scroll down to the bottom of the page
Click on the 3-dot button next to "Subscription details".
For web/desktop, verify the popover menu position is around the 3-dot menu
For mWeb/Android/iOS, verify the popover shows as a bottom modal
For Android & iOS, there is no 3-dot on the subscription page, so you can test on other 3-dots, for example, on the workspace list page.
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2
Activity
melvin-bot commentedon Feb 18, 2025
Triggered auto assignment to @bfitzexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.bernhardoj commentedon Feb 18, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
The popover is positioned at the bottom of the page.
What is the root cause of that problem?
This happen after #56594. Previously, we calculate the popover position on click, but now, we calculate it on layout.
App/src/pages/settings/Subscription/TaxExemptActions/index.tsx
Lines 47 to 58 in 4088726
When we open the page for the first time, the subscription details 3-dot menu is at the bottom of the list, so the position is also at the bottom. Since we calculate it in on layout, it only happens once, unless the 3-dot menu size changes.
What changes do you think we should make in order to solve the problem?
Calculate it back on click. The previous problem that it's trying to solve is that the popover is shown at the wrong position briefly. To solve it, we just need to show the popover when the calculation is done, just like in emoji picker for example.
To do that, we can introduce new props to ThreeDotsMenu,
anchorRefandshouldCalculatePositionOnClick. ForTaxExemptActions, we passthreeDotsMenuContainerRefas theanchorRefand we don't passanchorPositionanymore.Then, in
onThreeDotsPress, ifshouldCalculatePositionOnClickis true, then we only callshowPopoverMenuafter the calculation is done.positionis a new state.App/src/components/ThreeDotsMenu/index.tsx
Lines 64 to 75 in 4088726
Last, we use
positionstate instead ofanchorPositionprop ifshouldCalculatePositionOnClickis true.App/src/components/ThreeDotsMenu/index.tsx
Line 123 in 4088726
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
N/A
[-]Web - Subscription - Web - "Request tax exempt status" button opens at the bottom of the page[/-][+][$250] Web - Subscription - Web - "Request tax exempt status" button opens at the bottom of the page[/+]melvin-bot commentedon Feb 21, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021892960279486369999
melvin-bot commentedon Feb 21, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat (
External)parasharrajat commentedon Feb 22, 2025
So @bernhardoj you are suggesting that we revert the change on that PR and apply your suggestion.
bernhardoj commentedon Feb 22, 2025
Yes (if you agree with my suggestion)
28 remaining items
[-][$250] Web - Subscription - Web - "Request tax exempt status" button opens at the bottom of the page[/-][+][Due for payment 2025-04-14] [$250] Web - Subscription - Web - "Request tax exempt status" button opens at the bottom of the page[/+]melvin-bot commentedon Apr 7, 2025
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Apr 7, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.23-7 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-04-14. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Apr 7, 2025
@parasharrajat @bfitzexpensify @parasharrajat 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]
parasharrajat commentedon Apr 8, 2025
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: https://github.com/Expensify/App/pull/56594/files#r2033921880
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: Not needed
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Test:
Do we agree 👍 or 👎
bfitzexpensify commentedon Apr 13, 2025
Payment summary:
@parasharrajat owed $250 through NewDot Manual Requests
@bernhardoj owed $250 through NewDot Manual Requests
bernhardoj commentedon Apr 14, 2025
Requested in ND.
JmillsExpensify commentedon Apr 14, 2025
$250 approved for @bernhardoj
parasharrajat commentedon May 23, 2025
Payment requested as per #57011 (comment)
JmillsExpensify commentedon May 29, 2025
$250 approved for @parasharrajat