Add per-product AI verification disable option

Users can now disable AI verification for individual products that
AI is having trouble with (e.g., Amazon products where AI keeps
picking the main buy box price instead of "other sellers").

Changes:
- Add ai_verification_disabled column to products table
- Add toggle in product detail page under "Advanced Settings"
- Pass skip flag to scrapeProductWithVoting
- Skip AI verification when flag is set

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
clucraft 2026-01-24 20:32:25 -05:00
parent d2e1cc70fc
commit b9d8d15e68
7 changed files with 147 additions and 6 deletions

View file

@ -219,7 +219,7 @@ router.put('/:id', async (req: AuthRequest, res: Response) => {
return;
}
const { name, refresh_interval, price_drop_threshold, target_price, notify_back_in_stock } = req.body;
const { name, refresh_interval, price_drop_threshold, target_price, notify_back_in_stock, ai_verification_disabled } = req.body;
const product = await productQueries.update(productId, userId, {
name,
@ -227,6 +227,7 @@ router.put('/:id', async (req: AuthRequest, res: Response) => {
price_drop_threshold,
target_price,
notify_back_in_stock,
ai_verification_disabled,
});
if (!product) {