-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[PAID][$250] Taxes - When creating a Tax, the keyboard does not automatically appear in the "Name" menu #41800
Comments
Triggered auto assignment to @strepanier03 ( |
@strepanier03 FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
We think that this bug might be related to #vip-vsp |
ProposalPlease re-state the problem that we are trying to solve in this issue.Taxes - When creating a Tax, the keyboard does not automatically appear in the "Name" menu What is the root cause of that problem?The name field uses TextPicker which internally uses TextInput without autofocus. App/src/pages/workspace/taxes/WorkspaceCreateTaxPage.tsx Lines 87 to 98 in badec94
autoFocus is not being passed as true: App/src/components/TextPicker/TextSelectorModal.tsx Lines 45 to 50 in badec94
What changes do you think we should make in order to solve the problem?We can add a new prop to App/src/components/TextPicker/index.tsx Lines 50 to 58 in badec94
Now, we can control whether to autofocus or not using this prop. |
Job added to Upwork: https://www.upwork.com/jobs/~016fb7ed1a2ab55442 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jayeshmangwani ( |
Easy to repro on Android Native, adding external. |
ProposalPlease re-state the problem that we are trying to solve in this issue.When creating a Tax, the keyboard does not automatically appear in the "Name" menu What is the root cause of that problem?We pass
What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.Taxes - When creating a Tax, the keyboard does not automatically appear in the "Name" menu What is the root cause of that problem?We are using
What changes do you think we should make in order to solve the problem?We need to use // In TextSelectorModal.tsx
const inputRef = useRef<TextInputT | null>(null);
const focusTimeoutRef = useRef<NodeJS.Timeout | null>(null);
useFocusEffect(
useCallback(() => {
focusTimeoutRef.current = setTimeout(() => {
if (inputRef.current && isVisible) {
inputRef.current.focus();
}
return () => {
if (!focusTimeoutRef.current || !isVisible) {
return;
}
clearTimeout(focusTimeoutRef.current);
};
}, CONST.ANIMATED_TRANSITION);
}, [isVisible]),
); What alternative solutions did you explore? (Optional) |
Thanks for the proposals @nkdengineer @Krishna2323; both approach will work in this case, but we can use the useFocusEffect approach. For consistency here, we are already using the same way on many pages. @Krishna2323 's Proposal looks good to me 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @MonilBhavsar, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@jayeshmangwani Since the idea is the same, I think using |
The idea may be similar @nkdengineer , but I chose the other proposal because we discussion around the autofocus prop and decided to use the useFocusEffect hook.And You mentioned in the proposal that we should use the useEffect, but I'm sorry if you feel otherwise. I will let the internal engineer decide, I hope thats is ok 🙏 |
No problem. Feel free with the decision from @MonilBhavsar |
Since the other proposal completely mentioned the correct hook. It is fair to select it. Thanks for the proposal though! |
📣 @jayeshmangwani 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @Krishna2323 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@jayeshmangwani, PR ready for review. |
This issue has not been updated in over 15 days. @strepanier03, @MonilBhavsar, @jayeshmangwani, @Krishna2323 eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
The PR was deployed to production 2 weeks ago and there's no regression, so we need to pay @Krishna2323 and @jayeshmangwani(C+) cc @strepanier03 Not sure why automation didn't work |
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:
|
Regression Test Proposal
Do we agree 👍 or 👎 |
@strepanier03 Is that possible to get payment through ND for this issue as now I am getting paid through it and cancel the Upwork offer? If not then no issues we can go with the Upwork offer. |
Not Overdue! Issue is Awaiting payment |
Thanks all, I have been out of ht office and just got back in today. @jayeshmangwani - Sure thing! I'll cancel the contract in Upwork and make a payment summary post so you can do the manual request. |
@Krishna2323 - THe job in Upwork expired so I had to make a new one. I hired you for it and you should see an offer to accept. I'll check tomorrow to pay it. |
Payment Summary
@JmillsExpensify - Payment request incoming. |
@strepanier03, accepted. |
Requested on ND |
$250 approved for @jayeshmangwani |
I've paid @Krishna2323 and closed the contract as well. Thank you, everyone. Have a great week! |
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.71-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4545979
Email or phone of affected tester (no customers): sustinov@applausemail.com
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
When creating a Tax, the keyboard should automatically appear in the "Name" menu
Actual Result:
When creating a Tax, the keyboard does not automatically appear in the "Name" menu
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6474103_1715105608383.screencapture-1715105071899.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @strepanier03The text was updated successfully, but these errors were encountered: