Fix: Approvers Lose Ability to Reject Expenses When Acting as Vacation Delegates or After Being Removed From Approval Workflow#81801
Conversation
|
@mkhutornyi 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] |
| // eslint-disable-next-line @typescript-eslint/no-deprecated | ||
| return getPlaidBalanceFailureMessage(translateLocal, parentReportAction); | ||
| } | ||
| // eslint-disable-next-line @typescript-eslint/no-deprecated |
There was a problem hiding this comment.
❌ CONSISTENCY-5 (docs)
ESLint rule disable lacks a justification comment explaining why translateLocal is still being used here.
Suggested fix:
Add a comment above the eslint-disable explaining why the deprecated translateLocal function is still necessary in this context. For example:
// translateLocal is still used here because this function hasn't been migrated yet
// eslint-disable-next-line @typescript-eslint/no-deprecated
const parentReportActionBasedName = computeReportNameBasedOnReportAction(translateLocal, parentReportAction, report, reportPolicy, parentReport);Please rate this suggestion with 👍 or 👎 to help us improve! Reactions are used to monitor reviewer efficiency.
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@annaweber830 last commit is bad one. Maybe wrongly fixed merge conflict? |
|
@annaweber830 can you push changes? No files changed at the moment. |
|
Lint error! |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safaricase 1: web1.movcase 2: web2.mov |
|
@annaweber830 please merge main |
jasperhuangg
left a comment
There was a problem hiding this comment.
@heyjennahay off to you for the product review, thanks 🙇
|
@heyjennahay friendly bump on this product review! cc @Expensify/product-pr if anyone has any spare cycles and can move this along |
heyjennahay
left a comment
There was a problem hiding this comment.
Thanks for the bump @jasperhuangg
Produce change LGTM
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 @jasperhuangg 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/jasperhuangg in version: 9.3.23-2 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.3.23-3 🚀
|
Explanation of Change
Fix: Approvers Lose Ability to Reject Expenses When Acting as Vacation Delegates or After Being Removed From Approval Workflow
Fixed Issues
$ #79599
PROPOSAL: #79599 (comment)
Tests
Scenario 1: Approver Removed From Workflow
Preconditions:
Approvals enabled
Submissiomn set to Manual
Initial approval workflow: Submitter A → Approver A
Scenario 2: Vacation Delegate Flow
Offline tests
Same as test
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Scenario 1: Approver Removed From Workflow
Preconditions:
Approvals enabled
Submissiomn set to Manual
Initial approval workflow: Submitter A → Approver A
Scenario 2: Vacation Delegate Flow
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.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2026-02-08.at.7.58.48.AM.mp4
Screen.Recording.2026-02-08.at.8.08.33.AM.mp4