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

[$1000] Web - Inconsistent Enter key behaviour on Split bill page vs Invite members page #22405

Closed
1 of 6 tasks
kbecciv opened this issue Jul 7, 2023 · 24 comments
Closed
1 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@kbecciv
Copy link

kbecciv commented Jul 7, 2023

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


Action Performed:

  1. Click on Settings > Workspace > Select a workspace > Members > Invite
  2. Hit Enter key on keyboard
  3. Observe the behavior by hitting enter key repeatedly until all users have been selected and no other user is there to select and hit enter after that as well
  4. Go back and click FAB > Split bill > Enter an amount > Next > Do step 2 and 3 here as well and compare the behavior

Expected Result:

Enter key should have a consistent action on both split bill and invite members page.

Actual Result:

Enter key does different things depending on the 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.37-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
Notes/Photos/Videos: Any additional supporting documentation

2023-07-06.20.50.06.mp4
Recording.3471.mp4

Expensify/Expensify Issue URL:
Issue reported by: @Nathan-Mulugeta
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1688666077963009

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0161c0ea65c4194594
  • Upwork Job ID: 1678511475953508352
  • Last Price Increase: 2023-07-24
@kbecciv kbecciv added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jul 7, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 7, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jul 7, 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

@chiragxarora
Copy link
Contributor

chiragxarora commented Jul 7, 2023

Proposal

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

Inconsistent Enter key behaviour on Split bill page vs Invite members

What is the root cause of that problem?

Root cause is the inconsistent props set for the OptionSelector functionality in both the pages WorkspaceInvitePage and MoneyRequestParticipantsSplitSelector

In MoneyRequestParticipantsSplitSelector, we have a prop called shouldShowConfirmButton which takes us to the next step after selecting maximum possible members

This is absent on workspace invite members page where we have added a manual form button using FormAlertWithSubmitButton

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

We need to replace the form button with the button caused by shouldShowConfirmButton

Results

What alternative solutions did you explore? (Optional)

We can remove the shouldShowConfirmButton from split selector page and add an explicit button there

@samh-nl
Copy link
Contributor

samh-nl commented Jul 7, 2023

Proposal

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

Inconsistent Enter behavior between Invite members page (workspace) vs Split bill page

What is the root cause of that problem?

The invite members page does not implement the footer functionality that is already present in the OptionsSelector component, while splitting the bill (MoneyRequestParticipantsSplitSelector) does. The OptionsSelector component contains the necessary functionality for correctly processing the Enter key.

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

Streamline the implementation of WorkspaceInvitePage with MoneyRequestParticipantsSplitSelector to use OptionsSelector's built-in footer functionality, this involves using the prop shouldShowConfirmButton.

What alternative solutions did you explore? (Optional)

N/A

@melvin-bot melvin-bot bot added the Overdue label Jul 10, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 10, 2023

@adelekennedy Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@adelekennedy
Copy link

reproduced, I think the behavior should be the same!

@melvin-bot melvin-bot bot removed the Overdue label Jul 10, 2023
@adelekennedy adelekennedy added External Added to denote the issue can be worked on by a contributor Overdue labels Jul 10, 2023
@melvin-bot melvin-bot bot changed the title Web - Inconsistent Enter key behaviour on Split bill page vs Invite members page [$1000] Web - Inconsistent Enter key behaviour on Split bill page vs Invite members page Jul 10, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 10, 2023

Job added to Upwork: https://www.upwork.com/jobs/~0161c0ea65c4194594

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

melvin-bot bot commented Jul 10, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jul 10, 2023

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

@adelekennedy
Copy link

not sure why overdue was added again - commenting to remove!

@melvin-bot melvin-bot bot removed the Overdue label Jul 10, 2023
@elghanbibadr
Copy link

Proposal
Please re-state the problem that we are trying to solve in this issue.
Inconsistent Enter key behaviour on Split bill page vs Invite members

What is the root cause of that problem?
Root cause is the inconsistent props set for the OptionSelector functionality in both the pages WorkspaceInvitePage and MoneyRequestParticipantsSplitSelector

In MoneyRequestParticipantsSplitSelector, we have a prop called shouldShowConfirmButton which takes us to the next step after selecting maximum possible members

This is absent on workspace invite members page where we have added a manual form button using FormAlertWithSubmitButton

What changes do you think we should make in order to solve the problem?
We need to replace the form button with the button caused by shouldShowConfirmButton

Results
What alternative solutions did you explore? (Optional)
We can remove the shouldShowConfirmButton from split selector page and add an explicit button there

@mananjadhav
Copy link
Collaborator

I think before we proceed to review the proposals, @adelekennedy we should define consistency? I mean of the current two disparities, which one is the expected result?

@adelekennedy
Copy link

great point! I would assume we want to follow the invite flow but I'll discuss in bug-zero

@adelekennedy
Copy link

huh - I was just re-testing this to post and I see that the behavior is the same now. (hitting enter selects everyone on the list)

@mananjadhav I think this has been fixed

@melvin-bot melvin-bot bot added the Overdue label Jul 17, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 17, 2023

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot
Copy link

melvin-bot bot commented Jul 17, 2023

@mananjadhav, @adelekennedy Whoops! This issue is 2 days overdue. Let's get this updated quick!

@adelekennedy
Copy link

Just tested again on desktop prod - I think we should close this out @Nathan-Mulugeta will be due for the reporting bonus

@melvin-bot melvin-bot bot removed the Overdue label Jul 17, 2023
@melvin-bot melvin-bot bot added the Overdue label Jul 20, 2023
@adelekennedy
Copy link

great! Will you apply here @Nathan-Mulugeta ?

@melvin-bot melvin-bot bot removed the Overdue label Jul 20, 2023
@Nathan-Mulugeta
Copy link

Just applied @adelekennedy

@melvin-bot
Copy link

melvin-bot bot commented Jul 21, 2023

@mananjadhav @adelekennedy this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@melvin-bot melvin-bot bot added the Overdue label Jul 24, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 24, 2023

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@adelekennedy
Copy link

adelekennedy commented Jul 24, 2023

Offer sent on Upwork:
Issue reporter: @Nathan-Mulugeta $250.00 for the bug report

@melvin-bot melvin-bot bot removed the Overdue label Jul 24, 2023
@Nathan-Mulugeta
Copy link

Offer accepted @adelekennedy

@adelekennedy
Copy link

and paid!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors
Projects
None yet
Development

No branches or pull requests

7 participants