feat(shopping): stats achat produit + édition quantité article
Backend : - Migration 004 : last_purchased_at (DATE) + avg_interval_days (NUMERIC) sur shopping.products - update_item : met à jour les stats au premier cochage d'un article lié à un produit (moyenne mobile exp. 70/30) - ProductResponse expose les deux nouveaux champs Frontend : - ItemRow : long press 500ms → onEdit() (mobile) ; crayon + croix (laptop) - ShoppingPage : modal édition quantité/unité, état editingItem - api/shopping.ts : Product inclut last_purchased_at + avg_interval_days Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -34,6 +34,8 @@ export interface Product {
|
||||
quantity_per_unit: string | null
|
||||
default_store_id: string | null
|
||||
frequency_score: number
|
||||
last_purchased_at: string | null
|
||||
avg_interval_days: string | null
|
||||
image_path: string | null
|
||||
thumbnail_path: string | null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user