Fix/63635 onyx lift money request#65023
Conversation
|
@hoangzinh 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] |
|
@Pujan92 do you mind sharing some perf measurement? |
|
Report with ~100 messages and 4 Transactions |
|
It doesn't seem to be improved |
|
@hoangzinh I added more transactions and below is the result now, I think it is clearer when we add more report previews and transactions. |
|
@adamgrzybowski @TMisiukiewicz PR is ready for review. I haven't made a change for the transaction by passing all |
|
@Pujan92 I am the right Adam here? Or maybe you wanted to ping the one from Callstack? |
|
Oops, sorry. It needs to be @adhorodyski |
|
Let me know your thoughts on my feedbacks @Pujan92 |
|
@Pujan92 testing your changes now on a HT export from Jason 🤞🏻 |
Run 1: Run 2: |
|
@adhorodyski, do we have any concern about re-rendering? Or because rendering time is reduced, this PR is good to go? |
|
It's a net gain so I think we're good to go. |
|
Thanks @adhorodyski |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-07-04.at.21.26.37.movAndroid: mWeb ChromeScreen.Recording.2025-07-04.at.21.24.06.android.chrome.moviOS: HybridAppScreen.Recording.2025-07-04.at.21.13.57.ios.moviOS: mWeb SafariScreen.Recording.2025-07-04.at.21.10.10.ios.safari.movMacOS: Chrome / SafariScreen.Recording.2025-07-04.at.21.04.37.web.movMacOS: DesktopScreen.Recording.2025-07-04.at.21.16.00.desktop.mov |
|
@Pujan92 do you think we should preload |
Hmm, let me include that in part 2 PR if you are ok. |
|
That plan works to me. I will try to complete review checklist today |
|
@Pujan92 can you complete recording for desktop in meanwhile? |
|
@luacmartins over to you |
|
@mjasikowski Actually, @luacmartins has raised a concern as I have asked them to confirm but later in this comment I clarified that it doesn't seem to be the issue and it remains/behaves the same how it was earlier. |
|
Let's wait for Carlos, I'll ping him directly on DM |
|
✋ 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/luacmartins in version: 9.1.78-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.1.78-4 🚀
|
Explanation of Change
Part 1 - Improve ReportList performance by lifting Onyx connections from the below components to the list level.
MoneyRequestPreview: Component doesn't exist nowMoneyRequestReportPreview: removed usage of useOnyx for chatReport, iouReport, invoiceReceiverPolicy, invoiceReceiverPersonalDetailEmptyMoneyRequestReportPreview.tsx: no onyx connectionMoneyRequestReportPreviewContent.tsx: I think we need onyx connection for reportActions hereTransactionPreview: removed usage of useOnyx for chatReport, sessionAccountID, personalDetailsList, walletTermsErrorsMoneyRequestAction.tsx: removed usage of useOnyx for chatReport, iouReportFixed Issues
$ #63635
PROPOSAL:
Tests
Same as QA
Offline tests
Same as QA
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Test 1:
Test 2:
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)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
an2.webm
Android: mWeb Chrome
an1.webm
iOS: Native
Simulator.Screen.Recording.-.iPhone.15.Pro.-.2025-07-02.at.17.41.37.mp4
iOS: mWeb Safari
Simulator.Screen.Recording.-.iPhone.15.Pro.-.2025-07-01.at.20.12.12.mp4
MacOS: Chrome / Safari
Screen.Recording.2025-06-27.at.11.49.20.mov
MacOS: Desktop
Screen.Recording.2025-07-04.at.17.32.33.mov