add Printful provider integration with HTTP client and order routing

Printful HTTP client (v2 + v1 for sync products), Provider behaviour
implementation with all callbacks (test_connection, fetch_products,
submit_order, get_order_status, fetch_shipping_rates), and multi-provider
order routing that looks up the provider connection from the order's
product instead of hardcoding "printify".

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
jamey
2026-02-15 09:01:05 +00:00
parent af207d7a35
commit 3c788bff78
12 changed files with 2034 additions and 16 deletions

View File

@@ -27,7 +27,7 @@
Ordered by dependency level — admin shell chain first (unblocks most downstream work).
Plans: [admin-redesign.md](docs/plans/admin-redesign.md) | [setup-wizard.md](docs/plans/setup-wizard.md) | [search.md](docs/plans/search.md) | [products-refactor.md](/home/jamey/.claude/plans/snug-roaming-zebra.md) | [shipping-sync.md](docs/plans/shipping-sync.md)
Plans: [admin-redesign.md](docs/plans/admin-redesign.md) | [setup-wizard.md](docs/plans/setup-wizard.md) | [search.md](docs/plans/search.md) | [products-refactor.md](/home/jamey/.claude/plans/snug-roaming-zebra.md) | [shipping-sync.md](docs/plans/shipping-sync.md) | [printful-integration.md](docs/plans/printful-integration.md) | [provider-strategy.md](docs/plans/provider-strategy.md)
| # | Task | Depends on | Est | Status |
|---|------|------------|-----|--------|
@@ -51,6 +51,15 @@ Plans: [admin-redesign.md](docs/plans/admin-redesign.md) | [setup-wizard.md](doc
| | **Next up** | | | |
| 16 | Variant refinement with live data | — | 2-3h | |
| ~~18~~ | ~~Shipping costs at checkout~~ | 17 | 4h | done |
| | **Printful integration** | | | |
| 24 | Printful HTTP client | — | 1.5h | |
| 25 | Printful provider (sync + orders) | 24 | 3h | |
| 26 | Multi-provider order routing | 25 | 1h | |
| 27 | Printful shipping rates | 25 | 1.5h | |
| 28 | Printful mockup generation worker | 25 | 2h | |
| 29 | Printful webhooks | 25 | 1.5h | |
| 30 | Admin UI tweaks for Printful | 25 | 1h | |
| 31 | Printful tests + integration testing | 24-30 | 4.5h | |
| | **CSS migration (after admin stable)** | | | |
| 19 | Admin design tokens (`admin-tokens.css`) | 12 | 30m | |
| 20 | Admin component styles (`app-admin.css`) | 19 | 3-4h | |
@@ -58,7 +67,7 @@ Plans: [admin-redesign.md](docs/plans/admin-redesign.md) | [setup-wizard.md](doc
| 22 | Remove DaisyUI | 21 | 1h | |
| 23 | CSS migration tests + visual QA | 22 | 1h | |
**Total remaining: ~23-29 hours across ~10 sessions**
**Total remaining: ~39-45 hours across ~18 sessions**
## Usability fixes (16/18 done)