Commit graph

2 commits

Author SHA1 Message Date
clucraft
8c5d20707d Add out-of-stock detection and display
- Add stock_status column to products table (in_stock/out_of_stock/unknown)
- Detect out-of-stock status on Amazon by checking:
  - #availability text for "currently unavailable"
  - #outOfStock element presence
  - Missing "Add to Cart" button
- Add generic stock status detection for other sites
- Allow adding out-of-stock products (they just won't have a price)
- Update background scheduler to track stock status changes
- Display stock status badge in product list and detail pages
- Dim out-of-stock products in the dashboard
- Show "Currently Unavailable" badge instead of price when out of stock

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 20:54:12 -05:00
clucraft
5263ac93a9 Add database initialization script
- Add database/init.sql with schema
- Mount init.sql in docker-compose for auto-initialization
- PostgreSQL will run this on first startup

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 14:14:00 -05:00