Remove allReportActions usage from deleteAppReport - #94769
Conversation
|
@eVoloshchak 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] |
|
@luacmartins 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] |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: eccb46ed68
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| deleteAppReport({ | ||
| report: childReport, | ||
| reportActions: childReportActions, | ||
| parentReportAction, |
There was a problem hiding this comment.
Pass the child report's preview action
When deleting a report preview from this menu, report is the parent chat and childReport is the expense report being deleted. Looking up useParentReportAction(report) therefore returns the parent action of the chat (usually undefined) instead of the preview action referenced by childReport.parentReportActionID; deleteAppReport then only sets pendingAction and cannot add message.deleted, which its own logic notes is required because isDeletedAction ignores pendingAction. This leaves the stale preview/action badge when right-click deleting a report preview offline.
Useful? React with 👍 / 👎.
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
JmillsExpensify
left a comment
There was a problem hiding this comment.
No product review required imo.
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppscreen-20260629-101602-1782720946786.mp4Android: mWeb ChromeScreen.Recording.2026-06-29.at.10.28.32.moviOS: HybridAppScreen.Recording.2026-06-29.at.10.08.50.moviOS: mWeb SafariScreen.Recording.2026-06-29.at.10.11.39.movMacOS: Chrome / SafariScreen.Recording.2026-06-29.at.09.43.12.mov |
|
🚧 luacmartins has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 9.4.25-0 🚀
|
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.4.25-2 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
Fixed Issues
$ #73651
PROPOSAL:
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
A.
B.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)Avatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.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
b.mp4