[Better Expense Report View] Fix splits in group chats#60344
Conversation
1fe93b2 to
22f8768
Compare
22f8768 to
e29a5b3
Compare
|
@alitoshmatov 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] |
|
Note: There are several lint errors for newly added useOnyx rules that I would rather not touch in this PR, as it is not related to the issue. |
|
This is part of a project so I will let the C+ handle this |
|
🚧 @mountiny has triggered a test app build. You can view the workflow run here. |
This comment has been minimized.
This comment has been minimized.
I've changed all useOnyx calls to allow missing here to keep the logic as it was and to get rid of eslint errors. |
Did you confirm, though, it's expected that they can be missing here? we should not be just setting this to get rid of the ESLint error. We should thoroughly confirm this is expected |
|
This way is fine to solve the lint error |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-04-18.at.14.51.46.movAndroid: mWeb ChromeScreen.Recording.2025-04-18.at.14.41.39.moviOS: NativeScreen.Recording.2025-04-18.at.14.41.23.moviOS: mWeb SafariScreen.Recording.2025-04-18.at.14.39.19.movMacOS: Chrome / SafariScreen.Recording.2025-04-18.at.14.37.11.movMacOS: DesktopScreen.Recording.2025-04-18.at.14.39.49.mov |
Okay, I've checked App/src/components/ReportActionItem/TransactionPreview/index.tsx Lines 38 to 48 in 92707c3
I think due to |
|
🚧 @mountiny has triggered a test app build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, 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.1.32-0 🚀
|
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.1.32-8 🚀
|
| getOriginalMessage(action)?.type === CONST.IOU.REPORT_ACTION_TYPE.TRACK) | ||
| ) { | ||
| if (isIOURequestReportAction(action)) { | ||
| const isSplitInGroupChat = moneyRequestActionType === CONST.IOU.REPORT_ACTION_TYPE.SPLIT && report?.chatType === CONST.REPORT.CHAT_TYPE.GROUP; |
There was a problem hiding this comment.
We can split in rooms too and that check should be included to show the split in the chat. More details here. #64725

Explanation of Change
Considering that splits in group chat have no reportID and I found out that this is a desired outcome, I've fixed it so that split expenses in group chats are displayed as TransactionPreview (same as in self-DM).
App/src/libs/actions/IOU.ts
Lines 6129 to 6145 in 01c6daa
Fixed Issues
$ #60084
PROPOSAL: N/A
Tests
Offline tests
Same as tests
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))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.mov
iOS: mWeb Safari
MacOS: Chrome / Safari
Web.mov
MacOS: Desktop