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] Distance - Clicking on Use current location when suggestion list is open does not trigger action #29015

Closed
4 of 6 tasks
lanitochka17 opened this issue Oct 6, 2023 · 16 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Weekly KSv2

Comments

@lanitochka17
Copy link

lanitochka17 commented Oct 6, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Issue found when executing PR #26546

Action Performed:

  1. Go to https://staging.new.expensify.com/
  2. Go to + > Request money > Distance
  3. Click Start
  4. Enter any address so that the suggestion list shows up
  5. Click on Use current location

Expected Result:

Since the cursor displays as a hand when hovering over 'Use current location', clicking on it should trigger the app to detect user's current location

Actual Result:

Clicking on 'Use current location' does not trigger the intended action of the button when the suggestion list is open.
On Android, it works without issue when the suggestion list is open

Workaround:

Unknown

Platforms:

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

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

Version Number: 1.3.79-3

Reproducible in staging?: Yes

Reproducible in production?: No

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

Bug6227689_1696606124772.20231006_213541__1_.mp4

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01cd6068abd5a84d8a
  • Upwork Job ID: 1710364184113389568
  • Last Price Increase: 2023-10-13
@lanitochka17 lanitochka17 added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Oct 6, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 6, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Oct 6, 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

@OSBotify
Copy link
Contributor

OSBotify commented Oct 6, 2023

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@melvin-bot
Copy link

melvin-bot bot commented Oct 6, 2023

Triggered auto assignment to @deetergp (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@huzaifa-99
Copy link
Contributor

huzaifa-99 commented Oct 6, 2023

This doesn't look like an issue. When we open the suggestion list and click outside anywhere the list will close (on web).

cc: @hayata-suenaga @deetergp

@deetergp deetergp removed the DeployBlockerCash This issue or pull request should block deployment label Oct 6, 2023
@deetergp
Copy link
Contributor

deetergp commented Oct 6, 2023

@lanitochka17 You can't say that clicking on "Use current location" works in production if that link does not exist on production. Not a deploy blocker, but I agree that clicking on the link should work as intended, rather than simply trigger hiding the list when clicking outside it.

@deetergp deetergp added the External Added to denote the issue can be worked on by a contributor label Oct 6, 2023
@melvin-bot melvin-bot bot changed the title Distance - Clicking on Use current location when suggestion list is open does not trigger action [$500] Distance - Clicking on Use current location when suggestion list is open does not trigger action Oct 6, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 6, 2023

Job added to Upwork: https://www.upwork.com/jobs/~01cd6068abd5a84d8a

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

melvin-bot bot commented Oct 6, 2023

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

@huzaifa-99
Copy link
Contributor

Not a deploy blocker, but I agree that clicking on the link should work as intended, rather than simply trigger hiding the list when clicking outside it.

Actually, the dropdown list is linked with the address search input, when the input loses focus we hide the list. I think we can just change the cursor on the 'use current location' button when the list is open.

@deetergp deetergp added Weekly KSv2 and removed Hourly KSv2 labels Oct 6, 2023
@hayata-suenaga
Copy link
Contributor

@huzaifa-99 doesn't clicking the "Use current lcoation" button both make the input loose focus and the onPress callback to be invoked?

@paultsimura
Copy link
Contributor

paultsimura commented Oct 9, 2023

Proposal

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

When an address suggestion list is open, clicking on "Use current location" button is not working.

What is the root cause of that problem?

The RCA here is that the "Use current location" button is located below the expanding suggestion lost. So when we click on it:

  1. The list hides
  2. "Press" event is executed

However, after the list hides, the button changes its location, and the press event clicks an empty space. You can prove it by, for example, simply changing the position of this button to above the waypoint search field.

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

A simple solution is to move the "Use current location" button on top of the search field, which will make the button's position independent from the list:

current-location.mov

What alternative solutions did you explore? (Optional)

@huzaifa-99
Copy link
Contributor

huzaifa-99 commented Oct 9, 2023

@huzaifa-99 doesn't clicking the "Use current lcoation" button both make the input loose focus and the onPress callback to be invoked?

In theory, it should yes, but the button doesn't get the click when the list changes position (similar to what @paultsimura mentioned)

However, after the list hides, the button changes its location, and the press event clicks an empty space.

cc: @hayata-suenaga

@hayata-suenaga
Copy link
Contributor

but the button doesn't get the click when the list changes position

ah this is tricky...

@melvin-bot
Copy link

melvin-bot bot commented Oct 13, 2023

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@huzaifa-99
Copy link
Contributor

huzaifa-99 commented Oct 14, 2023

Since the location button is getting moved to the list (context, context), i think we can close this issue.

@melvin-bot melvin-bot bot added the Overdue label Oct 16, 2023
@jliexpensify
Copy link
Contributor

Ok great, looks like @jjcoffee gave the thumbs up so closing it out.

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. Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Weekly KSv2
Projects
None yet
Development

No branches or pull requests

8 participants