PriceGhost/backend
clucraft 389915a6ec Add anchor price support for variant products
When a user confirms a price from the modal, we now store it as an
"anchor price". On subsequent refreshes, if multiple price candidates
are found (common with variant products like different sizes/colors),
we select the candidate closest to the anchor price.

This fixes the issue where variant products would randomly switch to
a different variant's price on refresh.

Changes:
- Add anchor_price column to products table
- Save anchor price when user confirms a price selection
- Use anchor price to select correct variant on refresh
- 20% tolerance - if no candidate is within 20% of anchor, fall back to consensus

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 15:50:18 -05:00
..
src Add anchor price support for variant products 2026-01-24 15:50:18 -05:00
.dockerignore Initial commit: PriceGhost price tracking application 2026-01-20 13:58:13 -05:00
.env.example Initial commit: PriceGhost price tracking application 2026-01-20 13:58:13 -05:00
Dockerfile Add Puppeteer fallback for Cloudflare-protected sites 2026-01-21 20:55:49 -05:00
package-lock.json Fix stock status false positives for in-stock items 2026-01-23 13:56:26 -05:00
package.json Fix stock status false positives for in-stock items 2026-01-23 13:56:26 -05:00
tsconfig.json Initial commit: PriceGhost price tracking application 2026-01-20 13:58:13 -05:00