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) {
|
void _onEnd(DragEndDetails d) {
|
||||||
if (_acting) return;
|
if (_acting) return;
|
||||||
if (_drag > _threshold) {
|
if (_drag > _threshold) {
|
||||||
_adjust(+1);
|
_adjust(1);
|
||||||
} else if (_drag < -_threshold) {
|
} else if (_drag < -_threshold) {
|
||||||
_adjust(-1);
|
_adjust(-1);
|
||||||
}
|
}
|
||||||
|
|||||||
+14
-10
@@ -62,10 +62,14 @@ Adminfloden migreras efter att ovanstaende ar verifierat.
|
|||||||
- [x] Skapa och uppdatera inventariepost.
|
- [x] Skapa och uppdatera inventariepost.
|
||||||
- [x] Konsumtion och konsumtionshistorik.
|
- [x] Konsumtion och konsumtionshistorik.
|
||||||
|
|
||||||
## Fas 5 - Matplan parity (NASTA)
|
## Fas 5 - Matplan parity (KLAR 2026-04-22)
|
||||||
- Veckovy med receptval per dag mot nu user-scopat `GET /api/meal-plan?from=&to=`.
|
- [x] Veckovy med receptval per dag mot user-scopat `GET /api/meal-plan?from=&to=`.
|
||||||
- Portionsjustering per dag.
|
- [x] Portionsjustering per dag.
|
||||||
- Inkoplista och inventariejamforelse mot anvandarens pantry.
|
- [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
|
## Fas 6 - Import parity
|
||||||
- URL/PDF/bild via befintliga endpoints.
|
- 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.
|
- Hall dubbel drift (Next + Flutter) tills karnfloden ar stabila.
|
||||||
- Flytta trafik gradvis nar parity ar verifierad.
|
- Flytta trafik gradvis nar parity ar verifierad.
|
||||||
|
|
||||||
## Nasta konkreta sprint (rekommenderad)
|
|
||||||
|
|
||||||
1. Fas 5: Matplan parity mot user-scopat API (veckovy, inkoplista, inventariejamforelse).
|
## Nästa konkreta sprint (rekommenderad)
|
||||||
2. Fa 6: Import parity.
|
|
||||||
3. Fas 7: Profil/admin parity.
|
1. Fas 6: Import parity (URL/PDF/bild, robust felhantering).
|
||||||
4. Fortatt flytt av UI-strangar till ARB (inventarie, pantry, recept).
|
2. Fas 7: Profil/admin parity.
|
||||||
5. Smoke-test pa testdomanen och avstamning.
|
3. Fortsatt flytt av UI-strängar till ARB (inventarie, pantry, recept).
|
||||||
|
4. Smoke-test på testdomän och avstämning.
|
||||||
|
|
||||||
## Tumregel
|
## Tumregel
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user