-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HOLD] Create a useResponsiveLayout hook #31476
[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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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)