Adjust adaptStateIfNecessary to push a split navigator without a sidebar screen#57110
Conversation
…en WS chat is accessed from settings
|
@abdulrahuman5196 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] |
|
Follow up to the navigation PR so adding @shubham1206agra for a review |
|
@shubham1206agra will you be able to get to this one today or tomorrow? thanks! |
@mountiny Yes |
Screen.Recording.2025-02-21.at.7.08.33.PM.movBUG: Going forward and back pops entire history. Please check this on main too. |
|
I checked and it also occurs on staging, but it's happening only when we're resizing the window, isn't it? |
Yes |
|
Taking into account that screen resizing is a minor case, can we go ahead with this, especially since it happens on the main branch anyway? I'll be OOO next week and I wouldn't like to hold up this PR |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-02-21.at.8.28.57.PM.movAndroid: mWeb ChromeScreen.Recording.2025-02-21.at.7.53.52.PM.moviOS: NativeScreen.Recording.2025-02-21.at.8.24.03.PM.moviOS: mWeb SafariScreen.Recording.2025-02-21.at.7.05.14.PM.movMacOS: Chrome / SafariScreen.Recording.2025-02-21.at.7.01.41.PM.movMacOS: DesktopScreen.Recording.2025-02-21.at.7.59.16.PM.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. |
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.1.4-0 🚀
|
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 9.1.4-4 🚀
|
Explanation of Change
This PR adjusts the
adaptStateIfNecessaryfunction to pushing split navigators without a sidebar screen. Thanks to that when we navigate to split navigator, sidebar screen of this split is not pushed to the navigation stack.For instance:
Without this change, when we navigated to the report screen from the search settings or workspace, the inbox page was also pushed to the stack and that page was visible when returning from the report.
Now in this case we navigate directly to the report screen.
Fixed Issues
$ #56812
$ #56801
PROPOSAL:
Tests
Offline tests
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))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
Screen.Recording.2025-02-19.at.15.43.26.mov
Android: mWeb Chrome
Screen.Recording.2025-02-19.at.15.46.21.mov
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2025-02-19.at.16.13.50.mov
MacOS: Desktop
Screen.Recording.2025-02-19.at.16.00.09.mov