-
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 2023-07-06] [$1000] Inconsistent "Enter" key behavior in Assign task #21205
Comments
Triggered auto assignment to @lschurr ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Inconsistent "Enter" key behavior in Assign task What is the root cause of that problem?we are not providing What changes do you think we should make in order to solve the problem?We need to pass
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Inconsistent "Enter" key behavior in Assign task What is the root cause of that problem?we don't add submitOnEnter field for description text input What changes do you think we should make in order to solve the problem?Add submitOnEnter in 3 below places
App/src/pages/tasks/NewTaskDetailsPage.js Line 102 in 0b7455f
What alternative solutions did you explore? (Optional) |
Job added to Upwork: https://www.upwork.com/jobs/~0189b1f49c485f8906 |
Current assignee @lschurr is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @narefyev91 ( |
This happens because this |
So do what we want?
|
ProposalPlease re-state the problem that we are trying to solve in this issue.description input field the enter key creates a new line. You want to create new line with SHIFT+ENTER and submit/next form just by clicking ENTER What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?add
|
Proposal of @Pujan92 #21205 (comment) makes sense to me - proposal indicates a root case of the issue - and suggested changes should fix current issue |
Triggered auto assignment to @neil-marcellini, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@narefyev91 Could you think about my proposal? The proposal of @Pujan92 doesn't fix the current issue. We need to add submitOnEnter into App/src/pages/tasks/NewTaskDetailsPage.js Line 102 in 0b7455f
to fix the current issue. The proposal of @Pujan92 doesn't mention that |
Hey @dukenv0307 - your proposal is the same - that adding submitOnEnter will fix the issue - you pointed out in which files in should be changed including one more file. But the proposal is about adding code which will fix, and not really pointing in which files. Fixing logic is the same for your proposal and for @Pujan92 proposal - he was a first with it. In any case thanks @dukenv0307 will wait your proposals for other issues! |
@narefyev91 Understand your meaning. But I mean that :
It is not related to this issue (you can check the action performed and the video in the issue's description). It only should be an extra fix. To fix the issue mentioned in this issue we should add submitOnEnter in here App/src/pages/tasks/NewTaskDetailsPage.js Line 102 in 0b7455f
This is another issue where the completed and more valuable proposal is selected instead of the first proposal. |
@dukenv0307 i mentioned above my thoughts - in any case the last decision @neil-marcellini. If he will think that your proposal better - he will assign this to you, no worries |
Definitely, I was aware of it but somehow I missed the file link in the proposal. But as it is in the same flow it can be understandable and for this, I think root cause with the correct solution matters more.
I would prefer to not reference other issues of this type case as we have seen the decision goes in favor of the other way around too for many issues, which depends on the reviewer's perspective. Anyways, I am fine with whatever the @neil-marcellini decides. |
@narefyev91 I like @dukenv0307's proposal better because it's more complete. However, I'm not sure if this is actually a problem. Do we really care if hitting enter in the description field of a task makes a new line? I don't really think so. If we really want to force using shift+Enter to make a new line, then I think hitting only Enter should remove focus from the input, because we usually don't make the form submit on enter. Are you guys good with closing this @lschurr @thienlnam? |
@neil-marcellini For more information, I see that on the description in the IOU flow, clicking enter will submit the form. So I think we should make it consistency
Screen.Recording.2023-06-24.at.17.07.04.mov |
Everywhere in the app - pressing enter usually submit a form - and i think it should be the same expected behaviour for any form. BTW - i'm fully ok if we will leave as it is :-) |
📣 @dukenv0307 You have been assigned to this job by @neil-marcellini! |
@narefyev91 @neil-marcellini The PR is ready to review. |
🎯 ⚡️ Woah @narefyev91 / @dukenv0307, great job pushing this forwards! ⚡️ The pull request got merged within 3 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉
On to the next one 🚀 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.34-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-07-06. 🎊 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.
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:
|
@narefyev91 @dukenv0307 @Nathan-Mulugeta - could you apply for the job in Upwork? |
@narefyev91 do we need a regression test for this one? |
Just applied. |
@narefyev91 Please check this. #22284 Might be a difference in user experience or a regression. |
I'm from Callstack - no needs to do anything with Upwork :-) |
@jeet-dhandha i will say that it was a misunderstanding and lack of information based on this comment #21661 (comment) |
I think really not needed |
Paid and closed :) |
@lschurr @neil-marcellini We added enter on submit here. Due to this, when we submit the return key on Android, we submit the form. Hence users cannot enter multiline description as raised #22284. On desktop and web we can still enter multiline with shift+enter, but not on the mobile devices. Can we confirm that we do want cc - @muttmuure |
We decided that we want to be consistent and have the enter key submit, as with all other forms. It works well on all the other platforms so I think we should figure out a fix for Android. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
The "Enter" key behavior should be consistent for both input fields.
Actual Result:
"Enter" key behavior is different for both input fields. When user is inside the title input field the enter key triggers the "Next" button but when inside the description input field the enter key creates a new line. (It would be better if creating a new line is triggered with the "Shift + Enter" key)
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.2.30-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:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
2023-06-15.10.06.12.mp4
Recording.1045.mp4
Expensify/Expensify Issue URL:
Issue reported by: @Nathan-Mulugeta
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1686812998789659
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: