fix: Create expense from QAB after split expense, Confirm page loads infinitely#87695
Conversation
|
@ZhenjaHorbach 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] |
JmillsExpensify
left a comment
There was a problem hiding this comment.
Testing steps in line with product spec. LGTM
Reviewer Checklist
Screenshots/VideosAndroid: HybridApp2026-04-15.12.40.39.movAndroid: mWeb Chrome2026-04-15.12.32.49.moviOS: HybridApp2026-04-15.12.40.39.moviOS: mWeb Safari2026-04-15.12.32.49.movMacOS: Chrome / Safari2026-04-15.12.22.09.mov |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 @flodnv 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/flodnv in version: 9.3.60-0 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes are required for this PR. The changes are internal bug fixes (preventing split from corrupting Quick Action Button state, and fixing a stale tab selection race condition in |
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.3.60-22 🚀
|
Explanation of Change
Fix 1: Prevent split from corrupting QAB state
When saving a split via "More > Split > Save",
updateSplitTransactionscallsgetMoneyRequestInformationwithisSplitExpense: true, but this flag wasn't forwarded asisOneOnOneSplittobuildOnyxDataForMoneyRequest. This caused theif (!isOneOnOneSplit)guard to pass, overwritingNVP_QUICK_ACTION_GLOBAL_CREATEwith the split child's context. The other two split paths (completeSplitBill,createSplitsAndOnyxData) already passisOneOnOneSplit: truecorrectly — this completes the missing third call site.Fix 2: Prevent
useFocusEffectfrom overwriting with staleselectedTabAfter the corrupted QAB navigates to the MANUAL tab,
selectedTabin Onyx is still stale (e.g."scan").onTabSelectedfires correctly with"manual", butuseFocusEffectfires immediately after withtransactionRequestTypestill derived from the staleselectedTab, overwriting the correct type. A ref tracks whenonTabSelectedhas already handled initialization, and theuseFocusEffectskips untiltransactionRequestTypecatches up.Fixed Issues
$ #85932
PROPOSAL: #85932 (comment)
Tests
Offline tests
Same as tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
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-Native.mp4
Android: mWeb Chrome
Android-mWeb.mp4
iOS: Native
iOS-Native.mp4
iOS: mWeb Safari
iOS-Safari.mp4
MacOS: Chrome / Safari
Mac-Chrome.mp4