Remove global Onyx reference from createDraftTransactionAndNavigateToParticipantSelector - #97365
Conversation
…rtActions parameter
…gateToParticipantSelector
|
@situchan The PR is ready |
Review👍 This is a clean, correctly-scoped refactor. The global Verified:
Notes (non-blocking)
No changes requested. LGTM pending the usual CI/typecheck. |
|
Codex Review: Didn't find any major issues. 👍 Reviewed commit: ℹ️ 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". |
Regression checkNo regressions found. This refactor is behavior-preserving — every path that previously read the global I specifically stress-tested the spots where a decoupling refactor like this usually breaks: What I checked and why each is safe1. Do callers pass actions for the same reportID the function keys on? Yes.
2. The removed 3. 4. Memo dependency swap. The 5. Coverage of call sites. Only two files call the function (both updated); no missed callers. This is a static review of a pure refactor, so no production/log evidence is needed — the change adds no new runtime behavior, it only relocates where the report actions are read from. The three new unit tests already lock in the found-link, passed-over-Onyx, and |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid.movAndroid: mWeb ChromeiOS: HybridAppios.moviOS: mWeb SafariMacOS: Chrome / Safariweb.mov |
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #66419 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
Explanation of Change
Fixed Issues
$ #66419
PROPOSAL: #66419
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand 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-07-30.at.02.13.43.mov