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
3.03k stars 2.54k forks source link

Fix amount of distance request isn't updated optimistically #42337

Closed nkdengineer closed 4 days ago

nkdengineer commented 2 weeks ago

Details

Fix amount of distance request isn't updated optimistically

Fixed Issues

$ https://github.com/Expensify/App/issues/41817 PROPOSAL: https://github.com/Expensify/App/issues/41817#issuecomment-2099770283

Tests

  1. Create a distance request
  2. Edit the distance
  3. Verify that the amount is updated immediately
    • [x] Verify that no errors appear in the JS console

Offline tests

None

QA Steps

  1. Create a distance request
  2. Edit the distance
  3. Verify that the amount is updated immediately
    • [x] Verify that no errors appear in the JS console

PR Author Checklist

Screenshots/Videos

Android: Native https://github.com/Expensify/App/assets/161821005/e86fda57-03c3-41a3-b67e-34ff104c54ca
Android: mWeb Chrome https://github.com/Expensify/App/assets/161821005/6c249527-8530-441f-8225-2c465915036e
iOS: Native https://github.com/Expensify/App/assets/161821005/2a88c734-cafb-4d41-ba7b-03c5c2e2f841
iOS: mWeb Safari https://github.com/Expensify/App/assets/161821005/50e3a362-8fc2-4c41-8807-51d9d9174ac8
MacOS: Chrome / Safari https://github.com/Expensify/App/assets/161821005/cbb5f2fe-a1dd-46fd-9e28-68ff68daccf6
MacOS: Desktop https://github.com/Expensify/App/assets/161821005/6810ff82-6af4-4641-8762-300744df4245
melvin-bot[bot] commented 2 weeks ago

@akinwale 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]

akinwale commented 1 week ago

@nkdengineer Please update the third test step to give an idea of what an optimistic update means (e.g. verify that the amount is updated immediately)

akinwale commented 1 week ago

Reviewer Checklist

Screenshots/Videos

Android: Native https://github.com/Expensify/App/assets/4160319/53113e68-b3b6-40b9-8c47-f30e8a4fa509
Android: mWeb Chrome https://github.com/Expensify/App/assets/4160319/6c1e2b32-37df-4d46-b172-8ea25eed42cb
iOS: Native https://github.com/Expensify/App/assets/4160319/c1dd0de7-4156-429b-ad10-a0336ff18c59
iOS: mWeb Safari https://github.com/Expensify/App/assets/4160319/d1271f2b-4950-4499-9d93-0ffb5b9a2f2b
MacOS: Chrome / Safari https://github.com/Expensify/App/assets/4160319/34a7a4bb-373a-41c7-ab62-679427f1dec7
MacOS: Desktop https://github.com/Expensify/App/assets/4160319/07897681-cc87-49a9-a765-1e793a9ab53c
nkdengineer commented 1 week ago

@akinwale I updated the test step.

nkdengineer commented 1 week ago

@neil-marcellini I updated your suggestions. Please help to check again. Thanks.

OSBotify commented 4 days ago

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

OSBotify commented 3 days ago

🚀 Deployed to staging by https://github.com/neil-marcellini in version: 1.4.77-0 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅
OSBotify commented 2 days ago

🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.77-11 🚀

platform result
🤖 android 🤖 failure ❌
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅
OSBotify commented 2 days ago

🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.77-11 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅