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 2022-09-30] [$250] Web - Login - The input field does not focus after following the magic link #10968

Closed
kbecciv opened this issue Sep 13, 2022 · 37 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Engineering 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 Sep 13, 2022

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. In the email field, enter a gmail email address for a new account
  3. Navigate to the email inbox of the account and open the validation email
  4. Copy the link and change it to staging
  5. Navigate to the staging link

Expected Result:

The input field must be focused

Actual Result:

The input field does not focus

Workaround:

Unknown

Platform:

Where is this issue occurring?

  • Web
  • iOS
  • Android
  • Desktop App
  • Mobile Web

Version Number: 1.2.0.0

Reproducible in staging?: Yes

Reproducible in production?: Yes

Email or phone of affected tester (no customers): any

Logs: https://stackoverflow.com/c/expensify/questions/4856

Notes/Photos/Videos: Any additional supporting documentation

Bug5730036_Recording__1889.mp4

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

View all open jobs on GitHub

@melvin-bot
Copy link

melvin-bot bot commented Sep 13, 2022

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

@Julesssss Julesssss added Weekly KSv2 External Added to denote the issue can be worked on by a contributor Daily KSv2 and removed Daily KSv2 Weekly KSv2 labels Sep 14, 2022
@Julesssss
Copy link
Contributor

Julesssss commented Sep 14, 2022

Reproduced on Chrome. Not a big issue, but I suppose we should try to get this working.

@melvin-bot
Copy link

melvin-bot bot commented Sep 14, 2022

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

@Julesssss Julesssss added Weekly KSv2 and removed Daily KSv2 labels Sep 14, 2022
@thesahindia
Copy link
Member

Proposal

We have to use componentDidMount in NewPasswordForm.js

    componentDidMount() {
        if (!canFocusInputOnScreenFocus() || !this.input) {
            return;
        }
        this.input.focus();
    }

Need to pass ref={el => this.input = el} here -

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Sep 14, 2022
@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Sep 14, 2022
@melvin-bot
Copy link

melvin-bot bot commented Sep 14, 2022

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

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

melvin-bot bot commented Sep 14, 2022

Current assignee @Julesssss is eligible for the Exported assigner, not assigning anyone new.

@melvin-bot melvin-bot bot changed the title Web - Login - The input field does not focus after following the magic link [$250] Web - Login - The input field does not focus after following the magic link Sep 14, 2022
@mallenexpensify
Copy link
Contributor

@parasharrajat can you review @thesahindia 's proposal above? Thx
Job posted https://www.upwork.com/jobs/~016f4999710bb43714

@syedsaroshfarrukhdot
Copy link
Contributor

syedsaroshfarrukhdot commented Sep 14, 2022

Proposal

We need to pass autoFocus={true} props to TextInput in the NewPasswordForm.js and it focuses the input on componentDidMount.

Like This

<TextInput

                autoFocus={true}
                label={`${this.props.translate('setPasswordPage.enterPassword')}`}
                secureTextEntry
                autoComplete={ComponentUtils.NEW_PASSWORD_AUTOCOMPLETE_TYPE}
                textContentType="newPassword"
                value={this.props.password}
                onChangeText={password => this.props.updatePassword(password)}
                onBlur={() => this.onBlurNewPassword()}
                onSubmitEditing={() => this.props.onSubmitEditing()}

/>

After Fixing The Issue

Screen.Recording.2022-09-15.at.3.49.44.AM.mov

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Sep 14, 2022
@parasharrajat
Copy link
Member

@syedsaroshfarrukhdot's proposal looks good to me.
cc: @Julesssss

🎀 👀 🎀 C+ reviewed

@melvin-bot
Copy link

melvin-bot bot commented Sep 23, 2022

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.2.5-2 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2022-09-30. 🎊

@melvin-bot melvin-bot bot changed the title [$250] Web - Login - The input field does not focus after following the magic link [HOLD for payment 2022-09-30] [$250] Web - Login - The input field does not focus after following the magic link Sep 23, 2022
@mvtglobally
Copy link

Issue not reproducible during KI retests. (First week)

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Sep 30, 2022
@melvin-bot
Copy link

melvin-bot bot commented Oct 3, 2022

@Julesssss, @mallenexpensify, @parasharrajat, @syedsaroshfarrukhdot Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@melvin-bot melvin-bot bot added the Overdue label Oct 3, 2022
@Julesssss Julesssss added Weekly KSv2 and removed Daily KSv2 labels Oct 3, 2022
@melvin-bot melvin-bot bot removed the Overdue label Oct 3, 2022
@Julesssss Julesssss added External Added to denote the issue can be worked on by a contributor and removed External Added to denote the issue can be worked on by a contributor labels Oct 3, 2022
@melvin-bot
Copy link

melvin-bot bot commented Oct 3, 2022

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Oct 3, 2022
@melvin-bot
Copy link

melvin-bot bot commented Oct 3, 2022

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 3, 2022
@melvin-bot
Copy link

melvin-bot bot commented Oct 3, 2022

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

@Julesssss
Copy link
Contributor

Hey @trjExpensify, Matt is away at the moment. Could you please pay out this issue? Thanks!

@trjExpensify
Copy link
Contributor

👋 I settled up with @syedsaroshfarrukhdot.

The other hire on this job is @mananjadhav, but @parasharrajat was C+. Any idea what happened there? In the meantime, I've sent Rajat an offer.

@mananjadhav
Copy link
Collaborator

I did work on an issue related to magic link and forgot password. But I don't think it is this one.

@trjExpensify
Copy link
Contributor

Gotcha. Any idea which issue and contract that is? Looks like you've been paid for this one, you see.

@mananjadhav
Copy link
Collaborator

Yeah I found the issue. Looks like I was paid for #10785 with this issue's Upwork job. I don't see any Upwork job or payment for 10785.

@trjExpensify
Copy link
Contributor

Got it, got it. Cool, so just waiting on @parasharrajat to accept the contract for this job and then we can close it out!

@trjExpensify
Copy link
Contributor

Cool, settled up with @parasharrajat. Thanks everyone! 🎉

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 Daily KSv2 Engineering 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

10 participants