-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Render ChatBubbleCell only if it's needed #65570
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
Render ChatBubbleCell only if it's needed #65570
Conversation
@ZhenjaHorbach 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] |
@sosek108 |
@ZhenjaHorbach Issues already resolved :) PR is ready for review |
@@ -382,6 +382,9 @@ function TransactionItemRow({ | |||
], | |||
); | |||
const safeColumnWrapperStyle = columnWrapperStyles ?? [styles.p3, styles.expenseWidgetRadius]; | |||
const shouldRenderChatBubbleCell = useMemo(() => { | |||
return columns?.includes(CONST.REPORT.TRANSACTION_LIST.COLUMNS.COMMENTS) ?? false; | |||
}, [columns]); | |||
return ( |
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.
Minor comment
But let's add an empty line before return
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.
Done
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.
Damn
Now we have TS issues 😅
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.
But it's not our issues
Let's try to update a branch to the latest version of main
Reviewer Checklist
Screenshots/VideosAndroid: HybridApp2025-07-11.17.36.42.movAndroid: mWeb Chrome2025-07-11.17.36.42.moviOS: HybridApp2025-07-11.17.22.29.moviOS: mWeb Safari2025-07-11.17.27.17.movMacOS: Chrome / Safariweb.movMacOS: Desktopweb.mov |
LGTM ! |
✋ 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.1.81-0 🚀
|
Explanation of Change
This PR removes
ChatBubbleCell
rendering fromTransactionItemRow
component if the providedcolumns
property lacksCONST.REPORT.TRANSACTION_LIST.COLUMNS.COMMENTS
entry.Fixed Issues
$ #65926
PROPOSAL: #65926
Tests
The modified component is used in two places:
Ensure that testing account has multiple reports and at least one report with multiple transactions
Reports page validation
Regressions
Offline tests
N/A
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
The modified component is used in two places:
Ensure that testing account has multiple reports and at least one report with multiple transactions
Reports page validation
Regressions
See
iOS mWeb Safari
screenshots for referencePR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop