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
[HOLD for payment 2024-06-11] [$1000] Web - Three dot menu is not opened via Enter key in Request Money to Add Receipt #33502
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringInternalRequires API changes or must be handled by Expensify staff
Version Number: 1.4.16-3 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 Expensify/Expensify Issue URL: Issue reported by: Applause - Internal Team Slack conversation:
Action Performed:
Login to ND Expensify
Tap FAB button
Tap Request money
Select Manual tab
Select a currency and enter any amount
Tap Next
On the Payor screen
Tab until you get to the "three dot menu"
Press Enter key
Expected Result:
The "Add receipt" option should pop up after pressing Enter key on three dot menu
Actual Result:
Nothing happens when press Enter key while the focus on the three dot menu in Manual Expense modal
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
changed the title [-]Request Money - Three dot menu is not opened via Enter key in Request Money to Add Receipt[/-][+][$500] Request Money - Three dot menu is not opened via Enter key in Request Money to Add Receipt[/+]on Dec 22, 2023
So because it will preventDefault by default it is disabling the default behaviour of enter key press which is to call the onPress callback while the three dot menu is focused. This problem will be dealt by this pr.
After the change on the linked pr We have another problem which is the callback is called twice also on keyup event, resulting in immediate closing of the popover after opening.
2023-12-25.20-56-42.mp4
What changes do you think we should make in order to solve the problem?
As the problem is only on role button we can change it to other role like menu-item and it works perfect but what I recommend is to hold for the linked pr to deal with problem (2)
We should check in the onPress callback that the event type is not keyup so change this
changed the title [-][$1000] Web - Three dot menu is not opened via Enter key in Request Money to Add Receipt[/-][+][HOLD for payment 2024-06-11] [$1000] Web - Three dot menu is not opened via Enter key in Request Money to Add Receipt[/+]on Jun 4, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.78-5 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this 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:
[@mollfpr] The PR that introduced the bug has been identified. Link to the PR:
[@mollfpr] 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:
[@mollfpr] A discussion in #expensify-bugs 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:
[@mollfpr] Determine if we should create a regression test for this bug.
[@mollfpr] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[@Christinadobrzyn] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
[@mollfpr] The PR that introduced the bug has been identified. Link to the PR:
[@mollfpr] 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:
No offending PR. The fix is upstream.
[@mollfpr] A discussion in #expensify-bugs 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:
The regression step should be enough.
[@mollfpr] Determine if we should create a regression test for this bug.
[@mollfpr] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
Open the money request page
Enter any amount
Select any participant
In the confirmation page, keep press TAB until the three-dot menu is highlighted
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringInternalRequires API changes or must be handled by Expensify staff
Activity
[-]Request Money - Three dot menu is not opened via Enter key in Request Money to Add Receipt[/-][+][$500] Request Money - Three dot menu is not opened via Enter key in Request Money to Add Receipt[/+]melvin-bot commentedon Dec 22, 2023
Job added to Upwork: https://www.upwork.com/jobs/~01d30724d2128b5dca
melvin-bot commentedon Dec 22, 2023
Triggered auto assignment to @Christinadobrzyn (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Dec 22, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)melvin-bot commentedon Dec 22, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr (
External)FitseTLT commentedon Dec 22, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Three dot menu is not opened via Enter key in Request Money to Add Receipt
What is the root cause of that problem?
We have two problems here
App/src/components/OptionsSelector/BaseOptionsSelector.js
Lines 260 to 268 in 862b0ea
So because it will
preventDefaultby default it is disabling the default behaviour ofenterkey press which is to call the onPress callback while the three dot menu is focused. This problem will be dealt by this pr.keyupevent, resulting in immediate closing of the popover after opening.2023-12-25.20-56-42.mp4
What changes do you think we should make in order to solve the problem?
buttonwe can change it to other role likemenu-itemand it works perfect but what I recommend is to hold for the linked pr to deal with problem (2)keyupso change thisApp/src/components/ThreeDotsMenu/index.js
Lines 94 to 95 in 862b0ea
to
or take the same prevention logic to Pressable to prevent similar problem in the App
POC:
2023-12-25.21-09-16.mp4
situchan commentedon Dec 22, 2023
This is accessibility issue and seems like not a fit to any of waves
Christinadobrzyn commentedon Dec 22, 2023
Ah good point @situchan - I'm not sure if we're working on accessibility stuff now. I'll find out, asking the team - https://expensify.slack.com/archives/C02MW39LT9N/p1703268618682249
98 remaining items
[-][$1000] Web - Three dot menu is not opened via Enter key in Request Money to Add Receipt[/-][+][HOLD for payment 2024-06-11] [$1000] Web - Three dot menu is not opened via Enter key in Request Money to Add Receipt[/+]melvin-bot commentedon Jun 4, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Jun 4, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.78-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 2024-06-11. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Jun 4, 2024
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:
Christinadobrzyn commentedon Jun 11, 2024
Payouts due:
Upwork job is here.
Even though this is Internal - do we want a regression test?
melvin-bot commentedon Jun 11, 2024
Payment Summary
Upwork Job
BugZero Checklist (@Christinadobrzyn)
mollfpr commentedon Jun 11, 2024
No offending PR. The fix is upstream.
The regression step should be enough.
JmillsExpensify commentedon Jun 11, 2024
$1,000 approved for @mollfpr
Christinadobrzyn commentedon Jun 12, 2024
Regression test- https://github.com/Expensify/Expensify/issues/404150
Paid out based on Payment Summary
Closing!