The orders review modal's source-of-truth panel now reads from the order_attachements multi-file field on the orders collection (pbc_3527180448) instead of the quote_attachments collection rows on the parent quote. Older orders were migrated on 2026-07-29; the order-level field is authoritative going forward. - Added orderAttachementsToQuotes() helper in src/app/(app)/orders/page.tsx that synthesises the QuoteAttachment[] shape from the order's file-field array, deriving kind (pdf/image/doc) and content_type from the filename extension. PB file fields don't carry a content-type from the wire, so we infer from extension (png/jpg/gif/webp/svg/bmp/pdf/docx/txt). - Replaced the quote_attachments collection query in OrdersReviewModalMount with the helper call. - Added orders + pbc_3527180448 to the ALLOWED_COLLECTIONS whitelist in the file proxy route so the review modal's PDF/image preview iframes can stream through /api/v1/files/... . Co-authored-by: Orca <help@stably.ai> |
||
|---|---|---|
| .. | ||
| invoicing | ||
| mcp | ||
| v1 | ||