-
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-30] [$500] Log in - Keyboard is not consistent in safari and pressing enter does not submit a form #28569
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01d106743c23a6474e |
Triggered auto assignment to @flaviadefaria ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Ollyws ( |
ProposalPlease re-state the problem that we are trying to solve in this issueConfirm buttons have different names and pressing enter does not submit a form on safari web (Not reproduce on emulator and live device) What is the root cause of that problem?We don't pass returnKeyType value for choosing submit button name What changes do you think we should make in order to solve the problem?we can pass App/src/pages/signin/LoginForm/BaseLoginForm.js Lines 200 to 218 in 00933e1
What alternative solutions did you explore? (Optional)NA |
ProposalPlease re-state the problem that we are trying to solve in this issue.The enter key text is not consistent across platforms. What is the root cause of that problem?We don't explicitly set the text for enter key in virtual keyboards. So the keyboards tries to gauge the context on its own, resulting in inconsistent behaviour. What changes do you think we should make in order to solve the problem?We should set the App/src/pages/signin/LoginForm/BaseLoginForm.js Lines 200 to 203 in b403ab5
This prop controls the value of text on enter key. The possible values are:
I will suggest adding
What alternative solutions did you explore? (Optional)xx |
ProposalPlease re-state the problem that we are trying to solve in this issue.Keyboards are not consistent.
What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
This can be done by a few ways:
b. Or we can pass
What alternative solutions did you explore? (Optional)Other inputs might have the same issue, we might want to double check and fix similar to above. Currently all |
ProposalPlease re-state the problem that we are trying to solve in this issue.Enter key press not submitting form in iOS Safari What is the root cause of that problem?Root cause of the problem is simply there is onKeyPress handler in
What changes do you think we should make in order to solve the problem?Adding following code in above file will ensure key press will be handled on pressing enter key. enterKeyHint/returnKeyType will simply set text label of return button, it will not submit form unless we have keypress handler attached to the textinput over which soft keyboard is being shown. It should work on all platforms but it still needs to be cross verified if C+ picks this proposal. Result Untitled.13.mp4What alternative solutions did you explore? (Optional)N/A |
@Ollyws any thoughts on the proposals above? |
I can no longer reproduce the enter key issue, I think it may have been fixed by #28374 can anyone else confirm? |
@Ollyws yes it is fixed. |
In that case all that's left is the enter key label and @ZhenjaHorbach's proposal looks good for that. |
Triggered auto assignment to @MonilBhavsar, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@alitoshmatov @Ollyws I think this can be fixed in all places if we implement onKeyPress handler in TextInput component and pass it a prop submitOnEnter which should handle submitting form. Can be generic solution. |
@Ollyws Hi can you give some feedback on my proposal here?
This is indeed no longer reproducible due to that PR but that's a workaround that only accidentally fixes the issue. The root cause is still there and all usage of |
I agree we should resolve the root cause and for all the forms. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
I tried this and Videocallbacks_example.mp4It also seems to work fine in OptionsSelector, PDFPasswordForm, The bank account forms. I couldn't seem to find an instance where it didn't work. Am I missing something? |
@MonilBhavsar We're good to proceed with #28569 (comment). Thanks! |
@Ollyws @stephanieelliott @MonilBhavsar this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Thanks for clarifying! 🙌 |
📣 @Ollyws 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @ZhenjaHorbach 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
📣 @alitoshmatov 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app! |
PR will be ready today |
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.88-11 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-30. 🎊 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:
|
We can't really say this was a regression from any PR, we just never added the returnKeyType to the login form.
N/A
N/A
I don't think a regression test would be helpful here as it's a very minor visual inconsistency that doesn't affect the flow in any meaningful way. |
Summarizing payment on this issue:
Upwork job is here, no bonus is included on payout |
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:
Both keyboard should be the same, or at least pressing "Go" should submit a form
Actual Result:
Keyboards are not consistent.
a) In safari instead of "Return" sign it says "Go"
b) And pressing it won't submit the form unlike the native app
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.75-8
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
Safari
Simulator.Screen.Recording.-.iPhone.14.Pro.-.2023-09-30.at.14.36.21.mp4
IOS app
Simulator.Screen.Recording.-.iPhone.14.Pro.-.2023-09-30.at.19.14.41.mp4
0-02-01-e5f3ab9fd9fe8e1dc8753548fa3c0dff6684080e6559b01a5fe4cb4038681009_4347d5f6cdd36b14.mp4
Expensify/Expensify Issue URL:
Issue reported by: @alitoshmatov
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1696083514018509
n+is%3Aissue+label%3A%22Help+Wanted%22)
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: