mirror of
https://github.com/Sea-Haven-Industries/meal-order-manager.git
synced 2026-09-30 10:03:13 +00:00
The weekly summary PDF generated at Thursday close was stored in the reports bucket with no way to reach it from the UI — admins had to pull it from S3 manually. Surface it in the admin panel: - submit_order: GET /api/admin/summary-pdf?week= (admin-gated) returns a 5-minute presigned URL from the SUMMARY item's stamped PDF key; 404 for weeks that haven't closed. - template.yaml: REPORTS_BUCKET env var + read-only s3:GetObject on reports/* for SubmitOrderFunction (needed so the presigned URL is signed with sufficient permissions). - generate_form.py: "Download summary PDF" button in the admin header; explains Thursday-close timing on 404. - Tests: presign happy path, 404 open week, 400 missing week, 401 unauthenticated. - README updated. |
||
|---|---|---|
| .. | ||
| aggregate_orders | ||
| close_form | ||
| email_report | ||
| slack_notifier | ||
| submit_order | ||
| sync_roster | ||