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-03-06] [$1000] Sign out - There is no cursor in the input field after sign out #14858

Closed
6 tasks done
kbecciv opened this issue Feb 6, 2023 · 49 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 External Added to denote the issue can be worked on by a contributor

Comments

@kbecciv
Copy link

kbecciv commented Feb 6, 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. Sign in any account
  3. Go to Settings -> Sign out

Expected Result:

The cursor is present in the input field

Actual Result:

There is no cursor in the input field

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

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

Bug5926619_Recording__3607.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/~0168efd96a5e7f59ad
  • Upwork Job ID: 1623336758522720256
  • Last Price Increase: 2023-02-17
@kbecciv kbecciv added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Feb 6, 2023
@melvin-bot
Copy link

melvin-bot bot commented Feb 6, 2023

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

@melvin-bot melvin-bot bot locked and limited conversation to collaborators Feb 6, 2023
@dylanexpensify
Copy link
Contributor

Replicated

@dylanexpensify dylanexpensify added the External Added to denote the issue can be worked on by a contributor label Feb 8, 2023
@melvin-bot melvin-bot bot unlocked this conversation Feb 8, 2023
@melvin-bot melvin-bot bot changed the title Sign out - There is no cursor in the input field after sign out [$1000] Sign out - There is no cursor in the input field after sign out Feb 8, 2023
@MelvinBot
Copy link

Job added to Upwork: https://www.upwork.com/jobs/~0168efd96a5e7f59ad

@MelvinBot
Copy link

Current assignee @dylanexpensify 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 - @Santhosh-Sellavel (External)

@daraksha-dk
Copy link
Contributor

daraksha-dk commented Feb 8, 2023

Proposal

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

There is no cursor in the input field after we sign out.

What is the root cause of that problem?

This is happening because the input element is not ready for interaction when the .focus() method is being called - just after sign out.

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

Instead of using this.input.focus() directly we can make use of InteractionManager
Eg.

        InteractionManager.runAfterInteractions(() => {
            this.input.focus();
        });

What alternative solutions did you explore? (Optional)

We can add some delay using setTimeout like 200ms

   setTimeout(() => {
             this.input.focus();
    }, 200);
    

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

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

@Julesssss
Copy link
Contributor

Julesssss commented Feb 8, 2023

The first proposal sounds reasonable, but I'm not sure we should care too much about making this change. What do you think @dylanexpensify? I see your slack comments and while we probably should focus in this case, is it worth an $1000+ plus bounty?

@sayedulkrm
Copy link

Can you provide me with the main login page file link?

@hackykitty
Copy link

proposal

Dear Client
I’m very excited to assist you in making this project successful – please feel free to contact me directly to discuss this position further.
I can fix simply this issue.

In React Native, TextInput component has autoFocus props.

If true, focuses the input on componentDidMount or useEffect. The default value is false.

So if the autoFocus is set to true, everything will be fine.

I saw a lot of issues you submitted in Upwork.
Perfection and punctuality are my iron rules and I am confident that my hands-on experience, qualifications and proficiencies make me an excellent candidate for your project.
Looking forward your reply for the further discussion in details.
Thank you.

@melvin-bot melvin-bot bot added the Overdue label Feb 10, 2023
@Santhosh-Sellavel
Copy link
Collaborator

@hackykitty Please follow the proposal template in future.

@melvin-bot melvin-bot bot removed the Overdue label Feb 10, 2023
@Santhosh-Sellavel
Copy link
Collaborator

The first proposal sounds reasonable, but I'm not sure we should care too much about making this change. What do you think @dylanexpensify? I see your slack comments and while we probably should focus in this case, is it worth an $1000+ plus bounty?

@dylanexpensify @Julesssss should we proceed with this issue or hold?

@ItxAltaf
Copy link

I think autoFocus is the best solution for this

@s77rt
Copy link
Contributor

s77rt commented Feb 12, 2023

Proposal

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

Username field not being focused after signing out

What is the root cause of that problem?

On signing out, the navigation changes and on navigation change we blur the active element. This is a regression from #14048. I'm the author of that PR, giving more context, the linked piece of code is meant to be executed before navigation and not after.

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

Move the blur logic to the main navigation method.

What alternative solutions did you explore? (Optional)

None


No compensation is required here. I will fix my own bug.

@MelvinBot
Copy link

Looks like something related to react-navigation may have been mentioned in this issue discussion.

As a reminder, please make sure that all proposals are not workarounds and that any and all attempt to fix the issue holistically have been made before proceeding with a solution. Proposals to change our DeprecatedCustomActions.js files should not be accepted.

Feel free to drop a note in #expensify-open-source with any questions.

@melvin-bot melvin-bot bot added the Overdue label Feb 13, 2023
@dylanexpensify
Copy link
Contributor

@Santhosh-Sellavel bump on reviewing! :)

@melvin-bot melvin-bot bot removed the Overdue label Feb 13, 2023
@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Daily KSv2 labels Mar 6, 2023
@Julesssss
Copy link
Contributor

@dylanexpensify can you please go ahead and create that regression test please?

@melvin-bot melvin-bot bot removed the Overdue label Mar 9, 2023
@Santhosh-Sellavel
Copy link
Collaborator

Santhosh-Sellavel commented Mar 9, 2023

Thanks again for your assistance on here for checklist @s77rt

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:

@Santhosh-Sellavel
Copy link
Collaborator

@Julesssss Do we need to start a discussion on slack?

@Julesssss
Copy link
Contributor

I don't think so, this has existed for a long time IIRC.

@melvin-bot melvin-bot bot added the Overdue label Mar 13, 2023
@dylanexpensify
Copy link
Contributor

@Julesssss yes! Will do!

@melvin-bot melvin-bot bot removed the Overdue label Mar 13, 2023
@dylanexpensify
Copy link
Contributor

@dylanexpensify
Copy link
Contributor

@Santhosh-Sellavel @s77rt can you please apply at job for payment?

@s77rt
Copy link
Contributor

s77rt commented Mar 13, 2023

No payment is due for me (#14858 (comment))

@dylanexpensify dylanexpensify removed their assignment Mar 14, 2023
@dylanexpensify dylanexpensify added Bug Something is broken. Auto assigns a BugZero manager. and removed Bug Something is broken. Auto assigns a BugZero manager. labels Mar 14, 2023
@MelvinBot
Copy link

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

@Expensify Expensify deleted a comment from MelvinBot Mar 14, 2023
@dylanexpensify
Copy link
Contributor

@MitchExpensify I'm heading OOO! Would you mind tackling this for me? 🙇

@melvin-bot melvin-bot bot added the Overdue label Mar 15, 2023
@Julesssss
Copy link
Contributor

Bump @MitchExpensify, as long as you're not too busy at ECX.

@melvin-bot melvin-bot bot removed the Overdue label Mar 16, 2023
@MitchExpensify
Copy link
Contributor

@MitchExpensify I'm heading OOO! Would you mind tackling this for me? 🙇

Yep, no problem @dylanexpensify

@MitchExpensify
Copy link
Contributor

Offer sent to @Santhosh-Sellavel for eventual payment

@MitchExpensify
Copy link
Contributor

MitchExpensify commented Mar 19, 2023

Payment made, contract ended - Thanks everyone!

@Julesssss
Copy link
Contributor

Thanks @MitchExpensify

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