Skip to content

[Due for payment 2025-05-14] [Due for payment 2025-05-13] [$250] Login - Email field is auto unfocused #61275

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

Closed
2 of 8 tasks
mitarachim opened this issue May 1, 2025 · 39 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

@mitarachim
Copy link

mitarachim commented May 1, 2025

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


Version Number: v9.1.39-0
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from TestRail: NA
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Windows 10 /Chrome
App Component: Other

Action Performed:

  1. Go to staging.new.expensify.com
  2. Log out if logged in.
  3. Refresh the page.

Expected Result:

Email field will auto focus.

Actual Result:

Email field is auto unfocused. Error is thrown.

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6818931_1746132744385.bandicam_2025-05-01_23-44-26-585.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021918094989548484511
  • Upwork Job ID: 1918094989548484511
  • Last Price Increase: 2025-05-02
  • Automatic offers:
    • suneox | Reviewer | 107144301
    • ChavdaSachin | Contributor | 107144303
Issue OwnerCurrent Issue Owner: @jliexpensify
@mitarachim mitarachim added Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 DeployBlocker Indicates it should block deploying the API DeployBlockerCash This issue or pull request should block deployment labels May 1, 2025
Copy link

melvin-bot bot commented May 1, 2025

Triggered auto assignment to @stephanieelliott (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 1, 2025

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

Copy link

melvin-bot bot commented May 1, 2025

💬 A slack conversation has been started in #expensify-open-source

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels May 1, 2025
Copy link
Contributor

github-actions bot commented May 1, 2025

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

@chiragsalian
Copy link
Contributor

chiragsalian commented May 2, 2025

Good catch, normally i would say a stylistic change shouldn't be a blocker but in this case it also throws an error which is not ideal. Yeah let's tackle this. Marking it as external. Its only a blocker for App and not for web-e.

@chiragsalian chiragsalian added External Added to denote the issue can be worked on by a contributor and removed DeployBlocker Indicates it should block deploying the API labels May 2, 2025
@melvin-bot melvin-bot bot changed the title Login - Email field is auto unfocused [$250] Login - Email field is auto unfocused May 2, 2025
Copy link

melvin-bot bot commented May 2, 2025

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

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

ChavdaSachin commented May 2, 2025

Proposal

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

Login - Email field is auto unfocused

What is the root cause of that problem?

Fallback value false is being passed here

const isAccountValidated = account?.validated ?? false;

Due which blurOnSubmit is always true when user is not logged in
blurOnSubmit={isAccountValidated === false}

before this refactor this condition was working perfectly coz useAccountValidation hook would return undefined on login page and hence the condition was false and would not auto blur the input field on login page.

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

Remove fallback value here.

const isAccountValidated = account?.validated ?? false;

    const isAccountValidated = account?.validated;

Additionally there are a few more pages where similar code is used which should be checked if the same issue is recurring there,

What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

NA

What alternative solutions did you explore? (Optional)

Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

Copy link

melvin-bot bot commented May 2, 2025

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

Copy link
Contributor

github-actions bot commented May 2, 2025

⚠️ Thanks for your proposal. Please update it to follow the proposal template, as proposals are only reviewed if they follow that format (note the mandatory sections).

@ChavdaSachin
Copy link
Contributor

ChavdaSachin commented May 2, 2025

@chiragsalian I've checked my solution, and it is working perfectly.
I could raise a quick PR if you need.

I've also checked for possible side effects but there's nothing to worry about

@chiragsalian
Copy link
Contributor

Nice, pretty quick. i found the issue came from this PR. Reverting it solves the issue. But i like that you have a proposal. Looking 👀

@chiragsalian
Copy link
Contributor

Neat, your proposal LGTM. I like that we don't have the default.
Since this is an hourly, Can you put up a PR quickly to tackle this? assigning it to you @ChavdaSachin.

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

melvin-bot bot commented May 2, 2025

📣 @suneox 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

@stephanieelliott stephanieelliott added the Bug Something is broken. Auto assigns a BugZero manager. label May 6, 2025
Copy link

melvin-bot bot commented May 6, 2025

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels May 6, 2025
@jliexpensify
Copy link
Contributor

jliexpensify commented May 6, 2025

Payment Summary

https://www.upwork.com/jobs/~021918094989548484511

@ChavdaSachin
Copy link
Contributor

@jliexpensify I think there should be no payment for @suneox here.
Please confirm with @chiragsalian

@jliexpensify
Copy link
Contributor

Oh right, it looks like it's a revert from a PR. @chiragsalian - no payment for @suneox?

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels May 7, 2025
@melvin-bot melvin-bot bot changed the title [Due for payment 2025-05-13] [$250] Login - Email field is auto unfocused [Due for payment 2025-05-14] [Due for payment 2025-05-13] [$250] Login - Email field is auto unfocused May 7, 2025
Copy link

melvin-bot bot commented May 7, 2025

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.40-7 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 2025-05-14. 🎊

For reference, here are some details about the assignees on this issue:

Copy link

melvin-bot bot commented May 7, 2025

@suneox @jliexpensify @suneox The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

@chiragsalian
Copy link
Contributor

Its not a revert. We went with the solution from @ChavdaSachin.
So @ChavdaSachin should get paid.

No payment for @suneox because i rushed this forward since it was a deploy blocker. So @suneox didnt have any involvement here cause he didnt do proposal or PR review. Because i skipped it for him in the interest of speed.

@jliexpensify
Copy link
Contributor

Thanks @chiragsalian - updated the payment summary here. Do we need a checklist then?

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels May 12, 2025
@jliexpensify
Copy link
Contributor

@chiragsalian just checking - is a checklist needed?

@melvin-bot melvin-bot bot removed the Overdue label May 12, 2025
@chiragsalian
Copy link
Contributor

sorry i missed this. did you mean the bugzero checklist? If so yeah i dont think its needed for this issue at this time.

@jliexpensify
Copy link
Contributor

Sweet, thanks Chirag!

Payment Summary is here, closing!

@ChavdaSachin
Copy link
Contributor

@jliexpensify you closed the issue but forgot to release the payment perhaps.

@jliexpensify
Copy link
Contributor

@ChavdaSachin you're not paid via New Expensify?

@jliexpensify
Copy link
Contributor

Ah sorry, got confused - let me sort it out now.

@jliexpensify jliexpensify reopened this May 14, 2025
@jliexpensify
Copy link
Contributor

Paid and job closed cc @ChavdaSachin

@ChavdaSachin
Copy link
Contributor

Thanks.

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

6 participants