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 2024-05-09] [$250] Map preview moves around when the distance expense is loading #40318

Closed
2 of 6 tasks
m-natarajan opened this issue Apr 16, 2024 · 17 comments
Closed
2 of 6 tasks
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@m-natarajan
Copy link

m-natarajan commented Apr 16, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 1.4.62-6
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
Expensify/Expensify Issue URL:
Issue reported by: @kevinksullivan
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1713222545829489

Action Performed:

  1. Track expense
  2. Select distance
  3. Create a distance expense by entering start / end points
  4. Once landing in DM, tap around on the map

Expected Result:

The map shouldn't move around in a preview

Actual Result:

The map moves around in the preview, until the expense finishes and then it doesn't anymore

Workaround:

unknown

Platforms:

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

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

RPReplay_Final1713222239.MP4
Mufh1372-1.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01bfeab361be7edd4a
  • Upwork Job ID: 1782710546830057472
  • Last Price Increase: 2024-04-23
  • Automatic offers:
    • jjcoffee | Reviewer | 0
    • bernhardoj | Contributor | 0
Issue OwnerCurrent Issue Owner: @anmurali
@m-natarajan m-natarajan added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Apr 16, 2024
Copy link

melvin-bot bot commented Apr 16, 2024

Triggered auto assignment to @anmurali (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@bernhardoj
Copy link
Contributor

Proposal

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

We can move around the map after creating a new track distance.

What is the root cause of that problem?

This started to happen after this PR where we add a map view component to preview the distance map while waiting for the BE to give us the map preview in image form.

{showMapAsImage && (
<View style={styles.reportActionItemImages}>
<ConfirmedRoute transaction={transaction} />
</View>
)}

Because we are using the map view component, the user can interact with the map as they do on the distance request page.

After the BE sends us the image, we render the image instead of the map view.

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

We need to disable the map interactivity when showing it as a preview only. We can do that by:

  1. Pass a new prop to ConfirmedRoute > DistanceMapView called interactive.
  2. In MapView.website.tsx, set interactive props of Map to the interactive props we pass.
<Map interactive={interactive} ...
  1. In MapView.tsx, since rnmapbox doesn't support the interactive props, we can disable it by appending the style to include pointerEvents: none to the View wrapper.
    <View style={style}>
    <Mapbox.MapView
<View style={[style, interactive ? {pointerEvents: 'none'} : {}]}>

Or we can have the same implementation for both platforms by passing a style of pointerEvents: none directly from ConfirmedRoute.

@melvin-bot melvin-bot bot added the Overdue label Apr 19, 2024
Copy link

melvin-bot bot commented Apr 22, 2024

@anmurali Huh... This is 4 days overdue. Who can take care of this?

@anmurali anmurali added the External Added to denote the issue can be worked on by a contributor label Apr 23, 2024
@melvin-bot melvin-bot bot changed the title Map preview moves around when the distance expense is loading [$250] Map preview moves around when the distance expense is loading Apr 23, 2024
Copy link

melvin-bot bot commented Apr 23, 2024

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 23, 2024
Copy link

melvin-bot bot commented Apr 23, 2024

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

@melvin-bot melvin-bot bot removed the Overdue label Apr 23, 2024
@jjcoffee
Copy link
Contributor

@bernhardoj's proposal LGTM!

🎀👀🎀 C+ reviewed

Copy link

melvin-bot bot commented Apr 23, 2024

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

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 23, 2024
Copy link

melvin-bot bot commented Apr 23, 2024

📣 @jjcoffee 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

Copy link

melvin-bot bot commented Apr 23, 2024

📣 @bernhardoj 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Apr 24, 2024
@bernhardoj
Copy link
Contributor

PR is ready

cc: @jjcoffee

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels May 2, 2024
@melvin-bot melvin-bot bot added the Awaiting Payment Auto-added when associated PR is deployed to production label May 2, 2024
@melvin-bot melvin-bot bot changed the title [$250] Map preview moves around when the distance expense is loading [HOLD for payment 2024-05-09] [$250] Map preview moves around when the distance expense is loading May 2, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label May 2, 2024
Copy link

melvin-bot bot commented May 2, 2024

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

Copy link

melvin-bot bot commented May 2, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.69-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 2024-05-09. 🎊

For reference, here are some details about the assignees on this issue:

Copy link

melvin-bot bot commented May 2, 2024

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:

  • [@jjcoffee] The PR that introduced the bug has been identified. Link to the PR:
  • [@jjcoffee] 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:
  • [@jjcoffee] 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:
  • [@jjcoffee] Determine if we should create a regression test for this bug.
  • [@jjcoffee] 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:

@anmurali
Copy link

anmurali commented May 6, 2024

@jjcoffee - can you add regression steps? Payment not due till the 9th.

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels May 8, 2024
Copy link

melvin-bot bot commented May 13, 2024

@anmurali, @jjcoffee, @stitesExpensify, @bernhardoj Eep! 4 days overdue now. Issues have feelings too...

@jjcoffee
Copy link
Contributor

Regression Test Proposal

  1. Open an existing expense report
  2. Create a new distance request
  3. Drag around the money request map preview
  4. Verify the map doesn't move
  5. Press the preview to open the transaction thread
  6. Drag around the map preview
  7. Verify the map doesn't move

Do we agree 👍 or 👎

@anmurali
Copy link

Paid, added regression test.

@melvin-bot melvin-bot bot removed the Overdue label May 15, 2024
@github-project-automation github-project-automation bot moved this from Polish to Done in [#whatsnext] #wave-collect May 15, 2024
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 External Added to denote the issue can be worked on by a contributor
Projects
No open projects
Archived in project
Development

No branches or pull requests

5 participants