New column: user_edited INTEGER DEFAULT 0 on products table. - JS migration adds column - showEditProductModal sets user_edited=1 on save - Rust seed import: UPDATE store products (source IN magnit/5ka/kdv/ion) WHERE user_edited IS NULL OR user_edited = 0 - Now updates KBJU + all micronutrients from seed (not just INSERT OR IGNORE) - User edits preserved: user_edited=1 products never touched by seed import - Manual/recipe_import products also never touched (source check) Flow: seed update fixes wrong KBJU (e.g. bread 268→243) automatically, but if user already fixed it manually — their fix stays. |
||
|---|---|---|
| .. | ||
| capabilities | ||
| gen/android/app/src/main/java/dev/baldav/app | ||
| icons | ||
| src | ||
| build.rs | ||
| Cargo.lock | ||
| Cargo.toml | ||
| tauri.conf.json | ||