Conversation
|
@Pujan92 would you mind reviewing this one please? |
|
Yes @JS00001 , I will do it. |
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
PR doesn’t need product input as a performance PR. Unassigning and unsubscribing myself. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
The project runs react compiler auto-memoizes useMemo/useCallback/React.memo. All the manual useCallback additions (confirmApproval, renderItem, renderSeparator) and useMemo for buttonMaxWidth are already handled by the compiler, they add noise without benefit. |
src/components/ReportActionItem/MoneyRequestReportPreview/MoneyRequestReportPreviewContent.tsx
Outdated
Show resolved
Hide resolved
|
Going to merge through the android failures, its failed ci 4 times in a row, and its unrelated. |
|
@JS00001 looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
🚧 @JS00001 has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ 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/JS00001 in version: 9.3.42-0 🚀
Bundle Size Analysis (Sentry): |

Explanation of Change
Optimizes MoneyRequestReportPreviewContent, reducing the total time by 28%
Splits each action into its own memoized value so that it doesnt have to be re-built when other actions' dependencies change around it.
Memoized renderItem and renderSeparator to prevent these from changing on every render.
Fixed Issues
$ #77175
Tests
N/A
Offline tests
N/A
QA Steps
N/A
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))npm run compress-svg)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