-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Update Expense Report View / Headers #22484
Conversation
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.
const isSingleTransactionView = ReportActionsUtils.isTransactionThread(parentReportAction); | ||
const showMoneyRequestDetails = ReportUtils.isMoneyRequestReport(props.report) || isSingleTransactionView; | ||
const showMoneyRequestDetails = isSingleTransactionView; |
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.
This looks redundant we can just use isSingleTransactionView
directly.
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.
This will be removed entirely by whichever header PR is merged second
Reviewer Checklist
Screenshots/Videos |
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.
Looks good to me.
🎀 👀 🎀 C+ reviewed
@srikarparsi 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] |
Hey @grgia! It looks like there's conflicts with the the languages files but still looking through the PR :) |
@fedirjh @srikarparsi fixed simple language merge conflict! |
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.
looks good to me as well :)
✋ 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/srikarparsi in version: 1.3.42-0 🚀
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.3.42-26 🚀
|
@@ -94,7 +94,7 @@ function MenuItem(props) { | |||
const descriptionTextStyle = StyleUtils.combineStyles([ | |||
styles.textLabelSupporting, | |||
props.icon && !_.isArray(props.icon) ? styles.ml3 : undefined, | |||
styles.lineHeightNormal, | |||
styles.lhNormal, |
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.
This was overlooked.
There was no lineHeightNormal
property in styles
.
Making this valid caused minor regression - Test Assignee
is cut of from the bottom
policies: PropTypes.shape({ | ||
/** Name of the policy */ | ||
name: PropTypes.string, | ||
}).isRequired, |
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.
policy
is marked as required here but for some cases like deleted workspaces, it's value is undefined.
Issue: #26991
@@ -353,9 +354,9 @@ export default { | |||
settledExpensify: 'Paid', | |||
settledElsewhere: 'Paid elsewhere', | |||
settledPaypalMe: 'Paid using Paypal.me', | |||
settleExpensify: 'Pay with Expensify', | |||
settleExpensify: ({formattedAmount}) => `Pay ${formattedAmount} with Expensify`, | |||
payElsewhere: 'Pay elsewhere', |
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.
Here, the formattedAmount
was not added to payElsewhere
which was fixed in #34620
addBankAccountRoute={bankAccountRoute} | ||
shouldShowPaymentOptions | ||
style={[styles.pv2]} | ||
formattedAmount={formattedAmount} | ||
/> | ||
</View> | ||
)} | ||
</HeaderWithBackButton> | ||
{shouldShowSettlementButton && props.isSmallScreenWidth && ( | ||
<View style={[styles.ph5, styles.pb2, props.isSmallScreenWidth && styles.borderBottom]}> | ||
<SettlementButton | ||
currency={props.report.currency} | ||
policyID={props.report.policyID} | ||
shouldShowPaypal={shouldShowPaypal} | ||
chatReportID={props.report.chatReportID} | ||
iouReport={props.report} | ||
onPress={(paymentType) => IOU.payMoneyRequest(paymentType, props.chatReport, props.report)} | ||
enablePaymentsRoute={ROUTES.BANK_ACCOUNT_NEW} | ||
addBankAccountRoute={bankAccountRoute} |
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 missed to pass addDebitCardRoute={ROUTES.IOU_SEND_ADD_DEBIT_CARD}
which caused #38641
Details
Changes NOT in this PR will be addressed in follow-ups:
Fixed Issues
$ #22332
PROPOSAL:
Tests / QA Steps
IOU Report
Expense Report
Offline tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android