Repository navigation
Refactor resetDraftTransactionsCustomUnit to pass transaction - #86036
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@ikevin127 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] |
|
@danieldoglas 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] |
|
PR doesn’t need product input as a refactor PR. Unassigning and unsubscribing myself. |
Reviewer Checklist
Screenshots/VideosScreen.Recording.2026-03-20.at.17.35.37.mov |
There was a problem hiding this comment.
🟢 LGTM
The PR correctly addresses the Onyx anti-pattern issue and follows the required architecture pattern - the refactoring improves testability and maintainability.
| Category | Status | Notes |
|---|---|---|
| Onyx State Management | ✅ APPROVED | Properly parameterized, no direct Onyx.connect |
| Type Safety | ✅ GOOD | Correct Onyx types, no casting |
| Code Quality | ✅ GOOD | Dependency array preserved |
| Translation | ✅ N/A | No UI text changes |
| Responsiveness | ✅ N/A | Logic only |
| Performance | ✅ GOOD | Proper effect dependencies |
| Reusability | ✅ IMPROVED | More pure, more testable |
| Documentation | ✅ GOOD | Comments explain the "why" |
❌ Typecheck workflow not related to PRs changes.
|
cc: @tgolen |
|
Looks like the prettier test is failing |
|
Done @tgolen |
|
Oof, now it has conflicts 😊 |
|
🚧 @tgolen 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. |
|
🚀 Deployed to staging by https://github.com/tgolen in version: 9.3.51-0 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes are required. This PR is a pure internal code refactor:
There are no user-facing changes — no new features, no changes to UI labels/buttons/navigation, and no changes to terminology or user flows. The |
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.3.51-10 🚀
|
Explanation of Change
Fixed Issues
$ #66510
PROPOSAL:
Tests
Offline tests
QA Steps
Same as tests
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