-
Notifications
You must be signed in to change notification settings - Fork 3k
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 2024-12-05] [$125] Taxes - BNP input is not auto focused in add rate page #51543
Comments
Triggered auto assignment to @thienlnam ( |
👋 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:
|
💬 A slack conversation has been started in #expensify-open-source |
Production: RPReplay_Final1730050554.MP4 |
Edited by proposal-police: This proposal was edited at 2024-10-28 15:51:43 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Taxes - BNP input is not auto focused in add rate page What is the root cause of that problem?
App/src/components/AmountPicker/AmountSelectorModal.tsx Lines 42 to 48 in 5103b4b
What changes do you think we should make in order to solve the problem?
// Store the ref of the input
const inputRef = useRef<BaseTextInputRef | null>(null);
const focusTimeoutRef = useRef<NodeJS.Timeout | null>(null);
const inputCallbackRef = (ref: BaseTextInputRef | null) => {
inputRef.current = ref;
};
// use "useFocusEffect" focus on the input whenever "isVisible" state is changed.
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, inputRef]),
);
// Pass the ref to "AmountForm"
ref={(ref) => inputCallbackRef(ref)}
What alternative solutions did you explore? (Optional)Resulttax_amount_not_focused.mp4 |
But then wouldn't that mean that the issue should be reproducible in prod? |
I'm going to call this NAB - also I don't know if we need it to look "focused" - pressing numbers works fine |
@Beamanator, I tried again to look for a recent PR that might have caused this issue, but I don’t believe any recent PR is responsible—though I may be wrong here. In my opinion, the root cause is the use of the App/src/pages/workspace/rules/RulesMaxExpenseAmountPage.tsx Lines 68 to 75 in 4aa19bf
App/src/pages/workspace/distanceRates/CreateDistanceRatePage.tsx Lines 86 to 92 in 4aa19bf
I think we need to fix this to be consistent will all other similar pages: Inconsistencytax_amount_not_focused_issue.mp4 |
Job added to Upwork: https://www.upwork.com/jobs/~021850971328621900159 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Ollyws ( |
Upwork job price has been updated to $125 |
Reproducible, but also I agree with:
What was the cause here? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@Ollyws, @thienlnam Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@garrettmknight, @Ollyws, @thienlnam, @Krishna2323 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@Ollyws, PR ready for review ^ |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.67-9 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 2024-12-05. 🎊 For reference, here are some details about the assignees on this issue:
|
@Ollyws @garrettmknight @Ollyws 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] |
@Ollyws please fill out the checklist |
@Krishna2323 paid you out! |
@Ollyws bump on the checklist |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test Proposal Template
Regression Test ProposalPrecondition:Test:
Do we agree 👍 or 👎 |
Payment Summary:
@Ollyws go ahead and request. |
Requested in ND. |
Confirming payment summary:
|
$125 approved for @Ollyws |
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: 9.0.54-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: 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/5134453
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
BNP input will be auto focused
Actual Result:
BNP input is not auto focused
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6647125_1730008681078.ScreenRecording_10-27-2024_13-52-22_1.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @garrettmknightThe text was updated successfully, but these errors were encountered: