-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[Better Expense Report View] Remove RBR logic from Preview & clean-up invoice, split, and self-DM previews #59811
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] Remove RBR logic from Preview & clean-up invoice, split, and self-DM previews #59811
Conversation
@DylanDylann 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] |
Going to run a test build 🚀 |
🚧 @shawnborton has triggered a test app build. You can view the workflow run here. |
This comment has been minimized.
This comment has been minimized.
Reviewer Checklist
Screenshots/VideosiOS: NativeScreenRecording_04-10-2025.17-00-37_1.MP4 |
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.
overall great job!, just few comments and we should be good to go, I don't think so the functionality is changing, so i will go forward with the testing and in the meantime you can work on the changes
src/components/ReportActionItem/MoneyRequestReportPreview/MoneyRequestReportPreviewContent.tsx
Outdated
Show resolved
Hide resolved
src/components/ReportActionItem/MoneyRequestReportPreview/types.ts
Outdated
Show resolved
Hide resolved
@allgandalf Okay, the problem is that onPreviewPressed is used as an conditional to render styled PressableWithoutFeedback, so it can't be empty. App/src/components/ReportActionItem/TransactionPreview/TransactionPreviewContent.tsx Lines 358 to 390 in 240a027
This will be fixed in another PR by @Kicu (not yet created), but it doesn't affect the UI or other logic, so it's NAB. |
🚧 @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! 🧪🧪 |
@allgandalf @JakubKorytko Sorry to clarify, is this what you see on the current branch? #59811 (comment) lets not merge it with regression like this even if its behind beta |
thanks for clarifying, it was not clear to me from the comments @JakubKorytko What issue are you referring to by this comment? #59811 (comment) |
No issue raised for that, it's just the way this component works, if onPreviewPressed is not set then PressableWithoutFeedback (with styles applied) will not render, so we need to pass the empty function as a prop for it to work properly. This will be fixed in another PR by @Kicu |
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.
Waiting for the translation confirmation
Gonna move this one ahead and we can delve into the invoice report name later |
✋ 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.27-0 🚀
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.1.28-15 🚀
|
isBillSplit={isSplitBillActionReportActionsUtils(action)} | ||
wrapperStyle={shouldUseNarrowLayout ? {...styles.w100, ...styles.mw100} : reportPreviewStyles.transactionPreviewStyle} | ||
onPreviewPressed={() => {}} | ||
isTrackExpense={isTrackExpenseActionReportActionsUtils(action)} |
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.
We need to pass shouldDisplayContextMenu
here, otherwise it will cause this bug #60808 (comment)
Explanation of Change
This PR fixes following issues from the Preview Followups:
Also fixed blank messages appearing in chats where previews/expenses/system messages should appear after new view changes.
Fixed Issues
$ #59452 (partial)
$ #59979 (skeleton layout)
PROPOSAL: N/A
Tests
[Remove RBR logic from Preview]
[Clean-up self-DM previews]
[Clean-up invoice previews]
[Clean-up split previews]
Also verify that there are no empty messages where the expense/preview/system message should be and that trips are working properly.
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