-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[Better Expense Report View] Fix splits in group chats #60344
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
[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 |
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.
LGTM
Okay, I've checked App/src/components/ReportActionItem/TransactionPreview/index.tsx Lines 38 to 48 in 92707c3
I think due to |
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.
🚧 @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! 🧪🧪 |
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.
Thanks!
✋ 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 🚀
|
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 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.mov
iOS: mWeb Safari
MacOS: Chrome / Safari
Web.mov
MacOS: Desktop