Problem
The receipts export can be started from the Expenses and Reports search pages, but not from an individual report. A user viewing a single report should be able to download that report's receipts from the report's actions menu.
Solution
Add a "Download receipts" option to the single-report secondary-actions menu, next to the existing "Download as PDF". It reuses the exportReceiptsAsZip action and the export status modal from the first FE issue, so this is mostly wiring up the report-page entry point.
What to build:
- Add the constant
REPORT.SECONDARY_ACTIONS.DOWNLOAD_RECEIPTS.
- Include
DOWNLOAD_RECEIPTS in the report's secondary actions (src/libs/ReportSecondaryActionUtils.ts), alongside DOWNLOAD_PDF.
- Add the
DOWNLOAD_RECEIPTS implementation in src/hooks/useExportActions.ts: keep the online-only behavior (show the offline modal when offline), then call exportReceiptsAsZip with the single report's ID (reportIDs: [reportID]) and track the export.
- Wire the export status modal into the report header (
src/components/MoneyReportHeaderActions/MoneyReportHeaderSecondaryActions.tsx). The report header currently uses ReportPDFDownloadModal for the PDF download, so this adds the shared useExportDownloadStatusModal for the receipts export.
- Add
DOWNLOAD_RECEIPTS to the export section in src/libs/PopoverMenuSections.ts so it groups with the existing download/export items.
Depends on:
- The first FE issue (shared code: the
exportReceiptsAsZip action, EXPORT_DOWNLOAD.TYPE.RECEIPTS, the modal empty-state, and translations).
- The backend
ExportReceiptsToZip command.
Out of scope:
- No change to the existing "Download as PDF" option.
Issue Owner
Current Issue Owner: @daledah
Upwork Automation - Do Not Edit
Problem
The receipts export can be started from the Expenses and Reports search pages, but not from an individual report. A user viewing a single report should be able to download that report's receipts from the report's actions menu.
Solution
Add a "Download receipts" option to the single-report secondary-actions menu, next to the existing "Download as PDF". It reuses the
exportReceiptsAsZipaction and the export status modal from the first FE issue, so this is mostly wiring up the report-page entry point.What to build:
REPORT.SECONDARY_ACTIONS.DOWNLOAD_RECEIPTS.DOWNLOAD_RECEIPTSin the report's secondary actions (src/libs/ReportSecondaryActionUtils.ts), alongsideDOWNLOAD_PDF.DOWNLOAD_RECEIPTSimplementation insrc/hooks/useExportActions.ts: keep the online-only behavior (show the offline modal when offline), then callexportReceiptsAsZipwith the single report's ID (reportIDs: [reportID]) and track the export.src/components/MoneyReportHeaderActions/MoneyReportHeaderSecondaryActions.tsx). The report header currently usesReportPDFDownloadModalfor the PDF download, so this adds the shareduseExportDownloadStatusModalfor the receipts export.DOWNLOAD_RECEIPTSto the export section insrc/libs/PopoverMenuSections.tsso it groups with the existing download/export items.Depends on:
exportReceiptsAsZipaction,EXPORT_DOWNLOAD.TYPE.RECEIPTS, the modal empty-state, and translations).ExportReceiptsToZipcommand.Out of scope:
Issue Owner
Current Issue Owner: @daledahUpwork Automation - Do Not Edit