feat: Reject Expense in NewDot#62787
Merged
MariaHCD merged 227 commits intoExpensify:mainfrom Sep 12, 2025
Merged
Conversation
Closed
8 tasks
8 tasks
8 tasks
8 tasks
8 tasks
8 tasks
8 tasks
8 tasks
This was referenced Sep 15, 2025
8 tasks
16 tasks
This was referenced Sep 15, 2025
Closed
This was referenced Sep 15, 2025
8 tasks
8 tasks
16 tasks
This was referenced Sep 16, 2025
Contributor
|
🚀 Deployed to production by https://github.com/Beamanator in version: 9.2.14-7 🚀
|
This was referenced Oct 12, 2025
8 tasks
8 tasks
situchan
reviewed
Nov 3, 2025
Comment on lines
+12135
to
+12140
| // For reports with single expense: Delete the report | ||
| optimisticData.push({ | ||
| onyxMethod: Onyx.METHOD.SET, | ||
| key: `${ONYXKEYS.COLLECTION.REPORT}${reportID}`, | ||
| value: null, | ||
| }); |
Contributor
There was a problem hiding this comment.
When reject single expense, we should also unlink report from transaction, as well as deleting the report optimistically.
More context: #72571 (comment)
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
declinereject the expenses and the submitter can then resolve the rejected expenses.Rejectaction is also available for IOU chats, without the Mark as resolve action.Fixed Issues
$ #52049
PROPOSAL:
Tests
A. Hold vs Reject Modal
Precondition:
nvp_dismissedRejectUseExplanationis not set in the account.Test:
Moremenu and selectReject.nvp_dismissedRejectUseExplanationset to true.B. Delayed Submission Workspace – Multiple expenses – Existing draft report available
Precondition:
Test:
a.
rejected this expenseis the first message added to the report.b. rejected reason as a comment is the next message
C. Delayed Submission Workspace – Multiple expenses – No existing draft report
Precondition:
Test:
D. Instant Submission Workspace – Single expense and multiple expenses
Precondition:
Test 1: Multiple expenses
Test 2: Single expense
E. IOU – Reject option, no Mark as Resolved
Precondition:
Test:
F. Mark as Resolved – Violation
Precondition:
Test:
Mark as resolvedbutton is the primary action.marked the rejection reason as resolved.Offline tests
Offline Tests
A. Hold vs Reject Modal
Precondition:
nvp_dismissedRejectUseExplanationis not set in the account.Test:
Moremenu and selectReject.nvp_dismissedRejectUseExplanationis set optimistically to true.B. Delayed Submission Workspace – Multiple expenses – Existing draft report available
Precondition:
Test:
a.
rejected this expenseis the first message added to the report.b. Rejectd reason as a comment is the next message.
c. Moved to report is the last system message.
Need to verify from Product here
C. Delayed Submission Workspace – Multiple expenses – No existing draft report
Precondition:
Test:
They are the same as in test B.
D. Instant Submission Workspace – Single expense and multiple expenses, and IOU test
Precondition:
Test 1: Multiple expenses
QA Steps
Same as tests.
// TODO: These must be filled out, or the issue title must include "[No QA]."
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))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.Screenshots/Videos
Android: HybridApp
android-rejection.mov
Android: mWeb Chrome
mweb-chrome-rejection.mov
iOS: HybridApp
iOS: mWeb Safari
mweb-safari-rejection.mov
MacOS: Chrome / Safari
Web Hold vs Reject Modal
Web Reject with Delayed Submission for Single Expense Report
web-single-expense-rejection.mov
Web Reject with delayed submission for multiple expenses report and other existing report
web-multiple-expense-rejection.mov
Web Reject with delayed submission for multiple expenses report without another existing report
web-existing-report-rejection.mov
Web Reject Instant Submission
web-instant-rejection.mov
MacOS: Desktop
desktop-rejection.mov
Old Videos
Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS and mWeb Safari Rejectd Instant Submission
ios-mweb-safari-declined-instant-submisison.mov
iOS and mWeb Safari Rejectd Delayed Submission
ios-mweb-safari-decline-delayed-submisison_8E0lGIfm.mp4
iOS: mWeb Safari
MacOS: Chrome / Safari
Web Hold vs Reject Modal
web-hold-decline-modal.mov
Web Reject IOU
https://github.com/user-attachments/assets/7a257211-1677-4b50-b869-6163929efc65
Web Reject with Delayed Submission for Single Expense Report
web-decline-delayed-submission-single-expense.mov
Web Reject with delayed submission for multiple expenses report and other existing report
web-decline-delayed-submission-multiple-expense-with-existing-report.mov
Web Reject with delayed submission for multiple expenses report without another existing report
web-decline-delayed-submission-multiple-expense-no-existing-report.mov
Web Reject Instant Submission
web-decline-instant-submission_5JgmlPlb.mp4
MacOS: Desktop
Desktop Approver Reject
desktop-approver-decline_iljI2BEB.mp4
Desktop Submitter Mark as Resolved
desktop-submitter-mark-as-resolved_VI0l1KPd.mp4