[Split #94595] Batch D - Remove useOnyx deps from MR headers and preview - #96382
Conversation
… and preview Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
# Conflicts: # src/components/ReportActionItem/MoneyRequestReportPreview/SubmitActionButton.tsx
|
@hoangzinh 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] |
|
On hold - verifying lint checks work correctly |
|
All updated files in this PR are compiled with React Compiler, so I think we can move forward. |
Reviewer Checklist
Screenshots/VideosScreen.Recording.2026-07-22.at.16.04.28.mov |
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 mountiny 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/mountiny in version: 9.4.43-0 🚀
|
|
🤖 I reviewed the changes in this PR against Expensify's help site content under No help site changes are required. This PR is a pure internal refactor — it removes the deprecated 3rd
The change is limited to how selectors are memoized internally. As the PR description states, there is no intended behavior change — no user-facing features, UI labels, tab names, buttons, flows, or copy are affected. Help site articles document product behavior, and none of that behavior changes here, so there is nothing to update. Because no documentation update is needed, I did not create a draft PR. |
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.4.43-1 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
Part of the
useOnyxdependencies-argument removal (#94595), Batch D of the split: Money Request headers, report preview & primary actions. Drops the deprecated 3rduseOnyxargument; selectors kept stable (inline/compiler-memoized). No intended behavior change. The main wrapper still accepts the arg, so this batch is independent.Fixed Issues
$ #95577
PROPOSAL: N/A
Tests
Offline tests
Same, as in Tests section
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same, as in Tests section
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)Avatar, 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.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.mp4
Android: mWeb Chrome
android_web.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
ios_web.mov
MacOS: Chrome / Safari
web.mp4