Skip to content

[HOLD for payment 2024-06-11] [$1000] Web - Three dot menu is not opened via Enter key in Request Money to Add Receipt #33502

Closed

Description

@lanitochka17

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


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:

  1. Login to ND Expensify
  2. Tap FAB button
  3. Tap Request money
  4. Select Manual tab
  5. Select a currency and enter any amount
  6. Tap Next
  7. On the Payor screen
  8. Tab until you get to the "three dot menu"
  9. 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?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6323248_1703196327384.2023-12-21_21-33-59.mp4

Bug6323248_1703196651854!ellipsis

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01d30724d2128b5dca
  • Upwork Job ID: 1738244084031193088
  • Last Price Increase: 2024-01-23
Issue OwnerCurrent Issue Owner: @Christinadobrzyn

Activity

  1. added
    External
    Daily
    Bug
    on Dec 22, 2023
  2. 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
  3. melvin-bot commented on Dec 22, 2023

    @melvin-bot
  4. melvin-bot commented on Dec 22, 2023

    @melvin-bot

    Triggered auto assignment to @Christinadobrzyn (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

  5. added
    Help Wanted
    on Dec 22, 2023
  6. melvin-bot commented on Dec 22, 2023

    @melvin-bot

    Bug0 Triage Checklist (Main S/O)

    • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
    • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
      • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
    • This bug is reproducible using the reproduction steps in the OP. S/O
      • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
      • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
    • This issue is filled out as thoroughly and clearly as possible
      • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
    • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync
  7. melvin-bot commented on Dec 22, 2023

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr (External)

  8. FitseTLT commented on Dec 22, 2023

    @FitseTLT
    Contributor

    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

    1. There is a key down event listener for enter here
      const enterConfig = CONST.KEYBOARD_SHORTCUTS.ENTER;
      this.unsubscribeEnter = KeyboardShortcut.subscribe(
      enterConfig.shortcutKey,
      this.selectFocusedOption,
      enterConfig.descriptionKey,
      enterConfig.modifiers,
      true,
      () => !this.state.allOptions[this.state.focusedIndex],
      );

      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.
    2. 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?

    1. 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)
    2. We should check in the onPress callback that the event type is not keyup so change this
      onPress={() => {
      if (isPopupMenuVisible) {

      to
    onPress={(e) => {
                                if (e.type === 'keyup') return;
                                if (isPopupMenuVisible) {
    

    or take the same prevention logic to Pressable to prevent similar problem in the App
    POC:

    2023-12-25.21-09-16.mp4
  9. situchan commented on Dec 22, 2023

    @situchan
    Contributor

    This is accessibility issue and seems like not a fit to any of waves

  10. Christinadobrzyn commented on Dec 22, 2023

    @Christinadobrzyn
    Contributor

    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

  11. 98 remaining items

  12. 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
  13. removed
    Reviewing
    on Jun 4, 2024
  14. melvin-bot commented on Jun 4, 2024

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  15. melvin-bot commented on Jun 4, 2024

    @melvin-bot

    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:

    • @mollfpr requires payment through NewDot Manual Requests
    • @bernhardoj requires payment (Needs manual offer from BZ)
  16. melvin-bot commented on Jun 4, 2024

    @melvin-bot

    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:
  17. added
    Daily
    and removed
    Weekly
    on Jun 10, 2024
  18. Christinadobrzyn commented on Jun 11, 2024

    @Christinadobrzyn
    Contributor

    Payouts due:

    Upwork job is here.

    Even though this is Internal - do we want a regression test?

  19. melvin-bot commented on Jun 11, 2024

    @melvin-bot

    Payment Summary

    Upwork Job

    BugZero Checklist (@Christinadobrzyn)

    • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
    • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants/1738244084031193088/hired)
    • I have paid out the Upwork contracts or cancelled the ones that are incorrect
    • I have verified the payment summary above is correct
  20. mollfpr commented on Jun 11, 2024

    @mollfpr
    Contributor

    [@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.

    1. Open the money request page
    2. Enter any amount
    3. Select any participant
    4. In the confirmation page, keep press TAB until the three-dot menu is highlighted
    5. Press ENTER
    6. Verify the menu is shown
    7. 👍 or 👎
  21. JmillsExpensify commented on Jun 11, 2024

    @JmillsExpensify
    Contributor

    $1,000 approved for @mollfpr

  22. Christinadobrzyn commented on Jun 12, 2024

    @Christinadobrzyn
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugDailyEngineeringInternal

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions