-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
perf: improve chat switch performance #32336
perf: improve chat switch performance #32336
Conversation
src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.js
Outdated
Show resolved
Hide resolved
…y-App into hur/perf/chat-switch
@allroundexperts Following are the files with diff that is expected to be removed after this PR is merged, because that'll be duplicated then. src/components/AnonymousReportFooter.tsx |
@allroundexperts All good now 👍 |
Conflicts again 😢 |
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
@allroundexperts resolved conflicts 👍 |
@mountiny resolved conflicts, can be reviewed now |
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.
Thanks @hurali97 @jbroma @allroundexperts lets be on a look out for regressions over the weekend, I feel like there could be some things that could have been missed during testing
) : ( | ||
<ReportFooter isReportReadyForDisplay={false} /> | ||
)} | ||
) : null} |
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.
What will this change accomplish? Will this mean that the Composer is not going to be visible when the report screen is loading?
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
[CP Staging] Revert "Merge pull request #32336 from callstack-internal/hur/perf/ch…
@hurali97 @allroundexperts we had to revert the PR unfortunately, we can collect the issues reported and address them in the v2 |
🚀 Deployed to production by https://github.com/luacmartins in version: 1.4.50-5 🚀
|
🚀 Deployed to staging by https://github.com/mountiny in version: 1.4.51-0 🚀
|
Merge pull request Expensify#32336 from callstack-internal/hur/perf/chat-switch perf: improve chat switch performance
🚀 Deployed to production by https://github.com/luacmartins in version: 1.4.51-3 🚀
|
Details
Chat switching is one of the areas that's complicated and with this PR, we aim to fix it partially. Which means we are able to improve the user experience with this PR. To summarise, on a mid-ranged device on main branch, we get around 7600 milliseconds and with these improvements, we get around 4100 milliseconds.
Before:
main-branch.mov
After:
improvements-branch.mov
Fixed Issues
$ #32793
PROPOSAL: #32793
Tests
Manual Test:
Open any chat
The transition should feel smooth as compared to main
Press back button
The transition should feel smooth as compared to main
Verify that no errors appear in the JS console
Offline tests
QA Steps
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(themeColors.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.mov
Android: mWeb Chrome
android-web-mobile.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios-web-mobile.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov