WFDASH-WEBAPP/src/app/api/mcp
Dave 07a5e810e5 feat(attachments): enhance order attachment handling and retrieval
- Updated the `orders.add_attachment` and `orders.list_attachments` tools to utilize the order's own `order_attachements` field, allowing immediate visibility of attachments without requiring a matched quote.
- Enhanced the `POST` route for uploading attachments to support multiple files and improved response structure to include `collectionId` and `collectionName`.
- Merged attachment sources in the `GET` route for matched attachments, providing a unified view of order-level and quote-level files, with a new `source` field to indicate the origin of each attachment.
- Added utility functions for inferring MIME types and attachment kinds based on file extensions, ensuring consistent handling across the application.
- Improved documentation for clarity on the attachment handling process and updated response formats to reflect the new structure.
2026-08-21 20:47:00 +02:00
..
FEATURE-REQUESTS.md feat(orders): enhance order retrieval and statistics functionality 2026-08-16 00:51:24 +02:00
po-agent-workflow.test.ts feat: add PO agent workflow and inline SKU editing 2026-08-14 12:37:13 +02:00
route.test.ts feat(orders): enhance order handling with email_message_id deduplication and displayContactName utility 2026-08-21 19:18:02 +02:00
route.ts feat(attachments): enhance order attachment handling and retrieval 2026-08-21 20:47:00 +02:00