Kelly
af859a85f9
feat: Add Real-Time Inventory Tracking infrastructure
Implements per-store high-frequency crawl scheduling and inventory
snapshot tracking for sales velocity estimation (Hoodie Analytics parity).
Database migrations:
- 117: Per-store crawl_interval_minutes and next_crawl_at columns
- 118: inventory_snapshots table (30-day retention)
- 119: product_visibility_events table for OOS/brand alerts (90-day)
Backend changes:
- inventory-snapshots.ts: Shared utility normalizing Dutchie/Jane/Treez
- visibility-events.ts: Detects OOS, price changes, brand drops
- task-scheduler.ts: checkHighFrequencyStores() runs every 60s
- Handler updates: 2-line additions to save snapshots/events
API endpoints:
- GET /api/tasks/schedules/high-frequency
- PUT /api/tasks/schedules/high-frequency/:id
- DELETE /api/tasks/schedules/high-frequency/:id
Frontend:
- TasksDashboard: Per-Store Schedules section with stats
Features:
- Per-store intervals (15/30/60 min configurable)
- Jitter (0-20%) to avoid detection patterns
- Cross-platform support (Dutchie, Jane, Treez)
- No crawler core changes - scheduling/post-crawl only
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-14 15:53:04 -07:00
..
2025-12-11 23:03:39 -07:00
2025-12-11 23:28:05 -07:00
2025-12-10 08:05:24 -07:00
2025-12-13 15:16:48 -07:00
2025-12-13 16:40:52 -07:00
2025-12-07 22:48:21 -07:00
2025-12-10 15:29:23 -07:00
2025-12-07 22:48:21 -07:00
2025-12-07 11:30:57 -07:00
2025-12-13 00:15:23 -07:00
2025-12-13 19:25:49 -07:00
2025-12-07 11:30:57 -07:00
2025-12-14 15:53:04 -07:00
2025-12-14 03:35:25 -07:00
2025-12-09 00:05:34 -07:00
2025-12-14 15:53:04 -07:00
2025-12-11 23:03:39 -07:00
2025-12-14 15:53:04 -07:00
2025-12-10 22:15:35 -07:00
2025-12-14 11:54:25 -07:00
2025-12-08 10:45:47 -07:00
2025-12-13 19:54:26 -07:00