Part 14 - Set delegateAccountID on hold/unhold/reject optimistic report actions - #97227
Conversation
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: dab2f29c97
ℹ️ About Codex in GitHub
Your team has set up Codex to 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 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
|
@MelvinBot review |
Review — LGTM ✅Clean, well-scoped change. It adds a required Verified on this branch:
Re: the Codex comment on the reject callers — I confirmed that concern is already addressed on this branch. One note on verification: the delegate-specific behavior can't be exercised by single-account automated testing (it needs a copilot / act-as-delegate setup). That path is covered at the unit level by the new builder tests in No blocking issues found. |
|
@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] |
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Reviewer Checklist
Screenshots/VideosScreen.Recording.2026-08-11.at.15.30.59.mov |
|
🚧 madmax330 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! 🧪🧪
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Explanation of Change
Pre-existing gap (not from PR 13): hold/unhold/reject optimistic builders never set
delegateAccountID, so while acting as a delegate the history showed the original account with no delegate indicator.This PR:
delegateAccountIDto those builders (and report-level reject)putOnHold/unholdRequest/changeMoneyRequestHoldStatus/ reject helpers, plus related paths (duplicate resolve, delete report, move expense)useDelegateAccountID()Fixed Issues
$ #66425
PROPOSAL:
Tests
Setup: Account B is vacation delegate for Account A. Sign in as B → switch to “Copilot / act as A”.
Hold / unhold (main bug)
Reject
Related paths (smoke)
Baseline
Offline tests
QA Steps
Same as tests
Verify that no errors appear in the JS console
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
Monosnap.screencast.2026-08-07.10-26-31.mp4