-
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
Fix OnyxTab Navigator performance issues on web #33841
Fix OnyxTab Navigator performance issues on web #33841
Conversation
@shubham1206agra 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] |
@kacper-mikolajczak Can you profile this PR so we can know the performance improvement here? |
Definitely @shubham1206agra! SetupAs a test I went through each tab like this: transitions-test.movResultsHere are the results of profiling that on Web. Before (profiled prod at
|
@mountiny Can you start an adhoc build to test this branch on physical device? And @mananjadhav can you check this PR in physical iphone? |
Making the build here https://github.com/Expensify/App/actions/runs/7411340404 |
This comment has been minimized.
This comment has been minimized.
1 similar comment
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
Hi folks @mountiny @shubham1206agra 👋 What is the status of the review for this one? Thanks! 👍 |
@kacper-mikolajczak You may want to also request review from @mananjadhav as he was the original reviewer. |
Sure thing! I cannot add reviewer myself but I guess @mananjadhav already knows as we pinged him 😄 |
@mananjadhav whats your ETA for this review? |
I'll have them reviewed by today end of day and finish the checklist by tomorrow. |
@kacper-mikolajczak Can you please resolve the conflicts? |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid-tabs-animation.movAndroid: mWeb Chromemweb-chrome-tabs-animation.movmweb-chrome-tabs-animation-2.moviOS: Nativeios-tabs-animation.moviOS: mWeb Safarimweb-safari-tabs-animation.movMacOS: Chrome / Safariweb-tabs-animation.movMacOS: Desktopdesktop-tabs-animation_PJLaMwTQ.mp4 |
@mountiny I couldn't find the adhoc build for iOS. I did test locally but the camera keeps loading. May be if you can try at your end locally or help with the build and I can try on my physical device.? |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
iOS seems to work well for me. and yes Chelsea is loosing 😢 |
@kacper-mikolajczak merging main should fix the reassure test failure |
@kacper-mikolajczak I am currently facing a problem with a real Android device. Steps:
Expected - Camera is working |
NVM, this is also repro in prod. But maybe this can be fixed here. |
@mountiny @shubham1206agra Conflicts resolved ✅ The Blues did not win tho, let's hope they can come back in the second leg ⚽
If the bug did not originate here, let's tackle it in separate issue 👍 |
hopefully 🙏 @shubham1206agra @mananjadhav could we wrap this up? |
Its good to go from my side. Waiting for @mananjadhav to approve the request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested again, except iOS.
✋ 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/stitesExpensify in version: 1.4.24-4 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.24-8 🚀
|
Details
This PR tries to fix performance isseus with
OnyxTabNavigator
(and underlyingMaterialTopTab
) on web by disabling animations. The root cause lies in high intensity of calculations going on on each transition between tabs and in a wayAnimated
works on web.The navigation flow is bound to be changed in near future, that's why PR aims to be as concised as it can (without performing deeper changes to the animation etc.)
More details can be found in the original PR and in the quickfix.
Fixed Issues
$ #31190
PROPOSAL: #31190 (comment)
Tests
FAB
->RequestMoney
Manual
and check if it is rendered correctlyScan
and check if it is rendered correctlyDistance
and check if it is rendered correctlyOffline tests
QA Steps
N/A
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
Android: mWeb Chrome
mandroid.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
mios.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4