0b8f003f87
feat(po): add MCP server, agent-friendly PO API, and PDF rendering
...
- server/pb-mcp.mjs: 15-tool MCP server for purchase-order workflow
(CRUD, suppliers, stock, customers, customer POs, validate_draft,
generate_order_number)
- src/lib/api/purchaseOrders.ts: typed helpers shared by UI + MCP + n8n
- src/components/purchase-orders/pdf.ts: jsPDF PO generator
- src/components/purchase-orders/ViewOrderDialog.tsx: read-only dialog
- src/components/purchase-orders/AttachmentsDialog.tsx: attachment mgmt
- src/components/purchase-orders/NumberInput.tsx: numeric input
- scripts/mcp-create-po.mjs: end-to-end driver (MCP stdio smoke test)
- pocketbase/pb_migrations/1786200007_*: schema migration
- docs/MCP_AND_N8N.md: MCP + n8n integration guide
Verified end-to-end via MCP: generate_order_number → create_purchase_order
with snapshot_items for an actual quote (DRILL-19042 / 161053).
2026-09-07 11:12:13 +02:00
davidels1
796bac47b4
Add icon generation script and new icons for PWA and favicons
...
- Introduced `generate-icons.mjs` script to automate the creation of PWA icons and favicons from the provided SVG logo.
- Generated icons include:
- PWA icons: 192x192 and 512x512
- Maskable icon with 12% padding: 512x512
- Favicons: 32x32, 16x16
- Apple-touch icon: 180x180
- Added a new PNG file for the maskable icon.
2025-09-25 00:50:36 +02:00
[dyad]
afe1727b77
[dyad] wrote 5 file(s), added jspdf package(s)
2025-09-12 08:35:10 +02:00
[dyad]
7a4277e7a3
[dyad] Implemented 'Add Stock Item' functionality with a dialog - wrote 4 file(s), added react-hot-toast package(s)
2025-09-11 11:51:34 +02:00
[dyad]
e22de9be3a
[dyad] Installing pocketbase - wrote 2 file(s), added pocketbase package(s)
2025-09-10 08:42:40 +02:00
davidels1
f9a6bdc346
[dyad] Implemented a QR code scanner to filter the stock list - wrote 5 file(s), added html5-qrcode package(s)
2025-09-09 00:56:13 +02:00
davidels1
d72b809813
[dyad] Replaced barcodes with more reliable QR codes - wrote 4 file(s), renamed 1 file(s), added qrcode.react package(s)
2025-09-09 00:52:12 +02:00
davidels1
dce3f15acc
[dyad] Added barcode generation and viewing - wrote 4 file(s), added react-barcode package(s)
2025-09-09 00:49:54 +02:00
davidels1
35910a0124
[dyad] Implemented a data table for the stock list page - wrote 6 file(s), added @tanstack/react-table, @tanstack/react-table package(s)
2025-09-09 00:17:47 +02:00
davidels1
91f27cd32b
Init Dyad app
2025-09-09 00:12:47 +02:00