Claude
e66d9aee72
fix(inventory): sluta gissa utgangsdatum + las 2-siffriga bast-fore-stamplar
...
CI / Typecheck, test & build (push) Failing after 46s
BUG: forseglad vara utan tryckt datum fick fabricerat utgang (purchasedAt + shelfLifeGuidance, som ar hallbarhet EFTER oppning) -> falska 'gar ut snart'-varningar OCH gav sken av att datum inte lastes. Nu: ingen data -> unknown (hedrar appens egen princip 'aldrig gissa'). parseDate laser aven YY-MM-DD/YYMMDD/YYYYMMDD (svenska stamplar) som forr slangdes. Regressionstester tillagda. 36/36 gront.
2026-08-17 19:22:54 +00:00
Sven (AAMOS AI)
c32a7e33c7
ci: trigga på master + formatfix inför Gitea Actions
CI / Typecheck, test & build (push) Failing after 2s
2026-08-13 17:25:14 +07:00
Sven (AAMOS AI)
cb493010d0
3c: partial consumption + undo for cooking sessions
...
- Append-only undo via correction transactions tied to cookingSessionId.
- POST /v1/cooking-sessions/:id/undo with 24h UTC window (409 + i18n after expiry).
- Complete undo scope: meals removed, meal boxes discarded, recipe_cooks
deleted, cookCount decremented; activation milestones left intact.
- Deterministic assumption-profile rollback via lastSessionAnswers.sessionId;
profile deleted when observationCount reaches 0.
- New status 'undone' as TEXT validated against COOKING_SESSION_STATUSES.
- Analytics event cooking_session_undone + domain events MEAL_BOX_DISCARDED,
MEAL_REMOVED, COOKING_SESSION_UNDONE.
- Partial consumption uses actualPortionsEaten/plannedPortions factor.
- i18n coverage for cooked.undoWindowExpired across all 12 locales + server.
- Invariant tests: computeBalance(transactions) === item.quantity after
complete, undo, and undo + new complete; transaction count increases on undo.
- Migration 0014_expand_event_types.sql adds new enum values.
- Updated FAS3-COOKING-SESSIONS-AUDIT.md with chosen semantics.
2026-08-07 05:47:54 +07:00
Sven (AAMOS AI)
e46281b9b5
Fas 3 steg 3b: minimala efterfrågor + hushållsantagandeprofiler per ingrediens
2026-08-07 03:56:41 +07:00
Sven (AAMOS AI)
4a4f448e1c
Fas 2 steg 5: Scan-to-scan-diff + konfliktlösning, samt buggfix depleted-transaktion i reconciliation
2026-08-07 01:30:31 +07:00
Sven (AAMOS AI)
218bc44d08
Fas 2 steg 4: Quick Reconciliation (motor, API, app + 12-språks i18n)
2026-08-07 01:02:08 +07:00
Sven (AAMOS AI)
4385fe5125
Fas 2 steg 3: Household Trust Score (admin + i18n status i appen)
2026-08-06 23:45:28 +07:00
Sven (AAMOS AI)
bcf932d2ff
Fas 2 steg 2: Inventory Trust Engine - decay-profiler och cache-jobb
2026-08-06 23:25:32 +07:00
Sven (AAMOS AI)
8ae4bf6ec3
Fas 2 steg 1: Inventory Trust Engine - trust states pa inventory_items
2026-08-06 23:01:43 +07:00
Sven (AAMOS AI)
ac5340195a
Initial commit (unpacked platform)
2026-08-05 19:21:11 +07:00