docs: update technical documentation with import field harmonization details
Test Suite / test (24.15.0) (push) Has been cancelled
Test Suite / test (24.15.0) (push) Has been cancelled
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.
This commit is contained in:
@@ -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.
|
- Tog bort `continue-on-error` på build-steget — pipeline fångar nu verkliga fel.
|
||||||
- `npm audit --audit-level=high` rapporterar **0 sårbarheter**.
|
- `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
|
## Referenser
|
||||||
|
|
||||||
- [README.md](README.md)
|
- [README.md](README.md)
|
||||||
|
|||||||
Reference in New Issue
Block a user