[No QA] Replace usages of useWindowDimensions with useResponsiveLayout hook in pages folder#43961
Conversation
…h-useResponsiveLayout-in-pages-folder
…h-useResponsiveLayout-in-pages-folder
…h-useResponsiveLayout-in-pages-folder
|
@arosiclair 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] |
|
@getusha - PR ready for review |
…h-useResponsiveLayout-in-pages-folder
|
I will start testing this today |
|
Screen.Recording.2024-07-01.at.2.50.21.in.the.afternoon.movStaging: Screen.Recording.2024-07-01.at.2.51.41.in.the.afternoon.mov |
…h-useResponsiveLayout-in-pages-folder
…h-useResponsiveLayout-in-pages-folder
…h-useResponsiveLayout-in-pages-folder
|
@getusha bugs 1 & 2 are not reproducible when we disable react strict mode, they will not be reproducible on production builds. When react strict mode is enabled all components render twice on dev. |
|
Updated cc @getusha |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-07-24.at.11.16.22.in.the.morning.movAndroid: mWeb ChromeScreen.Recording.2024-07-24.at.10.48.18.in.the.morning.moviOS: NativeScreen.Recording.2024-07-24.at.11.29.10.in.the.morning.moviOS: mWeb SafariScreen.Recording.2024-07-24.at.10.55.35.in.the.morning.movMacOS: Chrome / SafariScreen.Recording.2024-07-22.at.7.51.54.in.the.morning.movMacOS: DesktopScreen.Recording.2024-07-24.at.11.02.43.in.the.morning.mov |
|
Screen.Recording.2024-07-22.at.8.18.52.in.the.morning.mov |
@getusha - Unable to reproduce. Are you able to reproduce this consistently? Screen.Recording.2024-07-22.at.1.59.16.PM.mov |
…h-useResponsiveLayout-in-pages-folder
…h-useResponsiveLayout-in-pages-folder
Was able to reproduce on staging probably an issue from my emulator. |
|
@rayane-djouah Isn't it better to mark this as |
Agree, done! |
…h-useResponsiveLayout-in-pages-folder
|
Fixed the conflicts |
|
@rayane-djouah fresh conflicts |
…h-useResponsiveLayout-in-pages-folder
…h-useResponsiveLayout-in-pages-folder
|
Updated |
|
✋ 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/roryabraham in version: 9.0.13-0 🚀
|
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.0.13-4 🚀
|
| </View> | ||
| )} | ||
| {!shouldHideComposer && (!!shouldShowComposeInput || !isSmallScreenWidth) && ( | ||
| {!shouldHideComposer && (!!shouldShowComposeInput || !shouldUseNarrowLayout) && ( |
There was a problem hiding this comment.
Coming from this issue #73444, it seems that changing isSmallScreenWidth to shouldUseNarrowLayout caused the compose box to disappear on the web for the report screen RHP.

Details
#30528 (comment)
Fixed Issues
$ #30528
Tests
Do general regression tests and focus on layouts; test all the app's most important features and verify there are no layout breaks.
Offline tests
N/A
QA Steps
Do general regression tests and focus on layouts; test all the app's most important features and verify there are no layout breaks.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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.2024-06-21.at.12.16.05.PM.mov
Android: mWeb Chrome
Screen.Recording.2024-06-21.at.12.07.17.PM.mov
iOS: Native
Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-06-21.at.12.01.37.mp4
iOS: mWeb Safari
Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-06-21.at.03.19.42.mp4
MacOS: Chrome / Safari
Screen.Recording.2024-06-21.at.2.38.18.AM.mp4
MacOS: Desktop
Screen.Recording.2024-06-21.at.2.45.42.AM.mov