From a1dffef708401d771b0c4de5f25789acf4cef903 Mon Sep 17 00:00:00 2001 From: Nils-Johan Gynther Date: Mon, 25 May 2026 08:14:55 +0200 Subject: [PATCH] docs: update technical documentation with import field harmonization details Added detailed section about harmonization of import fields between receipt-import, flyer-import, and inventory table. Includes key changes, benefits, and technical details about TypeScript type safety and backward compatibility. Resolves migration issues via prisma migrate resolve. --- TEKNISK_BESKRIVNING.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/TEKNISK_BESKRIVNING.md b/TEKNISK_BESKRIVNING.md index 3cba085..6c1ed47 100644 --- a/TEKNISK_BESKRIVNING.md +++ b/TEKNISK_BESKRIVNING.md @@ -182,6 +182,19 @@ CI-workflow (`.github/workflows/test.yml`) uppdaterad (2026-05-12): - Tog bort `continue-on-error` på build-steget — pipeline fångar nu verkliga fel. - `npm audit --audit-level=high` rapporterar **0 sårbarheter**. +Harmonisering av importfält (2026-05-24) +Mål: Skapa konsistens mellan kvitto-import, flyer-import och inventory-tabellen +Nyckeländringar: +ParsedReceiptItem fick categoryId för kategorisättning +FlyerImportItem fick origin som mappas från signals.originCountries[0] +originCountries array-stöd lades till i inventory för framtida användning +Fördelar: Minskat felrisk, enklare underhåll, bättre integration +Tekniska detaljer: +Typ-säkra ändringar med korrekta TypeScript-typer +Bakåtkompatibla ändringar +Löst migrationsproblem via prisma migrate resolve + + ## Referenser - [README.md](README.md)