[No QA] Remove transactionItem as explicit prop from TransactionListItemNarrow and Wide#91164
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@codex review |
|
Codex Review: Didn't find any major issues. 🎉 ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
There was a problem hiding this comment.
Pull request overview
This PR removes the redundant transactionItem prop from TransactionListItemWide and TransactionListItemNarrow, relying on the existing item prop instead, and updates the parent wrapper and local prop types accordingly.
Changes:
- Removed
transactionItemfromTransactionListItemWidePropsand stopped passing it fromTransactionListItem/index.tsx. - Updated
TransactionListItemWideandTransactionListItemNarrowto derivetransactionItemlocally fromitem. - Cleaned up related type imports in
types.ts.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| src/components/Search/SearchList/ListItem/TransactionListItem/types.ts | Removes transactionItem from the shared props type. |
| src/components/Search/SearchList/ListItem/TransactionListItem/TransactionListItemWide.tsx | Derives transactionItem locally from item and removes the prop. |
| src/components/Search/SearchList/ListItem/TransactionListItem/TransactionListItemNarrow.tsx | Derives transactionItem locally from item and removes the prop. |
| src/components/Search/SearchList/ListItem/TransactionListItem/index.tsx | Stops including/passing transactionItem in sharedProps. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Reviewer Checklist
Screenshots/VideosAndroid: HybridApp |
|
🚧 @mountiny 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/mountiny in version: 9.3.79-1 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes are required for this PR. This is a pure internal code refactoring that removes a redundant |
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.3.79-4 🚀
|




Explanation of Change
TransactionListItemWideandTransactionListItemNarrowpreviously receivedtransactionItemas a separate prop alongsideitem, even thoughitemis the same object cast toTransactionListItemType. This PR removes the redundant prop: each component now derivestransactionItemlocally viaitem as unknown as TransactionListItemType. The parent (index.tsx) no longer constructs or passes the prop. The type definitions intypes.tsare cleaned up accordingly.Fixed Issues
$ #91172
PROPOSAL:
Tests
No tests needed, pure cleanup
Offline tests
N/A
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand 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