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 2024-08-27] [$250] Web - Split - Enter and CMD+Enter open user profile instead of splitting expense #41848

Closed
1 of 6 tasks
m-natarajan opened this issue May 8, 2024 · 91 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@m-natarajan
Copy link

m-natarajan commented May 8, 2024

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.71-4
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
Expensify/Expensify Issue URL:
Issue reported by: Applause Internal Team
Slack conversation:

Action Performed:

1.Go to staging.new.expensify.com
2. Go to group chat.
3. Go to + > Split expense.
4. Enter amount > Next.
5. On confirmation page, hit Enter or CMD+Enter.


Note

In the same flow also from any of the amounts clicking Enter should confirm the split

Expected Result:

Enter or CMD+Enter will split the expense.

Actual Result:

Enter or CMD+Enter opens the profile of the last user under "Split amounts" list.

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

Bug6474634_1715160446644.20240508_171210.mp4

Add any screenshot/video evidence

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~010103e80036688f64
  • Upwork Job ID: 1788212648413052928
  • Last Price Increase: 2024-08-27
  • Automatic offers:
    • abzokhattab | Contributor | 0
    • Krishna2323 | Contributor | 102703476
Issue OwnerCurrent Issue Owner: @CortneyOfstad
@m-natarajan m-natarajan added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. DeployBlocker Indicates it should block deploying the API labels May 8, 2024
Copy link

melvin-bot bot commented May 8, 2024

Triggered auto assignment to @johnmlee101 (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link

melvin-bot bot commented May 8, 2024

Triggered auto assignment to @CortneyOfstad (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.

Copy link

melvin-bot bot commented May 8, 2024

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open Staging deploy checklist to see the list of PRs included in this release, then work quickly on the following:

  1. If you find which PR caused the issue/bug, you can reassign it to the person responsible for it.
    • If the author is OOO or won’t get online before the daily deploy is due, you are responsible for finding the best fix/path forward. Don’t hesitate to ask for help!
  2. Try to reproduce the issue, if the bug is on production, remove the DeployBlocker label but stay assigned to fix it (or find out which PR broke it to get help from the author).
    • You can adjust the urgency of the issue to better represent the gravity of the bug.
    • If the issue is super low priority, feel free to un-assign yourself.
    • Be careful with PHP warnings, sometimes it is more complex than just adding a null coalescing operator as they might be uncovering some bigger bug.
    • If it was a one-off issue that requires no action (for example, Bedrock was down or it is a duplicated issue), you can close it.

Remember rule #2: Never un-assign yourself from a real DeployBlocker unless you are 100% sure someone else is assigned and will take care of it.

@melvin-bot melvin-bot bot removed the Hourly KSv2 label May 8, 2024
@github-actions github-actions bot added Hourly KSv2 and removed Daily KSv2 labels May 8, 2024
Copy link
Contributor

github-actions bot commented May 8, 2024

👋 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:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@m-natarajan
Copy link
Author

@CortneyOfstad FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

@mountiny mountiny added the External Added to denote the issue can be worked on by a contributor label May 8, 2024
@melvin-bot melvin-bot bot changed the title Web - Split - Enter and CMD+Enter open user profile instead of splitting expense [$250] Web - Split - Enter and CMD+Enter open user profile instead of splitting expense May 8, 2024
Copy link

melvin-bot bot commented May 8, 2024

Job added to Upwork: https://www.upwork.com/jobs/~010103e80036688f64

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label May 8, 2024
Copy link

melvin-bot bot commented May 8, 2024

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

@Krishna2323
Copy link
Contributor

Proposal

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

Web - Split - Enter and CMD+Enter open user profile instead of splitting expense

What is the root cause of that problem?

The condition for calling onConfirmSelection is wrong, it should not check for canSelectMultipleOptions.

if (this.props.canSelectMultipleOptions) {
this.props.onConfirmSelection();
return;
}

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

Instead of canSelectMultipleOptions we need to check for onConfirmSelection.

What alternative solutions did you explore? (Optional)

@mountiny
Copy link
Contributor

mountiny commented May 8, 2024

@Krishna2323 Thanks, which PR is this coming from?

@abzokhattab
Copy link
Contributor

abzokhattab commented May 8, 2024

Proposal

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

Split - Enter and CMD+Enter open user profile instead of splitting expense

What is the root cause of that problem?

Two problems here:

  1. pressing on enter doesn't confirm the split:
    we are intentionally making the priority of the settlement button as 1 here which is not needed after this PR

  2. pressing ctrl + enter doesn't confirm:
    the ctrl + enter is enabled by the OptionsSelector, so on order to confirm instead of opening the user details
    we need to pass the canSelectMultipleOptions as true here ... the offending PR is this

if (this.props.canSelectMultipleOptions) {
this.props.onConfirmSelection();
return;
}

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

  1. remove the enterKeyEventListenerPriority={1} prop here
  2. add the canSelectMultipleOptions prop to the OptionsSelector here

@mountiny
Copy link
Contributor

mountiny commented May 8, 2024

I was just looking into that PR, I dont think we can revert it, we should look into a fix

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jul 31, 2024
@CortneyOfstad CortneyOfstad self-assigned this Jul 31, 2024
@CortneyOfstad
Copy link
Contributor

@lschurr I am heading OoO so reassigned. Payment will most likely be delayed due to new PR here, but wanted someone assigned just in case. Thanks!

@melvin-bot melvin-bot bot added Daily KSv2 and removed Daily KSv2 labels Jul 31, 2024
@lschurr
Copy link
Contributor

lschurr commented Aug 4, 2024

New PR is still open: #46278

@lschurr lschurr changed the title [HOLD for payment 2024-08-01] [$500] Web - Split - Enter and CMD+Enter open user profile instead of splitting expense [$500] Web - Split - Enter and CMD+Enter open user profile instead of splitting expense Aug 5, 2024
Copy link

melvin-bot bot commented Aug 7, 2024

@mananjadhav, @johnmlee101, @CortneyOfstad, @lschurr, @mountiny, @Krishna2323 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@mountiny
Copy link
Contributor

mountiny commented Aug 8, 2024

PR was merged

Copy link

melvin-bot bot commented Aug 9, 2024

@mananjadhav, @johnmlee101, @CortneyOfstad, @lschurr, @mountiny, @Krishna2323 Eep! 4 days overdue now. Issues have feelings too...

Copy link

melvin-bot bot commented Aug 12, 2024

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Aug 12, 2024
@mananjadhav
Copy link
Collaborator

I think this is ready for payout, but we've had regression on this one.

cc - @CortneyOfstad @mountiny

@mananjadhav
Copy link
Collaborator

@CortneyOfstad @mountiny quick bump if you missed.

@mountiny mountiny changed the title [$500] Web - Split - Enter and CMD+Enter open user profile instead of splitting expense [$250] Web - Split - Enter and CMD+Enter open user profile instead of splitting expense Aug 27, 2024
Copy link

melvin-bot bot commented Aug 27, 2024

Upwork job price has been updated to $250

@mountiny mountiny changed the title [$250] Web - Split - Enter and CMD+Enter open user profile instead of splitting expense [HOLD for payment 2024-08-27] [$250] Web - Split - Enter and CMD+Enter open user profile instead of splitting expense Aug 27, 2024
@mountiny mountiny added Daily KSv2 and removed Reviewing Has a PR in review Weekly KSv2 labels Aug 27, 2024
@mountiny
Copy link
Contributor

@lschurr @CortneyOfstad This is ready to be paid. This was originally for $500, but there was a regression so we are cutting the price in half.

$250 to @mananjadhav and to @Krishna2323 please

@lschurr
Copy link
Contributor

lschurr commented Aug 27, 2024

Payment summary:

@CortneyOfstad
Copy link
Contributor

Thank you @lschurr!!

@garrettmknight
Copy link
Contributor

$250 approved for @mananjadhav

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 Engineering External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests