feat: wire shop LiveViews to real product data
PreviewData now queries the Products context when real products exist,
falling back to mock data otherwise. Shop pages automatically display
synced Printify products.
Fixes:
- Printify image position was string ("front"), now uses index
- Category extraction improved to match more Printify tags
- ProductShow finds products by slug for real data
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
20
PROGRESS.md
20
PROGRESS.md
@@ -12,13 +12,13 @@
|
||||
- 100% PageSpeed score
|
||||
|
||||
**In Progress:**
|
||||
- Products context with provider integration (sync working, wiring to shop views next)
|
||||
- Products context with provider integration (wired to shop views, variant selector next)
|
||||
|
||||
## Next Up
|
||||
|
||||
1. **Wire Products to Shop LiveViews** - Replace PreviewData with real synced products
|
||||
2. **Variant Selector Component** - Size/colour picker on product pages
|
||||
3. **Session-based Cart** - Real cart with actual variants
|
||||
1. **Variant Selector Component** - Size/colour picker on product pages
|
||||
2. **Session-based Cart** - Real cart with actual variants
|
||||
3. **Stripe Checkout Integration** - Payment processing
|
||||
|
||||
---
|
||||
|
||||
@@ -57,12 +57,18 @@ See: [docs/plans/image-optimization.md](docs/plans/image-optimization.md) for im
|
||||
- [x] Admin Provider Setup UI (`/admin/providers`) - connect, test, sync
|
||||
- [x] ProductSyncWorker with pagination, parallel processing, error recovery
|
||||
- [x] Slug-based fallback matching for changed provider IDs
|
||||
- [x] Printify webhook endpoint for real-time product updates (a9c15ea)
|
||||
- [x] Printify webhook endpoint with HMAC verification (a9c15ea)
|
||||
- Note: Printify only supports `product:deleted` and `product:publish:*` events (no `product:updated`)
|
||||
|
||||
#### Remaining Tasks
|
||||
- [ ] Wire shop LiveViews to Products context (~2hr)
|
||||
- [ ] Add variant selector component (~2hr)
|
||||
|
||||
#### Recently Completed
|
||||
- [x] Wire shop LiveViews to Products context
|
||||
- PreviewData now uses real products when available
|
||||
- Fixed Printify image sync (position was string, not integer)
|
||||
- Improved category extraction from Printify tags
|
||||
|
||||
#### Future Enhancements (post-MVP)
|
||||
- [ ] Pre-checkout variant validation (verify availability before order)
|
||||
- [ ] Cost change monitoring/alerts (warn if Printify cost increased)
|
||||
@@ -109,7 +115,7 @@ See: [docs/plans/page-builder.md](docs/plans/page-builder.md) for design
|
||||
|---------|--------|-------|
|
||||
| Products context Phase 1 | c5c06d9 | Schemas, provider abstraction |
|
||||
| Admin provider setup UI | 5b736b9 | Connect, test, sync with pagination |
|
||||
| Printify webhooks | a9c15ea | Real-time product updates |
|
||||
| Printify webhooks | a9c15ea | Deletion + publish events (no update event available) |
|
||||
| Oban Lifeline plugin | c1e1988 | Rescue orphaned jobs |
|
||||
| Image optimization | Multiple | Full pipeline complete |
|
||||
| Self-hosted fonts | - | 10 typefaces, 728KB |
|
||||
|
||||
Reference in New Issue
Block a user