You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2024-05-09] [$250] Map preview moves around when the distance expense is loading #40318
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
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.
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:
Pass a new prop to ConfirmedRoute > DistanceMapView called interactive.
In MapView.website.tsx, set interactive props of Map to the interactive props we pass.
<Map interactive={interactive} ...
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.
changed the title [-]Map preview moves around when the distance expense is loading[/-][+][$250] Map preview moves around when the distance expense is loading[/+]on Apr 23, 2024
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[/+]on 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:
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:
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: N/A
Determine if we should create a regression test for this bug. Yes
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.
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon 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 commentedon Apr 17, 2024
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.
App/src/components/ReportActionItem/MoneyRequestPreview/MoneyRequestPreviewContent.tsx
Lines 231 to 235 in 21ee1a3
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:
interactive.MapView.website.tsx, setinteractiveprops ofMapto theinteractiveprops we pass.MapView.tsx, sincernmapboxdoesn't support theinteractiveprops, we can disable it by appending the style to includepointerEvents: noneto theViewwrapper.App/src/components/MapView/MapView.tsx
Lines 148 to 149 in 21ee1a3
Or we can have the same implementation for both platforms by passing a style of
pointerEvents: nonedirectly fromConfirmedRoute.melvin-bot commentedon Apr 22, 2024
@anmurali Huh... This is 4 days overdue. Who can take care of this?
[-]Map preview moves around when the distance expense is loading[/-][+][$250] Map preview moves around when the distance expense is loading[/+]melvin-bot commentedon Apr 23, 2024
Job added to Upwork: https://www.upwork.com/jobs/~01bfeab361be7edd4a
melvin-bot commentedon Apr 23, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jjcoffee (
External)15 remaining items
[-][$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[/+]melvin-bot commentedon May 2, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon 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:
melvin-bot commentedon 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:
anmurali commentedon May 6, 2024
@jjcoffee - can you add regression steps? Payment not due till the 9th.
melvin-bot commentedon May 13, 2024
@anmurali, @jjcoffee, @stitesExpensify, @bernhardoj Eep! 4 days overdue now. Issues have feelings too...
jjcoffee commentedon May 14, 2024
Regression Test Proposal
Do we agree 👍 or 👎
anmurali commentedon May 15, 2024
Paid, added regression test.