-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Disable long press for empty expense reports #62095
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
Disable long press for empty expense reports #62095
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] |
🚧 @mountiny has triggered a test app build. You can view the workflow run here. |
@allgandalf is going to take it. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-05-16.at.9.23.41.AM.movAndroid: mWeb ChromeUploading Screen Recording 2025-05-16 at 9.24.24 AM.mov… Screen.Recording.2025-05-16.at.9.25.29.AM.moviOS: HybridAppScreen.Recording.2025-05-16.at.9.18.13.AM.moviOS: mWeb SafariScreen.Recording.2025-05-16.at.9.19.44.AM.movMacOS: Chrome / SafariScreen.Recording.2025-05-16.at.9.14.36.AM.movMacOS: DesktopScreen.Recording.2025-05-16.at.9.15.36.AM.mov |
if ('transactions' in item && item.transactions.length === 0) { | ||
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.
@SzymczakJ instead of this , lets introduce transactions
optional property in TransactionListItemType
, is that not ideal?
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 we never have the transactions
prop in the TransactionListItemType
object. That change would just mislead people into thinking that they can expect that prop in the TransactionListItemType
.
What's more I would also need to add transactions
to ReportActionListItemType
and TaskListItemType
to make typescript happy.
I think it's better to leave these types as they are.
🧪🧪 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. |
Explanation of Change
Fixed Issues
$ #62033
PROPOSAL:
Tests
Offline tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectioncanBeMissing
param foruseOnyx
toggleReport
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
Screen.Recording.2025-05-15.at.13.51.03.mov
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop