Use new isDeleted property for deleted actions#36747
Conversation
|
@DylanDylann 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] |
|
@DylanDylann backend changes that are needed for this are on staging so make sure to test against that API. I'm not sure if you can test the second part (Changing a workspace money request into an invoice), but if you can't, that's okay. The internal engineer can take a look instead. |
|
Let's me try |
|
@arosiclair Do we only use |
With the new backend changes, yes. |
|
@arosiclair Should we update |
|
In case, we have many money requests. If we delete a request money, we need to hide it in the IOU report instead of hiding the report preview in the main report (1:1 chat) |
That shouldn't be necessary atm.
Ah yes to clarify, you must test with a new money request that only has one expense. Deleting the last expense will also delete the report and the report preview in the chat. I just updated the tests to reflect that. The scenario of deleting one expense with others still left on the report should be unaffected. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-03-14.at.12.37.29.movScreen.Recording.2024-03-14.at.12.36.44.movAndroid: mWeb ChromeScreen.Recording.2024-03-14.at.12.39.26.movScreen.Recording.2024-03-14.at.12.39.01.moviOS: NativeScreen.Recording.2024-03-14.at.12.41.58.movScreen.Recording.2024-03-14.at.12.41.45.moviOS: mWeb SafariScreen.Recording.2024-03-14.at.12.04.14.movScreen.Recording.2024-03-14.at.12.04.53.movMacOS: Chrome / SafariScreen.Recording.2024-03-14.at.11.59.11.movScreen.Recording.2024-03-14.at.12.00.07.movMacOS: DesktopScreen.Recording.2024-03-14.at.12.12.54.movScreen.Recording.2024-03-14.at.12.13.17.mov |
|
@Julesssss 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] |
|
@arosiclair Test fails. Please help to merge main |
|
I shouldn't approve again @Julesssss Please ignore this PR. @grgia is assigned before |
|
@arosiclair bump on merge main :) |
|
We actually need a strict equality check for the message html ( |
|
@DylanDylann can you confirm if you've retested |
|
@grgia Yeah, everything work well |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/arosiclair in version: 1.4.56-0 🚀
|
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.4.56-8 🚀
|
Details
We are now marking report actions as deleted by setting the
deletedtimestamp in theirmessagearray. We'll hide and ignore these actions like we did with deleted comments. For legacy support, we're still hidingADDCOMMENTactions that have an empty message.Fixed Issues
$ https://github.com/Expensify/Expensify/issues/367794
Tests
Deleting a money request
Changing a workspace money request into an invoice
Offline tests
None
QA Steps
Same as Tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop