Skip to content

[$1000] [HOLD for payment 2023-05-23] [Manual Requests] Display IOU and expense reports in the LHN #18475

Description

@mountiny

Implement this internal section of the Manual Requests Design Doc. More details to follow.

  1. Update getOrderedReportIDs passing iouReports to the list of reports.

const reportsToDisplay = _.filter({...chatReports, …iouReports}, …);

  1. 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))
  1. 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

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionDailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributorsNewFeatureSomething to build that is a new item.

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions