fix(inventory): update adjustment value to use integer for swipe actions
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
@@ -48,7 +48,7 @@ class _SwipeableInventoryTileState
|
||||
void _onEnd(DragEndDetails d) {
|
||||
if (_acting) return;
|
||||
if (_drag > _threshold) {
|
||||
_adjust(+1);
|
||||
_adjust(1);
|
||||
} else if (_drag < -_threshold) {
|
||||
_adjust(-1);
|
||||
}
|
||||
|
||||
+14
-10
@@ -62,10 +62,14 @@ Adminfloden migreras efter att ovanstaende ar verifierat.
|
||||
- [x] Skapa och uppdatera inventariepost.
|
||||
- [x] Konsumtion och konsumtionshistorik.
|
||||
|
||||
## Fas 5 - Matplan parity (NASTA)
|
||||
- Veckovy med receptval per dag mot nu user-scopat `GET /api/meal-plan?from=&to=`.
|
||||
- Portionsjustering per dag.
|
||||
- Inkoplista och inventariejamforelse mot anvandarens pantry.
|
||||
## Fas 5 - Matplan parity (KLAR 2026-04-22)
|
||||
- [x] Veckovy med receptval per dag mot user-scopat `GET /api/meal-plan?from=&to=`.
|
||||
- [x] Portionsjustering per dag.
|
||||
- [x] Inkoplista och inventariejamforelse mot anvandarens pantry.
|
||||
|
||||
## UI/UX-förbättringar (KLAR 2026-04-22)
|
||||
- [x] Produktval med bottenark (ProductPickerField) i inventarie/pantry.
|
||||
- [x] Swipe-för-±1 på inventarielistan (SwipeableInventoryTile med visuell ledtråd).
|
||||
|
||||
## Fas 6 - Import parity
|
||||
- URL/PDF/bild via befintliga endpoints.
|
||||
@@ -102,13 +106,13 @@ En feature ar klar nar allt nedan ar uppfyllt:
|
||||
- Hall dubbel drift (Next + Flutter) tills karnfloden ar stabila.
|
||||
- Flytta trafik gradvis nar parity ar verifierad.
|
||||
|
||||
## Nasta konkreta sprint (rekommenderad)
|
||||
|
||||
1. Fas 5: Matplan parity mot user-scopat API (veckovy, inkoplista, inventariejamforelse).
|
||||
2. Fa 6: Import parity.
|
||||
3. Fas 7: Profil/admin parity.
|
||||
4. Fortatt flytt av UI-strangar till ARB (inventarie, pantry, recept).
|
||||
5. Smoke-test pa testdomanen och avstamning.
|
||||
## Nästa konkreta sprint (rekommenderad)
|
||||
|
||||
1. Fas 6: Import parity (URL/PDF/bild, robust felhantering).
|
||||
2. Fas 7: Profil/admin parity.
|
||||
3. Fortsatt flytt av UI-strängar till ARB (inventarie, pantry, recept).
|
||||
4. Smoke-test på testdomän och avstämning.
|
||||
|
||||
## Tumregel
|
||||
|
||||
|
||||
Reference in New Issue
Block a user