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] mWeb - Request money - There is No cursor in amount page #17714

Closed
1 of 6 tasks
kbecciv opened this issue Apr 20, 2023 · 22 comments
Closed
1 of 6 tasks

[$1000] mWeb - Request money - There is No cursor in amount page #17714

kbecciv opened this issue Apr 20, 2023 · 22 comments
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

Comments

@kbecciv
Copy link

kbecciv commented Apr 20, 2023

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


Action Performed:

  1. Go to URL https://staging.new.expensify.com/
  2. Login with any account
  3. Click on the green plus button (FAB) -> Request Money
  4. Enter an amount

Expected Result:

Cursor is present

Actual Result:

There is No cursor

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.2.3

Reproducible in staging?: Yes

Reproducible in production?: Yes

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

Bug6025394_RPReplay_Final1681935756__1_.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/~01b32376b47d699980
  • Upwork Job ID: 1651248028633018368
  • Last Price Increase: 2023-04-26
@kbecciv kbecciv added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Apr 20, 2023
@MelvinBot
Copy link

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

@MelvinBot
Copy link

MelvinBot commented Apr 20, 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

@MelvinBot
Copy link

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

@michaelhaxhiu
Copy link
Contributor

Some talk about grouping this GH into a bigger auto-focus fix. I will review and update tomorrow

@melvin-bot melvin-bot bot removed the Overdue label Apr 26, 2023
@michaelhaxhiu
Copy link
Contributor

@sobitneupane do you think we should group this fix with others? It's a legit bug report - there should indeed be a cursor here.

@sobitneupane
Copy link
Contributor

sobitneupane commented Apr 26, 2023

@michaelhaxhiu It is a quite different issue than the issues being handled in #17579. In #17579 issue, we are dealing with Textinput with missing autofocus. Amount page already has autofocus but it is not being shown in mWeb. So, I think this issue should be independently handled.

@michaelhaxhiu
Copy link
Contributor

Thanks really helpful, thanks @sobitneupane !

@michaelhaxhiu michaelhaxhiu added the External Added to denote the issue can be worked on by a contributor label Apr 26, 2023
@melvin-bot melvin-bot bot changed the title mWeb - Request money - There is No cursor in amount page [$1000] mWeb - Request money - There is No cursor in amount page Apr 26, 2023
@MelvinBot
Copy link

Job added to Upwork: https://www.upwork.com/jobs/~01b32376b47d699980

@MelvinBot
Copy link

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

@MelvinBot
Copy link

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

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

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

@kuluruvineeth
Copy link

@michaelhaxhiu could you please add me to slack groups so that i can get instructions to setup for ios and android application for local development as of now i am able to run only web and desktop version, please help with the guidelines to setup for ios and android on mac m1, thanks.

@melvin-bot melvin-bot bot added the Overdue label May 1, 2023
@jasperhuangg
Copy link
Contributor

@kuluruvineeth What have you tried to get them running on iOS and Android? What are you confused about?

@melvin-bot melvin-bot bot removed the Overdue label May 1, 2023
@kuluruvineeth
Copy link

@jasperhuangg i figured out issues and now i am able to run on both ios and android, thanks.

@narefyev91
Copy link
Contributor

Hi I'm Nicolay from Callstack - expert contributor group - will start investigation in this area

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

📣 @narefyev91 You have been assigned to this job by @mountiny!
Please apply to this job in Upwork and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@mountiny
Copy link
Contributor

mountiny commented May 2, 2023

Assigning Nikolay to this as he has worked on this page previously, there are some consideration to have regarding the selection which is buggy on native and we are working on a bigger refactor of this. So maybe this could be on hold for that

@melvin-bot melvin-bot bot added the Overdue label May 3, 2023
@jasperhuangg
Copy link
Contributor

Still waiting on @narefyev91's PR, not overdue!

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels May 3, 2023
@narefyev91
Copy link
Contributor

Proposal

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

Input component is not get focus when page is mounted

What is the root cause of that problem?

Well i think there are a lot of discussion around this issue #10414 - which is the same as we facing here.
But i would like to also paste my findings.
I'm not quite sure that we will be able to fix it because of:

  1. Safari on mobile does not support autoFocus

Screenshot 2023-05-04 at 10 14 26

2) Safari prevent any manual on focus event - until user will make any interaction on the page https://bugs.webkit.org/show_bug.cgi?id=195884#c4

From Apple team:
We (Apple) like the current behaviour and do not want programmatic focus to bring up the keyboard when you do not have a hardware keyboard attached and the programmatic focus was not invoked in response to a user gesture. Why you may ask...because auto bringing up the software keyboard can be seen as annoying and a distraction to a user (not for your customers, but for everyone not using your app) given that:

  1. We bring up the keyboard, which takes up valuable real estate on screen.
  2. When we intent to bring up the software keyboard we zoom and scroll the page to give a pleasing input experience (or at least we hope it is pleasing; file bugs if not).

And i think even google was not able to make it working:
photo_2023-05-04 14 08 33

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

The only potential fix here - which i think were already done before - when user click on numpad we add new value in input and focus a field.

    updateAmountNumberPad(key) {
        if (!this.textInput.isFocused()) {
            this.textInput.focus();
        }

The code already exists but it it not working as expected in safari ios - because when we mounted the page - this.textInput.isFocused() will be equal true - and that's why on safari ios - when you click on numpad - we see number - but not see cursor.
Possible solution here to create additional function same as above but with additional check something like this:
if (!this.textInput.isFocused() || isMobileSafari()) focus input

What alternative solutions did you explore?

cc @mananjadhav @michaelhaxhiu @jasperhuangg

@melvin-bot melvin-bot bot removed the Overdue label May 4, 2023
@mananjadhav
Copy link
Collaborator

Ohh I just saw the platform mentioned as iOS Safari, I thought it was native. I would recommend :donothing: here. This is the standard behavior by Apple, and I am sure that's the case across the app.

@MelvinBot
Copy link

@mananjadhav @michaelhaxhiu @narefyev91 @jasperhuangg 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 May 8, 2023
@jasperhuangg
Copy link
Contributor

Ah I agree, I think it's a relatively minor quirk that we shouldn't really be focusing our time on, especially if this is true:

standard behavior by Apple, and I am sure that's the case across the app.

Closing, thanks everyone!

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
Projects
None yet
Development

No branches or pull requests

9 participants