Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
2.97k stars 2.48k forks source link

Fix map can be moved in money request preview #40852

Closed bernhardoj closed 5 days ago

bernhardoj commented 1 week ago

Details

When we do a new distance request, we show the mapbox component while waiting for the map image from the server, however, we don't disable the map interactivity, so the user can move around the map. This PR disables it.

Fixed Issues

$ https://github.com/Expensify/App/issues/40318 PROPOSAL: https://github.com/Expensify/App/issues/40318#issuecomment-2060309899

Tests

Same as QA Steps

Offline tests

Same as QA Steps

QA Steps

  1. Open an existing expense report (or just create a new one)
  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
    • [x] Verify that no errors appear in the JS console

PR Author Checklist

Screenshots/Videos

Android: Native https://github.com/Expensify/App/assets/50919443/151fe9d6-e389-46df-a12c-b8be9c889daa
Android: mWeb Chrome https://github.com/Expensify/App/assets/50919443/c51a6a6a-5f86-4181-8b0c-50d813de51f1
iOS: Native https://github.com/Expensify/App/assets/50919443/2ae2db46-a684-4f7e-8f99-b4977be750fc
iOS: mWeb Safari https://github.com/Expensify/App/assets/50919443/8f691a93-32a4-46aa-a05f-453742e93230
MacOS: Chrome / Safari https://github.com/Expensify/App/assets/50919443/d71d9f26-2680-4e30-a5e3-a04d951a980c
MacOS: Desktop https://github.com/Expensify/App/assets/50919443/174631f8-6be0-499d-9ae7-388a7be74e02
melvin-bot[bot] commented 1 week ago

@jjcoffee Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

bernhardoj commented 1 week ago

~I'm having trouble with Android build:~

jjcoffee commented 1 week ago

Thanks, reviewing tomorrow!

jjcoffee commented 1 week ago

Reviewer Checklist

Screenshots/Videos

Android: Native https://github.com/Expensify/App/assets/27287420/550846bb-43e3-4db6-a01b-beb68cbff3cf
Android: mWeb Chrome https://github.com/Expensify/App/assets/27287420/6555c92e-8f09-4eee-8743-f75eeae02a8e
iOS: Native https://github.com/Expensify/App/assets/27287420/b9d6b590-59a4-4ce7-a9f7-6a02d7028bcc
iOS: mWeb Safari https://github.com/Expensify/App/assets/27287420/48a25e58-22f9-477a-b7f2-58cb4fd9bfdb
MacOS: Chrome / Safari https://github.com/Expensify/App/assets/27287420/2dc87b75-ccdf-4ff6-8949-5b5a9c6ce93d
MacOS: Desktop https://github.com/Expensify/App/assets/27287420/9b4d3ae8-e4e0-40ec-98e9-8c62963ec728
jjcoffee commented 1 week ago

@bernhardoj How did you resolve the Android build issue? I'm getting the same error :smile:

bernhardoj commented 1 week ago

@jjcoffee I deleted the android/app/cxx folder and rebuilt it.

jjcoffee commented 1 week ago

@bernhardoj That did it, thanks!

jjcoffee commented 1 week ago

Doh, missed off a checklist item. Updated now :smile:

OSBotify commented 4 days ago

πŸš€ Deployed to staging by https://github.com/stitesExpensify in version: 1.4.69-0 πŸš€

platform result
πŸ€– android πŸ€– success βœ…
πŸ–₯ desktop πŸ–₯ success βœ…
🍎 iOS 🍎 success βœ…
πŸ•Έ web πŸ•Έ success βœ…
OSBotify commented 3 days ago

πŸš€ Deployed to production by https://github.com/Beamanator in version: 1.4.69-2 πŸš€

platform result
πŸ€– android πŸ€– success βœ…
πŸ–₯ desktop πŸ–₯ success βœ…
🍎 iOS 🍎 success βœ…
πŸ•Έ web πŸ•Έ success βœ