Skip to content
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-03-31] [$4000] Focus on the field does not shift while editing in the general settings page at the workspace. #15109

Closed
1 task done
kavimuru opened this issue Feb 13, 2023 · 59 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Internal Requires API changes or must be handled by Expensify staff

Comments

@kavimuru
Copy link

kavimuru commented Feb 13, 2023

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:

  1. Open any workspace and go to general settings.
  2. Now perform edit on workspace name (Do not save)
  3. Notice that the cursor is focused on workspace name.
  4. Now change the currency

Expected Result:

The focus on field should change in android too. I.e when selecting a new field, the cursor should also shift to that new field.

Actual Result:

Even After editing name field and moving to currency field, the cursor witha green line focus still remains on name field.

Workaround:

unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android / native

Version Number: 1.2.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:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:

Record_2023-02-12-14-21-57.1.mp4
az_recorder_20230213_170504.1.mp4

Expensify/Expensify Issue URL:
Issue reported by: @ashimsharma10
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1676191167476849

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~017b5fb21ef5da838a
  • Upwork Job ID: 1627908747207131136
  • Last Price Increase: 2023-03-07
@kavimuru kavimuru added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Feb 13, 2023
@MelvinBot
Copy link

Triggered auto assignment to @anmurali (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot melvin-bot bot locked and limited conversation to collaborators Feb 13, 2023
@MelvinBot
Copy link

MelvinBot commented Feb 13, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@melvin-bot melvin-bot bot added the Overdue label Feb 16, 2023
@MelvinBot
Copy link

@anmurali Whoops! This issue is 2 days overdue. Let's get this updated quick!

@anmurali anmurali added the External Added to denote the issue can be worked on by a contributor label Feb 21, 2023
@melvin-bot melvin-bot bot unlocked this conversation Feb 21, 2023
@anmurali anmurali removed the Overdue label Feb 21, 2023
@melvin-bot melvin-bot bot added the Overdue label Feb 21, 2023
@melvin-bot melvin-bot bot changed the title Focus on the field does not shift while editing in the general settings page at the workspace. [$1000] Focus on the field does not shift while editing in the general settings page at the workspace. Feb 21, 2023
@MelvinBot
Copy link

Job added to Upwork: https://www.upwork.com/jobs/~017b5fb21ef5da838a

@MelvinBot
Copy link

Current assignee @anmurali is eligible for the External assigner, not assigning anyone new.

@MelvinBot
Copy link

Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia (External)

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 21, 2023
@MelvinBot
Copy link

Triggered auto assignment to @tgolen (External), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@anmurali anmurali removed the Overdue label Feb 21, 2023
@melvin-bot melvin-bot bot added the Overdue label Feb 21, 2023
@anmurali
Copy link

Reproduced and slapped an external label on this to fix

@melvin-bot melvin-bot bot removed the Overdue label Feb 21, 2023
@jayeshmangwani
Copy link
Contributor

@anmurali is this not expected behavior?
this same behavior happens with all the form pages e.g. VBA > Company information page, focus any text input(Phone number) and then select company type(Picker) after selecting values from Picker, text input is still focused and Picker loses the focus

@ashimsharma10
Copy link

ashimsharma10 commented Feb 21, 2023

yes, I guess it occurs in a few more places. but how can such be intended? IMO focus should be on the field where the user is active.

@devanshujain95
Copy link

Proposal

Please re-state the problem that we are trying to solve in this issue.

Focus needs to be shifted from Text input component once other component gets in focus (should get blurred).
Example as mentioned above: When user selects to change currency by selecting Picker component, keyboard and focus remains on its above component i.e. Text Input whereas Keyboard should get dismissed and focus should be shifted to Picker.

What is the root cause of that problem?

Picker component unable to close the keyboard when it gets in focus mode. Although Picker component is triggering its onFocus but unable to dismiss the keyboard. And hence, the prior text input component unable to get blurred.

What changes do you think we should make in order to solve the problem?

If we can somehow make our text input component trigger blur event whenever it gets out of focus, the focus will be removed and will be moved to next set of form components if any.

As @ashimsharma10 mentioned, this is happening everywhere where Picker component is used after Text Input component, and I checked my solution in other places like Company Information and this is fixed in all places :)

After Solution:

Screen.Recording.2023-02-21.at.5.17.00.PM.mov

@thesahindia
Copy link
Member

@tgolen, I also think this is not a bug. It is the expected behaviour. Please close if you also feel the same.

@devanshujain95
Copy link

@thesahindia I think this should be consider as a bug because if we compare both iOS and Android platform, things are different. Also, focus should not be remain on the previous text input even when the user has moved to next form inputs.

@situchan
Copy link
Contributor

I think we normally respect native platform's behavior. Android native Spinner modal doesn't focus itself at all as default.
Similar issue which was closed: #15230

@melvin-bot melvin-bot bot added the Reviewing Has a PR in review label Mar 16, 2023
@bernhardoj
Copy link
Contributor

PR is ready for review.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Mar 24, 2023
@melvin-bot melvin-bot bot changed the title [$4000] Focus on the field does not shift while editing in the general settings page at the workspace. [HOLD for payment 2023-03-31] [$4000] Focus on the field does not shift while editing in the general settings page at the workspace. Mar 24, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Mar 24, 2023
@MelvinBot
Copy link

Reviewing label has been removed, please complete the "BugZero Checklist".

@MelvinBot
Copy link

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.2.88-2 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-03-31. 🎊

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.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@MelvinBot
Copy link

MelvinBot commented Mar 24, 2023

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:

This was not a bug caused by any regression. It was a platform inconsistency found in one of the third-party libraries that we use.

  • [@thesahindia / @tgolen] The PR that introduced the bug has been identified. Link to the PR: NA
  • [@thesahindia / @tgolen] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment: NA
  • [@thesahindia / @tgolen] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: NA
  • [@anmurali] Determine if we should create a regression test for this bug.
  • [@thesahindia] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@anmurali] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Mar 31, 2023
@MelvinBot
Copy link

@tgolen, @anmurali, @thesahindia Whoops! This issue is 2 days overdue. Let's get this updated quick!

@tgolen
Copy link
Contributor

tgolen commented Apr 3, 2023

I completed my pieces of the checklist and added this note:

This was not a bug caused by any regression. It was a platform inconsistency found in one of the third-party libraries that we use.

@melvin-bot melvin-bot bot removed the Overdue label Apr 3, 2023
@thesahindia
Copy link
Member

Regression test proposal

  1. Go to Settings > Workspaces
  2. Click on any existing workspace or create a new one
  3. Go to general Settings
  4. Focus on the name field
  5. Notice that the name field gets highlighted
  6. Click at the Default currency picker
  7. Select any currency
  8. Verify that the name field is not highlighted anymore

@melvin-bot melvin-bot bot added the Overdue label Apr 6, 2023
@tgolen
Copy link
Contributor

tgolen commented Apr 6, 2023

@anmurali Looks like this is just waiting on you.

@melvin-bot melvin-bot bot removed the Overdue label Apr 6, 2023
@tgolen
Copy link
Contributor

tgolen commented Apr 7, 2023

bump @anmurali

@melvin-bot melvin-bot bot added the Overdue label Apr 10, 2023
@tgolen
Copy link
Contributor

tgolen commented Apr 10, 2023

Bumping @anmurali 1:1

@melvin-bot melvin-bot bot removed the Overdue label Apr 10, 2023
@anmurali
Copy link

Creating regression test - https://github.com/Expensify/Expensify/issues/275047

@melvin-bot melvin-bot bot added the Overdue label Apr 13, 2023
@tgolen
Copy link
Contributor

tgolen commented Apr 13, 2023

I think this is completed now so closing it out.

@tgolen tgolen closed this as completed Apr 13, 2023
@melvin-bot melvin-bot bot removed the Overdue label Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Internal Requires API changes or must be handled by Expensify staff
Projects
None yet
Development

No branches or pull requests