-
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
[HOLD for payment 2023-10-02] [$500] IOU - Losing focus on the amount input field when switching between apps #26505
Comments
ProposalProblemIOU - Losing focus on the amount input field when switching between apps Root CauseWhen user is switch window the focus is lost from text input and when user is back to app input is not focussed Chnageswe can use visibilitylistner to focus back on textInput in MoneyRequestAmountForm when user switch back to app. useEffect(() => {
const unsubscribeVisibilityListener = Visibility.onVisibilityChange(() => {
// focus the text input when the app is back in the foreground
if (Visibility.isVisible() && textInput.current) {
textInput.current.focus();
}
});
return () => {
unsubscribeVisibilityListener();
};
}, []); Without Changes
Screen.Recording.2023-09-02.at.3.33.58.PM.movWith Changes
Screen.Recording.2023-09-02.at.3.37.11.PM.mov |
Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@lanitochka17 No one is assigned to the issue, looks like automation failed. |
Triggered auto assignment to @CortneyOfstad ( |
Bug0 Triage Checklist (Main S/O)
|
Getting eyes on this 👍 |
Job added to Upwork: https://www.upwork.com/jobs/~01f419594d979a6b3d |
Current assignee @CortneyOfstad is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Losing focus on the amount of input field when switching between apps What is the root cause of that problem?App/src/components/TextInput/index.js Line 25 in 153ab36
here two is issues First we allow only mobile chrome and What changes do you think we should make in order to solve the problem?we can use new props |
ProposalPlease re-state the problem that we are trying to solve in this issue.Losing focus on the amount input field for Request Money/Split bills when switching between apps by 3 fingers swipe gesture when app in fullscreen view What is the root cause of that problem?This issue only happens for the amount input, no other inputs have the issue (it always regains focus after the app is foregrounded). It's because we That That inconsistency only occurs on Android, and according to "What do I think?" here, it's not really a bug, just the way it works in that platform. And according to point 5, we don't have to refocus the input in that case because the user can already immediately type on the numbers in the screen. So the problem here is, that consistency fix is affecting other platforms (other than Android). What changes do you think we should make in order to solve the problem?We move this useEffect block to a platform specific file ( So that inconsistency fix won't have any negative impact on other platforms like web/mWeb/Desktop. Especially in web/Desktop, we need the refocusing behavior for the users to type the value. What alternative solutions did you explore? (Optional)We could try to fix the inconsistency in the RN repo, but as mentioned above, it might not be accepted because it might be how it works in the platform. Also, it doesn't bring much value since refocusing is not needed for Android/iOS. |
@eVoloshchak any thoughts on the proposals above? |
Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:
On to the next one 🚀 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.73-1 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 2023-10-02. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
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:
|
Payment Breakdown
|
|
Regression Test Proposal
Do we agree 👍 or 👎 |
I don't think that's correct, the PR was merged on 22th, which isn't a working day, so it was merged in 2 business days @CortneyOfstad, could you double-check that please? |
@thienlnam Does that sound correct to you ^^^ Just want a second pair of eyes on this |
Why isn't the 22nd a working day? Granted the PR was approved and required no updates from me on the 21st, so we can give the bonus here |
Oh my bad, I was looking at the calendar for October by mistake |
No worries @eVoloshchak! I sent you a proposal in Upwork for the additional $250 bonus amount. Please let me know once you approve it! Creating the regression test GH now 👍 |
Checklist above updated with Regression Test link 👍 |
No need for Upwork, I'll just send the payment request via NewDot |
Sounds good! Closing! |
Payment Breakdown:External issue reporter — Applause, so does not require payment |
$750 payment approved for @eVoloshchak based on summary immediately above. |
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:
Expected Result:
Amount input label should be focused when user switched back to the app
Actual Result:
Losing focus on the amount input field for Request Money/Split bills when switching between apps by 3 fingers swipe gesture when app in fullscreen view
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.61-1
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Bug6185121_Recording__279.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: