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

[$250] Web - IOU - Report fields are not auto focused #39845

Closed
1 of 6 tasks
kbecciv opened this issue Apr 8, 2024 · 18 comments
Closed
1 of 6 tasks

[$250] Web - IOU - Report fields are not auto focused #39845

kbecciv opened this issue Apr 8, 2024 · 18 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2

Comments

@kbecciv
Copy link

kbecciv commented Apr 8, 2024

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


Version Number: 1.4.61-0
Reproducible in staging?: y
Reproducible in production?: n
Issue found when executing PR: #36039
Issue reported by: Applause - Internal Team

Action Performed:

Preconditions:

  • A collect WS created in OD with chat enabled
  • A few report fields are added
  1. Navigate to staging.new.expensify.com
  2. Open WS chat and create a money request
  3. Open the expense conversation of the IOU created on step 2
  4. Click on a report field

Expected Result:

The input field should be auto focused when RHP opens

Actual Result:

The input field does not get auto focused

Workaround:

n/a

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6442348_1712584537394.bandicam_2024-04-08_16-51-07-015.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0170f515ec872826bb
  • Upwork Job ID: 1777440709498458112
  • Last Price Increase: 2024-04-08
  • Automatic offers:
    • GandalfGwaihir | Contributor | 0
@kbecciv kbecciv added the DeployBlockerCash This issue or pull request should block deployment label Apr 8, 2024
Copy link

melvin-bot bot commented Apr 8, 2024

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

Copy link
Contributor

github-actions bot commented Apr 8, 2024

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

@kbecciv
Copy link
Author

kbecciv commented Apr 8, 2024

We think that this bug might be related to #wave-collect - Release 1

@mountiny mountiny added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Apr 8, 2024
@mountiny
Copy link
Contributor

mountiny commented Apr 8, 2024

This is a minor UX issue which we do not have to hold deploy for

cc @allroundexperts @thienlnam

@mountiny mountiny added the Bug Something is broken. Auto assigns a BugZero manager. label Apr 8, 2024
Copy link

melvin-bot bot commented Apr 8, 2024

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

@allroundexperts
Copy link
Contributor

Agreed. I can be the C+ here if this needs to go external.

@allgandalf
Copy link
Contributor

allgandalf commented Apr 8, 2024

Proposal

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

Input field is not autofocused

What is the root cause of that problem?

We use AnimatedTextInputRef for fieldText, this doesn't autofocus

const inputRef = useRef<AnimatedTextInputRef>(null);

We do not autofocus in InputWrapper
<InputWrapper
InputComponent={TextInput}
inputID={fieldKey}
name={fieldKey}
defaultValue={fieldValue}
label={fieldName}
accessibilityLabel={fieldName}
role={CONST.ROLE.PRESENTATION}
ref={inputRef}
/>

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

We need to use useAutoFocusInput assign it to a value inputCallbackRef and pass it to prop ref in InputWrapper, we do the same for merchant:

const {inputCallbackRef} = useAutoFocusInput();

What alternative solutions did you explore? (Optional)

N/A

@marcochavezf
Copy link
Contributor

Assigning you @allroundexperts as C+ and making it external

@marcochavezf marcochavezf added the External Added to denote the issue can be worked on by a contributor label Apr 8, 2024
Copy link

melvin-bot bot commented Apr 8, 2024

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

@melvin-bot melvin-bot bot changed the title Web - IOU - Report fields are not auto focused [$250] Web - IOU - Report fields are not auto focused Apr 8, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 8, 2024
Copy link

melvin-bot bot commented Apr 8, 2024

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

@allroundexperts
Copy link
Contributor

@GandalfGwaihir's proposal looks straight forward to me. Let's go with them!

🎀 👀 🎀 C+ reviewed

Copy link

melvin-bot bot commented Apr 8, 2024

Current assignee @marcochavezf is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.

@marcochavezf
Copy link
Contributor

Thanks for the review @allroundexperts, assigning @GandalfGwaihir 🚀

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 9, 2024
Copy link

melvin-bot bot commented Apr 9, 2024

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

Offer link
Upwork job
Please accept the offer 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 📖

@allgandalf
Copy link
Contributor

This hit production yesterday, automation failed, can you update the title manually @kevinksullivan

@allgandalf
Copy link
Contributor

this is due payment @kevinksullivan :)

@kevinksullivan
Copy link
Contributor

Payment summary:

Thanks everyone!

@JmillsExpensify
Copy link

$250 approved for @allroundexperts

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. Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2
Projects
None yet
Development

No branches or pull requests

7 participants