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.99k stars 2.5k forks source link

fix: deleted report preview link in thread is incorrect #41572

Closed gijoe0295 closed 1 week ago

gijoe0295 commented 2 weeks ago

Details

Not here page displayed for deleted IOU link copied from 2nd level thread because it used the wrong reportID. This PR retrieves the originalReportID instead.

Fixed Issues

$ https://github.com/Expensify/App/issues/41091 PROPOSAL: https://github.com/Expensify/App/issues/41091#issuecomment-2079701685

Tests

  1. Submit an expense to an user
  2. Send a message in transaction report
  3. Reply that message in thread
  4. Delete the expense
  5. Right press the report preview >> Copy link
  6. Navigate to that link
  7. Verify app navigates to the DM report in step 1 and highlight the corresponding report preview

Offline tests

NA

QA Steps

  1. Submit an expense to an user
  2. Send a message in transaction report
  3. Reply that message in thread
  4. Delete the expense
  5. Right press the report preview >> Copy link
  6. Navigate to that link
  7. Verify app navigates to the DM report in step 1 and highlight the corresponding report preview

PR Author Checklist

Screenshots/Videos

Android: Native https://github.com/Expensify/App/assets/153004152/9c62ed57-fb66-425c-a372-b9a8637d32ec
Android: mWeb Chrome https://github.com/Expensify/App/assets/153004152/60ccdf16-d69c-4d4b-9677-f4a4f33f3c5f
iOS: Native https://github.com/Expensify/App/assets/153004152/e8cde880-27c9-4f9c-b325-e193905e7e0a
iOS: mWeb Safari https://github.com/Expensify/App/assets/153004152/c96bdd4c-56aa-4d50-854a-cb1694db3caa
MacOS: Chrome / Safari https://github.com/Expensify/App/assets/153004152/afabf684-d439-40c6-b878-88d49f7514fc
MacOS: Desktop https://github.com/Expensify/App/assets/153004152/b7ce66d1-9362-4db5-aab8-f6fd462b10de
melvin-bot[bot] commented 1 week ago

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

hungvu193 commented 1 week ago

@gijoe0295 I got this bug while recording the video for mSafari? Can you reproduce it?

https://github.com/Expensify/App/assets/16502320/2dce67a5-725e-4891-8c2d-e4387447c995

gijoe0295 commented 1 week ago

@hungvu193 Could you check if the action ID and the report ID in the URL are correct (i.e. point to the original report and action)? If yes then the issue you mentioned must be a different one and not related. I got it several times on main.

hungvu193 commented 1 week ago

mWeb safari is so broken for me, I'll try again in a while.

hungvu193 commented 1 week ago

Ok, I can confirm it's not related to this PR.

hungvu193 commented 1 week ago

Reviewer Checklist

Screenshots/Videos

Android: Native https://github.com/Expensify/App/assets/16502320/a214c6b2-8c70-4e2c-b5c7-3f2be56ed3b4
Android: mWeb Chrome
iOS: Native https://github.com/Expensify/App/assets/16502320/7e934e94-8268-4a90-91cb-7c78d7cff278
iOS: mWeb Safari https://github.com/Expensify/App/assets/16502320/6158572f-85cd-49ce-bb70-6e69a75457ac
MacOS: Chrome / Safari https://github.com/Expensify/App/assets/16502320/edf971d1-6fe0-4d3b-9ead-8ca765cd2724
MacOS: Desktop https://github.com/Expensify/App/assets/16502320/ccf0d9f7-115c-4cac-94b8-eaedc5ef8f86
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.

OSBotify commented 1 week ago

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

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

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

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