[BATCH 2] Migrate Navigation usage, part 2#91718
Conversation
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.
|
c1a3ad3 to
d9a8d4f
Compare
…oneur/transition-tracker-batch-2-part-2
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 667f834b68
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid.movAndroid: mWeb Chromeandroid-mweb.moviOS: HybridAppios.moviOS: mWeb Safariios-mweb.movMacOS: Chrome / Safari1.mov2.mov3.mov |
|
PR doesn’t need product input as a refactor PR. Unassigning and unsubscribing myself. |
|
on my list today |
| }); | ||
|
|
||
| InteractionManager.runAfterInteractions(() => removeDraftTransaction(CONST.IOU.OPTIMISTIC_TRANSACTION_ID)); | ||
| TransitionTracker.runAfterTransitions({callback: () => removeDraftTransaction(CONST.IOU.OPTIMISTIC_TRANSACTION_ID), waitForUpcomingTransition: true}); |
There was a problem hiding this comment.
In splitBill and splitBillAndOpenReport, the removeDraftTransaction is correctly conditional on shouldHandleNavigation. Should we follow the same conditional pattern as splitBill/splitBillAndOpenReport for consistency?
There was a problem hiding this comment.
Yes, that makes sense, thanks 👍
daledah
left a comment
There was a problem hiding this comment.
Just one minor comment. The rest LGTM.
|
🚧 @roryabraham has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/roryabraham in version: 9.4.5-0 🚀
Bundle Size Analysis (Sentry): |
Help site review — no changes requiredI reviewed the changes in this PR against the help site articles under Why: This is a purely internal code refactor. It migrates There are no user-facing changes that the help site documents:
The affected files ( Since no help site changes are needed, I did not create a draft docs PR. @collectioneur, please confirm you agree no help site updates are needed here. If you believe a specific article should change, let me know which behavior/article and I'll create the draft PR. |
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.4.5-6 🚀
|
Explanation of Change
Migrates
InteractionManager.runAfterInteractions()toTransitionTrackerorafterTransitioncallbacks in 14 files:StatusPage,DynamicVerifyPage,Debug pages,RightModalNavigator,AddExistingExpenseFooter,DeleteMoneyRequest,PerDiem,Split,SendInvoice,SplitTransactionUpdate, andNetSuitecustom field pages.Where possible, the
InteractionManagerwrapper is replaced with theafterTransitionoption on Navigation methods (goBack,dismissToSuperWideRHP); otherwiseTransitionTracker.runAfterTransitions()is used directly. Additionally, in some instances, InteractionManager was removed entirely where it was no longer needed; manual testing confirmed that this removal introduces no breaking changes.StatusPageis significantly simplified by removing the manualMapsBackToPreviousScreenTaskref.Fixed Issues
$ #71913
$ #83062
Tests
Test 1 -
StatusPageTest 2 - Debug page
Precondition: Debug mode is enabled
Test 3 - AddExistingExpenseFooter
Offline tests
N/A
QA Steps
Same as tests
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
Test 1:
1_test.mov
Test 2:
2_test.mov
Test 3:
3_test.mov