[HOLD] Create a useResponsiveLayout hook#31476
Conversation
|
@rayane-djouah can you fix conflict and complete the checklist? additionally it would be great if you could explain why the first PR is closed. |
|
I'm OOO for now, I will follow up in the evening. |
|
@getusha sorry for the delay, I was OOO in this period |
|
Updated @getusha |
|
@rayane-djouah i am seeing a ton of usage from
|
BUG 1: Unable to open context menu
Screen.Recording.2023-12-04.at.1.12.55.PM.mov |
BUG 2: Emoji picker not opening from mini context menuScreen.Recording.2023-12-04.at.1.12.55.PM.mov |
|
BUG 4: Unable to open any kind of popover (Same root cause as BUG 2) Screen.Recording.2023-12-04.at.1.21.43.PM.mov |
|
@rayane-djouah the progress is really slow, is there anything we should know? |
|
Sorry for the delay @getusha, I was passing exams. I'm updating today. |
…s with useResponsiveLayout hook
|
Conflicts resolved |
|
@rayane-djouah Lint is failing lets fix it. |
|
@getusha lint error is fixed now |
|
Anything I can do to help here? If you think it would be helpful we can split this into multiple PRs so that there's fewer conflicts and a lower chance of regressions in each PR |
|
@rayane-djouah i think we should also rename props named |
In that case we should leave it, wdyt @roryabraham? |
|
I think for the scope of those PR we can ignore making any changes to Does that sound good? |
|
I agree with @roryabraham, @rayane-djouah lets replace the usages of |
|
Mentioned this above, but I'd advise that we split this up into a few smaller PRs to make it easier to get stuff over the finish line and reduce the likelihood of conflicts or regressions |
|
Based on the changes in this PR, we could break it down into several PRs as follows:
However, I'm not sure if this approach would help. @roryabraham @rayane-djouah What are your thoughts on it? |
|
yeah, maybe also a separate PR to migrate any remaining uses of |
|
Looks like we've got two new PRs that this one will HOLD on. @rayane-djouah can you please put the |



Details
Related Eslint rule PR: Expensify/eslint-config-expensify#82
Fixed Issues
$ #30528
PROPOSAL: #30528 (comment)
Tests
Needs to be tested on web/mweb:
Offline tests
N/A
QA Steps
Same as above tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.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 so 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
N/A (Only testable on Web and mWeb)
Android: mWeb Chrome
mWeb.Chrome.Recording.2023-11-29.225403.mp4
iOS: Native
N/A (Only testable on Web and mWeb)
iOS: mWeb Safari
mWeb.Safari.Recording.2023-11-29.224722.mp4
MacOS: Chrome / Safari
Recording.2023-11-17.092409.mp4
MacOS: Desktop
N/A (Only testable on Web and mWeb)