-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Update Expense Report View / Headers #22484
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
Conversation
fedirjh
left a comment
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 |
fedirjh
left a comment
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! |
srikarparsi
left a comment
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 🚀
|
| 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
| 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 Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android