[No QA]: Move delete/cleanup functions to IOU/DeleteMoneyRequest.ts#87524
Open
DylanDylann wants to merge 4 commits intoExpensify:mainfrom
Open
[No QA]: Move delete/cleanup functions to IOU/DeleteMoneyRequest.ts#87524DylanDylann wants to merge 4 commits intoExpensify:mainfrom
DylanDylann wants to merge 4 commits intoExpensify:mainfrom
Conversation
…t.ts Move 5 delete/cleanup functions from IOU/index.ts into a dedicated DeleteMoneyRequest.ts module (Expensify#72804): - prepareToCleanUpMoneyRequest - getNavigationUrlOnMoneyRequestDelete - cleanUpMoneyRequest - getCleanUpTransactionThreadReportOnyxData - deleteMoneyRequest Update consumer imports in 9 files (Search.ts, MergeTransaction.ts, MoneyRequestReceiptView.tsx, useDeleteTransactions.ts, PureReportActionItem.tsx, ReportDetailsPage.tsx, Split.ts, Duplicate.ts, TrackExpense.ts). Move tests to tests/actions/IOUTest/DeleteMoneyRequestTest.ts. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
- Fix missed consumer imports (MoneyReportHeader.tsx, TrackExpense.ts) - Remove unused imports from index.ts (cloneDeep, getLastVisibleAction, getLastVisibleMessage, getReportActionMessage, canUserPerformWriteActionReportUtils) - Remove unused imports from IOUTest.ts and DeleteMoneyRequestTest.ts - Run prettier Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Add missing ReportActions type import - Remove unused buildOptimisticIOUReportAction import - Add ReportActions type assertion on Object.entries() calls - Add ReportAction type assertion on callback parameters Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
@parasharrajat 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] |
Contributor
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep them coming! ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
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". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Explanation of Change
Extract 5 delete/cleanup functions from
src/libs/actions/IOU/index.tsinto a newsrc/libs/actions/IOU/DeleteMoneyRequest.tsmodule:prepareToCleanUpMoneyRequestgetNavigationUrlOnMoneyRequestDeletecleanUpMoneyRequestgetCleanUpTransactionThreadReportOnyxDatadeleteMoneyRequestMove corresponding tests to
tests/actions/IOUTest/DeleteMoneyRequestTest.ts. Update 9 consumer file imports accordingly.Fixed Issues
$ #72804
PROPOSAL:
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, 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.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.