Implement the logic to handle tab navigators using dynamic routes#85663
Conversation
…to dynamic routes handling
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.
|
|
@collectioneur Could you add tests for the 2 files that were just added? |
|
@collectioneur Could you add test steps or point out any routes impacted by this change, and record them? |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-03-20.at.10.54.32.mp4Android: mWeb ChromeScreen.Recording.2026-03-20.at.10.55.06.mp4iOS: HybridAppScreen.Recording.2026-03-20.at.10.48.21.mp4iOS: mWeb SafariScreen.Recording.2026-03-20.at.10.49.02.mp4MacOS: Chrome / SafariScreen.Recording.2026-03-20.at.10.19.39.mp4 |
|
Hey @huult! The tests, test steps, and video have been added ✅ |
|
@collectioneur Reassure performance tests failed. Same with https://expensify.slack.com/archives/C01GTK53T8Q/p1774001704205909 |
huult
left a comment
There was a problem hiding this comment.
LGTM!
The performance test failure is not related to this PR.
|
It looks like this issue might be coming from the main branch. Since I only added tests and didn't modify any core code, my changes shouldn't have caused this |
|
🚧 @mjasikowski 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/mjasikowski in version: 9.3.42-0 🚀
Bundle Size Analysis (Sentry): |
|
Hi @collectioneur. QA team failed this PR with the original issues. Step 3 fails: "not individual tab names," and it shows individuals, as we can see in the URL in the video cc @mjasikowski 1774271236137.Grabacio_n_de_pantalla_2026-03-23_a_la_s__9.56.13.mp4 |
|
@IuliiaHerets Sorry for the confusion! That was a typo on my end. I meant that both the parent screen name and the tab name should be in the URL. Based on the video, everything seems to be working exactly as intended 🙂 |
|
@collectioneur, we passed PR in this case |
Explanation of Change
Replace the hardcoded
SCREENS_WITH_ONYX_TAB_NAVIGATORarray with a runtime-generatedSetbuilt by recursively walking the linking config tree. This eliminates manual maintenance of the list and ensures it stays in sync with config changes. Also consistently usefindFocusedRouteWithOnyxTabGuardin dynamic route resolution to prevent drilling into OnyxTabNavigator childrenFixed Issues
$ #83848
$ #85750
Tests
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
MacOS: Chrome / Safari
Screen.Recording.2026-03-20.at.10.56.31.mov