-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@grgia All yours
@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
deleted
timestamp in theirmessage
array. We'll hide and ignore these actions like we did with deleted comments. For legacy support, we're still hidingADDCOMMENT
actions 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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop