mirror of
https://github.com/clucraft/PriceGhost.git
synced 2026-05-18 13:55:16 +02:00
Add AI status badges to show verification status on prices
- Add ai_status column to price_history table (verified/corrected/null)
- Track AI verification status through scraper and scheduler
- Display badges next to prices:
- ✓ AI (green): AI verified the price is correct
- ⚡ AI (orange): AI corrected an incorrect price
- Show badges on Dashboard product cards and ProductDetail page
- Add legend explaining badges in Settings when AI Verification is enabled
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
3d91489f12
commit
ccbc188487
11 changed files with 173 additions and 23 deletions
|
|
@ -45,6 +45,7 @@ export const authApi = {
|
|||
|
||||
// Products API
|
||||
export type StockStatus = 'in_stock' | 'out_of_stock' | 'unknown';
|
||||
export type AIStatus = 'verified' | 'corrected' | null;
|
||||
|
||||
export interface SparklinePoint {
|
||||
price: number;
|
||||
|
|
@ -67,6 +68,7 @@ export interface Product {
|
|||
created_at: string;
|
||||
current_price: number | null;
|
||||
currency: string | null;
|
||||
ai_status: AIStatus;
|
||||
sparkline?: SparklinePoint[];
|
||||
price_change_7d?: number | null;
|
||||
min_price?: number | null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue