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.98k stars 2.98k forks source link

[CP Staging] Revert removal of the `receipt` param #55126

Closed CyberAndrii closed 1 week ago

CyberAndrii commented 2 weeks ago

Explanation of Change

Reverts removal of the receipt param in CategorizeTrackedExpense and ShareTrackedExpense commands by https://github.com/Expensify/App/pull/54628. Turns out it is actually needed :smiley:

Also adds receipt instanceof Blob ? receipt : undefined check similar to the original PR.

Fixed Issues

$ https://github.com/Expensify/App/issues/55120 PROPOSAL:

Tests

Same as QA Steps

Offline tests

N/A

QA Steps

  1. Log in with a new account.
  2. Select "Track and budget expenses" during onboarding.
  3. Complete the onboarding.
  4. Go to self DM.
  5. Track 2 manual expenses. .
  6. On first expense, click Categorize it.
  7. Select a category.
  8. Click on the receipt placeholder.
  9. Add a receipt.
  10. Submit the expense.
  11. Go to transaction thread.
  12. Verify that the receipt is displayed without issues (not a placeholder). .
  13. On second expense, click Share it with my accountant.
  14. Click on the receipt placeholder.
  15. Add a receipt.
  16. Submit the expense.
  17. Go to transaction thread.
  18. Verify that the receipt is displayed without issues (not a placeholder).

PR Author Checklist

Screenshots/Videos

Android: Native https://github.com/user-attachments/assets/042d526b-eb0f-4292-9661-7c98abe3e23c
Android: mWeb Chrome https://github.com/user-attachments/assets/c96e5437-a4e6-47ab-99fd-e096376a0808
iOS: Native https://github.com/user-attachments/assets/5732bbdb-ef1a-47ae-b36f-c37ca14efd0d
iOS: mWeb Safari https://github.com/user-attachments/assets/b5d18372-8c7f-4c68-bf64-4309e96bfecc
MacOS: Chrome / Safari https://github.com/user-attachments/assets/b85dc8a7-519c-4fc2-b55d-93b3fbde352f
MacOS: Desktop https://github.com/user-attachments/assets/dd0e03cd-5497-4556-b75f-3f8747b7cc40
melvin-bot[bot] commented 2 weeks ago

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

Pujan92 commented 2 weeks ago

Reviewer Checklist

Screenshots/Videos

Android: Native [q1.webm](https://github.com/user-attachments/assets/3e7d579d-45ba-4fef-ad65-d0e3fa6728d3)
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari https://github.com/user-attachments/assets/e6ae9240-3d3c-4e5b-8314-3bdb87620181
MacOS: Desktop
Pujan92 commented 2 weeks ago

@CyberAndrii for android "Send it to someone" works correctly for you? bcoz in my case I see the error for that expense though I don't see an error of network connection timeout in the logs.

Screenshot 2025-01-12 at 12 25 40
CyberAndrii commented 1 week ago

@Pujan92 I did see it once while testing yesterday, but after closing and reopening the app it disappeared so I think maybe it didn't pick up new changes after switching branches. Works fine now

55120 send to someone.webm

Pujan92 commented 1 week ago

@blimpich can review this as they reviewed the original one.

OSBotify commented 1 week 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.

github-actions[bot] commented 1 week ago

🚀 Cherry-picked to staging by https://github.com/Beamanator in version: 9.0.84-2 🚀

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

@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes.

izarutskaya commented 1 week ago

@CyberAndrii Found issues on Android when validation the PR - issue https://github.com/Expensify/App/issues/55110, https://github.com/Expensify/App/issues/54967

https://platform.applause.com/services/links/v1/external/76b226f3ae67e6211b1a0d3f3293506f290753f869602fc4168ee05944229c07

CyberAndrii commented 1 week ago

https://github.com/Expensify/App/issues/55110 - seems to be already fixed by https://github.com/Expensify/App/pull/55117 https://github.com/Expensify/App/issues/54967 - also reproducible on production and is not related to what this PR is fixing

github-actions[bot] commented 1 week ago

🚀 Deployed to production by https://github.com/mountiny in version: 9.0.84-7 🚀

platform result
🤖 android 🤖 true ❌
🖥 desktop 🖥 failure ❌
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅
🤖🔄 android HybridApp 🤖🔄 failure ❌
🍎🔄 iOS HybridApp 🍎🔄 success ✅
github-actions[bot] commented 1 week ago

🚀 Deployed to production by https://github.com/mountiny in version: 9.0.84-7 🚀

platform result
🤖 android 🤖 true ❌
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅
🤖🔄 android HybridApp 🤖🔄 failure ❌
🍎🔄 iOS HybridApp 🍎🔄 success ✅