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

[$500] Request money - Distance - Keyboard is showing for brief moment of time while coming from delete waypoint #27201

Closed
1 of 6 tasks
izarutskaya opened this issue Sep 11, 2023 · 61 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@izarutskaya
Copy link

izarutskaya commented Sep 11, 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. Click on FAB icon
  2. Then select request money
  3. Click on distance TAB
  4. Click on add stop button
  5. Click on stop which is added
  6. Then select three dots (top most right)
  7. And delete this waypoint

Expected Result:

Keyboard should not be show

Actual Result:

Keyboard is showing for brief moment of time

Workaround:

Unknown

Platforms:

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

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: v1.3.66-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

RPReplay_Final1693940882.MP4
RPReplay_Final1694465713.MP4

Expensify/Expensify Issue URL:

Issue reported by: @niravkakadiya25

Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1693941099472519

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~018ef807527bb44c5b
  • Upwork Job ID: 1701342038677569536
  • Last Price Increase: 2023-09-11
  • Automatic offers:
    • tienifr | Contributor | 26874632
    • niravkakadiya25 | Reporter | 26874633
@izarutskaya izarutskaya added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Sep 11, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 11, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Sep 11, 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

@izarutskaya izarutskaya added the External Added to denote the issue can be worked on by a contributor label Sep 11, 2023
@melvin-bot melvin-bot bot changed the title Request money - Distance - Keyboard is showing for brief moment of time while coming from delete waypoint [$500] Request money - Distance - Keyboard is showing for brief moment of time while coming from delete waypoint Sep 11, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 11, 2023

Job added to Upwork: https://www.upwork.com/jobs/~018ef807527bb44c5b

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

melvin-bot bot commented Sep 11, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Sep 11, 2023

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

@paultsimura
Copy link
Contributor

paultsimura commented Sep 11, 2023

Proposal

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

The keyboard is visible for a second while removing a stop.
Note: it's also visible after clicking "Delete stop" before opening the confirmation modal.

What is the root cause of that problem?

We have the textInput element focus set on the load here:

onEntryTransitionEnd={() => textInput.current && textInput.current.focus()}

It's gaining the focus back when the modal is closing, which opens the keyboard for input.

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

Call the textInput.current.blur() and textInput.current.focus() based on the conditions:

  • When we open/close the "Delete Stop" confirmation modal (setting isDeleteStopModalOpen) – I would recommend creating separate functions showDeleteStopModal and hideDeleteStopModal, call blur/focus in them accordingly, and use them instead of calling setIsDeleteStopModalOpen(true/false);
  • When we confirm removal of the stop – at deleteStopAndHideModal.

What alternative solutions did you explore? (Optional)

@hungvu193
Copy link
Contributor

Proposal

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

Request money - Distance - Keyboard is showing for brief moment of time while coming from delete waypoint

What is the root cause of that problem?

In iOS once modal is closed, the keyboard will appear again before navigating to previous page which caused glitch only in iOS.

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

Add shouldEnableKeyboardAvoidingView={false} to our ScreenWrapper of WaypointEditor.
In deleteStopAndHideModal function, add Keyboard.dimiss() to hide the modal completely.

What alternative solutions did you explore? (Optional)

N/A

@tienifr
Copy link
Contributor

tienifr commented Sep 12, 2023

Proposal

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

Keyboard is showing for brief moment of time:

  • After deleting the stop (as in the OP)
  • Between clicking Delete waypoint in the three dots menu and the stop deletion confirmation modal opens

What is the root cause of that problem?

It's the same issue as this one.

In iOS, when a modal is opened while the keyboard is still opened, the default behavior is that the keyboard will be closed, then after the modal is closed, the keyboard will reopen again.

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

We should use the same fix as that issue. When the three dot button is pressed, we should dismiss the keyboard.

We can add to here

onThreeDotsButtonPress={() => Keyboard.dismiss()}

According to this, only iOS refocuses after closing the modal, so we don't have to reopen the keyboard after the modal is dismissed, to be consistent with other platforms.

That's exactly the same approach taken in the other similar issue.

What alternative solutions did you explore? (Optional)

If we want to future-proof this for future usage of the three dots menu, we can put the Keyboard.dismiss logic in the ThreeDotsMenu or HeaderWithBackButton itself.

Instead of Keyboard.dismiss, calling blur on textInput is also fine.

@melvin-bot melvin-bot bot added the Overdue label Sep 14, 2023
@sonialiap
Copy link
Contributor

@sobitneupane what do you think of the current proposals?

@melvin-bot melvin-bot bot removed the Overdue label Sep 14, 2023
@sobitneupane
Copy link
Contributor

sobitneupane commented Sep 18, 2023

Thanks for the proposal everyone.

@hungvu193 I don't think your proposal will do the job as keyboard appears between two modals in the delete process as well (i.e modal with Delete waypoint menuitem and Delete waypoint modal).

@sobitneupane
Copy link
Contributor

According to #20608 (comment), only iOS refocuses after closing the modal, so we don't have to reopen the keyboard after the modal is dismissed, to be consistent with other platforms.

Oh yes. I think it makes sense to dismiss keyboard when we press threedotsmenu to open the first modal as it is the case in other platforms as well.

Proposal from @tienifr looks good to me.

🎀 👀 🎀 C+ reviewed

@melvin-bot
Copy link

melvin-bot bot commented Sep 18, 2023

Triggered auto assignment to @hayata-suenaga, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@melvin-bot melvin-bot bot added the Overdue label Sep 20, 2023
@sonialiap
Copy link
Contributor

@sobitneupane @hayata-suenaga looks like we have a proposal we like, what's the next step?

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Sep 20, 2023
@sonialiap
Copy link
Contributor

@sobitneupane @hayata-suenaga bumping :)

@melvin-bot melvin-bot bot removed the Overdue label Sep 25, 2023
@sobitneupane
Copy link
Contributor

sobitneupane commented Sep 25, 2023

We are waiting on response from @hayata-suenaga on #27201 (comment)

@melvin-bot
Copy link

melvin-bot bot commented Sep 25, 2023

@sonialiap @sobitneupane @hayata-suenaga 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!

@hayata-suenaga
Copy link
Contributor

#24452 is still being worked on

@melvin-bot melvin-bot bot removed the Overdue label Apr 29, 2024
@melvin-bot melvin-bot bot added the Overdue label May 8, 2024
@sonialiap
Copy link
Contributor

Still on hold for #24452

@melvin-bot melvin-bot bot removed the Overdue label May 8, 2024
@melvin-bot melvin-bot bot added the Overdue label May 17, 2024
@sobitneupane
Copy link
Contributor

Still on hold

@melvin-bot melvin-bot bot removed the Overdue label May 19, 2024
@melvin-bot melvin-bot bot added the Overdue label May 27, 2024
@sobitneupane
Copy link
Contributor

Still on hold

@melvin-bot melvin-bot bot removed the Overdue label May 28, 2024
@melvin-bot melvin-bot bot added the Overdue label Jun 5, 2024
@sonialiap
Copy link
Contributor

Still on hold for #24452 but looks like we're getting closer!

@melvin-bot melvin-bot bot removed the Overdue label Jun 6, 2024
@melvin-bot melvin-bot bot added the Overdue label Jun 14, 2024
@sonialiap sonialiap changed the title [HOLD for App issue #24452] [$500] Request money - Distance - Keyboard is showing for brief moment of time while coming from delete waypoint [$500] Request money - Distance - Keyboard is showing for brief moment of time while coming from delete waypoint Jun 18, 2024
@sonialiap
Copy link
Contributor

PR for #24452 was deployed on June 12 #43041 (comment). I'm asking QA to retest this to see if it's still an issue - slack

@melvin-bot melvin-bot bot removed the Overdue label Jun 18, 2024
@kbecciv
Copy link

kbecciv commented Jun 18, 2024

@sonialiap The steps are outdated; the "add stop" button is no longer present.

RPReplay_Final1718720663.MP4

@tienifr
Copy link
Contributor

tienifr commented Jun 20, 2024

Need to add initial start and stop before Add stop button appears. Anyway the issue is no longer reproducible thanks to #24452.

@sonialiap Since I got assigned for this and efforts to implement PR #28212 had been made. I think a partial compensation makes sense. cc @sobitneupane

@tienifr
Copy link
Contributor

tienifr commented Jun 26, 2024

Bump @sonialiap so we could close this out soon.

@melvin-bot melvin-bot bot added the Overdue label Jul 4, 2024
@sonialiap
Copy link
Contributor

Looking at this today! (completing another task and then this one's next on my list)

@melvin-bot melvin-bot bot removed the Overdue label Jul 5, 2024
@sonialiap
Copy link
Contributor

@tienifr chatted with the team, does 50% sound reasonable to you?

@tienifr
Copy link
Contributor

tienifr commented Jul 8, 2024

@sonialiap Thanks for the suggestions. It works completely fine for me.

@sonialiap
Copy link
Contributor

@tienifr I've adjusted the contract in upwork and issued payment ✔️

Payment summary:

@niravkakadiya25
Copy link

HI
@sonialiap can you laso adjus amount in my upwork as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Weekly KSv2
Projects
No open projects
Archived in project
Development

No branches or pull requests

9 participants