Implement this internal section of the Manual Requests Design Doc. More details to follow.
- Update getOrderedReportIDs passing iouReports to the list of reports.
const reportsToDisplay = _.filter({...chatReports, …iouReports}, …);
- Update shouldReportBeInOptionList to stop filtering iou reports and stop checking for the participants as those are missing in expense and iou reports. We will use the isMoneyRequestReport helper method.
if (!report || !report.reportID || !report.participants || (_.isEmpty(report.participants) && !isPublicRoom(report) && !isArchivedRoom(report) && !isMoneyRequestReport(report)) || isIOUReport(report))
- Update getOptionData to include data for iouReports (subscript avatar, etc)
- Add iouReports here (these are both iou and expense)
const report = chatReports[`${ONYXKEYS.COLLECTION.REPORT}${reportID}`]
|| iouReports[`${ONYXKEYS.COLLECTION.REPORT}${reportID}`];
- Add result.isMoneyRequestReport here and here
- Update shouldShowSubscript to true for iou reports
- Update getReportName to display the correct
workspaceName owes $X message as the reportName
- Update getIcons to return the avatars for the user and Workspace
if (isPolicyExpenseChat(report) || isMoneyRequestReport(report)) {
4 In ReportScreen, we’ll check if the report being rendered is an IOU report and conditionally render MoneyRequestHeader or HeaderView if not.
5. We’ll then render the list of money requests and comments on the Expense / IOU report right under the new header component, using the existing ReportActionsView component.
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~016bc7eb53184f8e07
- Upwork Job ID: 1661760310912589824
- Last Price Increase: 2023-05-25
Implement this internal section of the Manual Requests Design Doc. More details to follow.
const reportsToDisplay = _.filter({...chatReports, …iouReports}, …);workspaceName owes $Xmessage as the reportName4 In ReportScreen, we’ll check if the report being rendered is an IOU report and conditionally render MoneyRequestHeader or HeaderView if not.
5. We’ll then render the list of money requests and comments on the Expense / IOU report right under the new header component, using the existing ReportActionsView component.
Upwork Automation - Do Not Edit