-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Prevent approving in expense report only has pending card/scan failure transactions #55345
base: main
Are you sure you want to change the base?
Conversation
@shubham1206agra 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] |
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
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.
@nkdengineer let's address the conflicts and comments
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.
@nkdengineer we have conflicts, let's address those!
Updated. |
@nkdengineer Can you address these comments? |
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.
@nkdengineer let's address the pending comments! We're so close!
Will give an update soon. |
Thanks! Looking forward to the update! |
@nkdengineer Bump here |
@nkdengineer Fix lint please |
Done. |
@nkdengineer we have a failing jest test. It seems unrelated, but maybe merging main might fix it. |
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
@shubham1206agra all yours |
Co-authored-by: Shubham Agrawal <[email protected]>
@nkdengineer Jest unit tests is failing now |
@luacmartins It's fixed cc @shubham1206agra |
const hasOnlyPendingCardOrScanningTransactions = | ||
reportTransactions.length > 0 && | ||
reportTransactions.every( | ||
(t) => |
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.
Can we rename this variable to something more meaningful?
(t) => | |
(transaction) => |
Explanation of Change
Prevent approving in expense report only has pending card/scan failure transactions
Fixed Issues
$ #54996
PROPOSAL: #54996 (comment)
Tests
Precondition: Enable workflow
Reports
>Outstanding
and notice the row of the expense reportView
button appear in large screenOffline tests
None
QA Steps
Precondition: Enable workflow
Reports
>Outstanding
and notice the row of the expense reportView
button appear in large screenPR 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
Screen.Recording.2025-01-16.at.14.50.41.mov
Android: mWeb Chrome
Screen.Recording.2025-01-16.at.14.40.11.mov
iOS: Native
Screen.Recording.2025-01-16.at.15.52.42.mov
iOS: mWeb Safari
Screen.Recording.2025-01-16.at.14.43.59.mov
MacOS: Chrome / Safari
Screen.Recording.2025-01-16.at.14.39.14.mov
MacOS: Desktop
Screen.Recording.2025-01-16.at.14.47.16.mov