Skip to content
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 2023-10-10] [$500] Request money flow is not proceeded to the next page #28022

Closed
1 of 6 tasks
dylanexpensify opened this issue Sep 22, 2023 · 46 comments
Closed
1 of 6 tasks
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@dylanexpensify
Copy link
Contributor

dylanexpensify commented Sep 22, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Issue found when executing PR #26520

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to + > Request money
  3. Change to the Distance tab.
  4. Add waypoints.
  5. When the submit button is enabled, Hit Enter on the keyboard.

Expected:

Pressing Enter should submit the Distance request.

Actual:

Enter key submission does not work on Distance Page.

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.62-1

Reproducible in staging?: Yes

Reproducible in production?: No

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

Notes/Photos/Videos: Any additional supporting documentation

Bug6186267_20230902_234752.mp4

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0126a0498c5bbce06a
  • Upwork Job ID: 1705231943999688704
  • Last Price Increase: 2023-09-22
@dylanexpensify dylanexpensify added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Sep 22, 2023
@dylanexpensify dylanexpensify self-assigned this Sep 22, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 22, 2023

Current assignee @dylanexpensify is eligible for the Bug assigner, not assigning anyone new.

@melvin-bot melvin-bot bot changed the title Request money flow is not proceeded to the next page [$500] Request money flow is not proceeded to the next page Sep 22, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 22, 2023

Job added to Upwork: https://www.upwork.com/jobs/~0126a0498c5bbce06a

@melvin-bot
Copy link

melvin-bot bot commented Sep 22, 2023

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 22, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 22, 2023

Current assignee @dylanexpensify is eligible for the External assigner, not assigning anyone new.

@melvin-bot
Copy link

melvin-bot bot commented Sep 22, 2023

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

@dylanexpensify
Copy link
Contributor Author

related #26588

@ZhenjaHorbach
Copy link
Contributor

On the latest version main and on staging do not reproduce

@melvin-bot melvin-bot bot added the Overdue label Sep 25, 2023
@parasharrajat
Copy link
Member

parasharrajat commented Sep 25, 2023

The issue details are a little off as we added a patch to solve the previous issue which caused a new issue. The issue would be>

  1. Distance requests are not submitted with Enter key press.

Steps:

  1. Go to staging.new.expensify.com
  2. Go to + > Request money
  3. Change to the Distance tab.
  4. Add waypoints.
  5. When the submit button is enabled, Hit Enter on the keyboard.

Expected:
Pressing Enter should submit the Distance request.

Actual:
Enter key submission does not work on Distance Page.

cc: @dylanexpensify

@parasharrajat
Copy link
Member

parasharrajat commented Sep 25, 2023

Proposal

Please re-state the problem that we are trying to solve in this issue.

Pressing the Enter key on the Distance Amount page does not take the user to the next page after the form is enabled.

What is the root cause of that problem?

we have disabled the pressOnEnter on Distance Request page to fix #26588. We should enable it back and fix the root of #26588.

The real root cause of #26588 is explained below:

I analyzed and it seems we are preventing the bubbling of the Enter key event on the Button component.

As all 3 tabs are loaded together, the last mounted button component on DistanceRequest will take precedence in event callbacks when the event is fired from the browser. Because bubbling is disabled, only one handler is called when the same component is mounted multiple times on the page. We never expected multiple CTA buttons on a single page so bubbling was prevented but the tab behave differently thus we need to handle that.

What changes do you think we should make in order to solve the problem?

The easiest solution to keep pressonEnter as well as fix the issue without causing regression on other pages where Button is used would be to create a new prop on Buttoncomponent called allowBubble(please suggest a better name) and then pass that to the shortcut subscription configuration allowBubble parameter.

We can keep this prop false by default as before and just enable it for two pages DistanceRequest & MoneyRequestAmountForm.

What alternative solutions did you explore? (Optional)

None

@dylanexpensify
Copy link
Contributor Author

thanks @parasharrajat, updated! @eVoloshchak let's get the proposal reviewed please!

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Sep 25, 2023
@dylanexpensify
Copy link
Contributor Author

Bump!

@melvin-bot melvin-bot bot removed the Overdue label Sep 27, 2023
@eVoloshchak
Copy link
Contributor

@parasharrajat's #28022 (comment) looks good to me!
I think we should also apply the same fix to MoneyRequestConfirmationList/SettlementButton, it's the last step of request money flow and it also cannot be submitted by pressing enter

🎀👀🎀 C+ reviewed!

@melvin-bot
Copy link

melvin-bot bot commented Sep 27, 2023

Triggered auto assignment to @johnmlee101, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 28, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 28, 2023

📣 @eVoloshchak Please request via NewDot manual requests for the Reviewer role ($500)

@melvin-bot
Copy link

melvin-bot bot commented Sep 28, 2023

📣 @parasharrajat Please request via NewDot manual requests for the Contributor role ($500)

@melvin-bot
Copy link

melvin-bot bot commented Oct 23, 2023

@johnmlee101, @eVoloshchak, @parasharrajat, @dylanexpensify Huh... This is 4 days overdue. Who can take care of this?

@parasharrajat
Copy link
Member

Update: Looking into the regression issue ATM.

@melvin-bot melvin-bot bot removed the Overdue label Oct 24, 2023
@parasharrajat
Copy link
Member

PR Created #30259

@melvin-bot melvin-bot bot added the Overdue label Oct 26, 2023
@eVoloshchak

This comment was marked as duplicate.

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Oct 27, 2023
@eVoloshchak
Copy link
Contributor

Not overdue, PR is in production

@melvin-bot melvin-bot bot removed the Overdue label Oct 30, 2023
@dylanexpensify
Copy link
Contributor Author

@eVoloshchak thanks for the update!

@melvin-bot melvin-bot bot added the Overdue label Nov 1, 2023
Copy link

melvin-bot bot commented Nov 2, 2023

@johnmlee101, @eVoloshchak, @parasharrajat, @dylanexpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@eVoloshchak
Copy link
Contributor

Not overdue, PR with the fix was deployed to prod on Oct 30

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Nov 2, 2023
@dylanexpensify
Copy link
Contributor Author

Should be good now?

@melvin-bot melvin-bot bot removed the Overdue label Nov 6, 2023
@dylanexpensify
Copy link
Contributor Author

@eVoloshchak to confirm

@parasharrajat
Copy link
Member

Yes, the payment date should be 6 Nov here. @dylanexpensify

@melvin-bot melvin-bot bot added the Overdue label Nov 9, 2023
Copy link

melvin-bot bot commented Nov 10, 2023

@johnmlee101, @eVoloshchak, @parasharrajat, @dylanexpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

1 similar comment
Copy link

melvin-bot bot commented Nov 10, 2023

@johnmlee101, @eVoloshchak, @parasharrajat, @dylanexpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@eVoloshchak
Copy link
Contributor

  • The PR that introduced the bug has been identified. Link to the PR: [CP Staging] Fix the Enter on Money request flows #26606. However, I don't think we can call this a regression, the PR description specifically states that Now this means you cannot use Enter to submit the Distance request, however, its a new feature and its going to be used in mobiles right now mainly so this is fine.
  • 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: N/A
  • 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: I don't think an additional discussion is needed here

Regression Test Proposal

  1. Open the app.
  2. Click on the FAB button > Request Money.
  3. Select the Manual Tab.
  4. Enter an amount.
  5. Press Enter on the keyboard.
  6. Verify that you are navigated to the next step (contact selector)

Do we agree 👍 or 👎

Also noting that this has caused a regression in #29051

@melvin-bot melvin-bot bot removed the Overdue label Nov 12, 2023
@dylanexpensify
Copy link
Contributor Author

Payment summary:

Please apply in Upwork or create a NewDot request!

@JmillsExpensify
Copy link

$250 payment approved for @eVoloshchak based on the comment above.

@parasharrajat
Copy link
Member

Payment requested as per #28022 (comment)

@JmillsExpensify
Copy link

$250 approved for @parasharrajat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

8 participants