Conversation
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.
|
|
🚧 @rlinoz has triggered a test Expensify/App build. You can view the workflow run here. |
This comment has been minimized.
This comment has been minimized.
|
🚧 @rlinoz 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! 🧪🧪
|
There was a problem hiding this comment.
Thanks @rlinoz! Left couple of (mostly tiny) comments.
| }, [sortedTransactions, currentGroupBy, report?.reportID, report?.currency, localeCompare, shouldShowGroupedTransactions]); | ||
| }, [sortedTransactions, currentGroupBy, report, localeCompare, shouldShowGroupedTransactions]); |
There was a problem hiding this comment.
Original code used entire report but defined only a few object properties as dependency. Nice catch, but could've that specification been done on purpose?
There was a problem hiding this comment.
oh I changed this because lint was complaining....not sure I will investiagte.
There was a problem hiding this comment.
Rolled this back, this is the explanation 1431f58#diff-fdae540f324f25f7a8b7f7c44ebf5eb8681a7cef16b937fd24ef2546618561baR250-R302 not sure why we removed that comment though.
| /> | ||
| {shouldMountPreview && ( | ||
| <ReceiptPreview | ||
| source={previewSource} | ||
| hovered={hovered} | ||
| isEReceipt={!!isEReceipt} | ||
| transactionItem={transactionItem} | ||
| /> |
There was a problem hiding this comment.
What would happen if we simply use pure hovered instead of adding shouldMountPreview?
There was a problem hiding this comment.
On re-hover we would have to mount the component again, not a huge deal though. I don't mind changing if you think the extra logic is not worth it.
src/components/MoneyRequestReportView/MoneyRequestReportTransactionList.tsx
Show resolved
Hide resolved
|
@ChavdaSachin 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] |
|
Ignoring lint for now, I would like to not introduce a change regarding |
Explanation of Change
A few updates on how we handle the
MoneyRequestReportTransactionItemso we have less re-renders or items render faster.Fixed Issues
$ #82717
PROPOSAL:
Tests
Offline tests
QA Steps
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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari