Commit Graph

492 Commits

Author SHA1 Message Date
Nils-Johan Gynther 4eeaef9435 feat(reset-script): add option to rebuild images during full database reset 2026-05-03 11:52:12 +02:00
Nils-Johan Gynther 6762100619 fix(reset-script): improve error handling and skip logic for git pull in reset script 2026-05-03 11:47:25 +02:00
Nils-Johan Gynther fe6fac8464 feat(reset-script): add script for full database reset and rebuild process 2026-05-03 11:41:49 +02:00
Nils-Johan Gynther d47d6466a8 fix(deploy): update seed script references to use full seed_all.sql 2026-05-03 11:38:38 +02:00
Nils-Johan Gynther 70645232ab feat(profile): add admin tools for manual category updates in backend cache 2026-05-03 11:19:50 +02:00
Nils-Johan Gynther 2612a64ca5 fix(receipt-import): add missing UseGuards import in receipt-import.controller.ts
Co-authored-by: Copilot <copilot@github.com>
2026-05-03 10:54:36 +02:00
Nils-Johan Gynther b2eb870ec7 feat(receipt-import): add refresh categories endpoint and UI integration
Co-authored-by: Copilot <copilot@github.com>
2026-05-03 10:48:06 +02:00
Nils-Johan Gynther 6503d29801 Merge branch 'main' of ssh://gitea.gynther.se:2222/nilsjohan/recipe-app 2026-05-03 08:14:39 +02:00
Nils-Johan Gynther d4769519c2 fix(receipt-import): correct regex for single pack extraction to handle unit formatting 2026-05-03 08:14:35 +02:00
nilsjohan 2da69f70b9 Merge remote-tracking branch 'origin/main' 2026-05-03 07:56:31 +02:00
nilsjohan 1bba4d92f8 Loggar och chmod +x på skripts 2026-05-03 07:54:35 +02:00
Nils-Johan Gynther f108034742 fix(receipt-import): upgrade confidence level for next suggestion based on rule application 2026-05-02 23:36:19 +02:00
Nils-Johan Gynther b7d68afd58 chore(receipt-import): include quantity and package details in decision trace 2026-05-02 23:12:24 +02:00
Nils-Johan Gynther 5286db4385 fix(receipt-import): harden bacon signal detection with pork category fallback chain 2026-05-02 23:09:45 +02:00
Nils-Johan Gynther fa34a3a16d feat(receipt-tracing): add scripts to enable and disable receipt trace decisions 2026-05-02 23:02:10 +02:00
Nils-Johan Gynther 1c73261c0b chore(compose): add RECEIPT_TRACE_DECISIONS env toggle for recipe-api 2026-05-02 22:59:53 +02:00
Nils-Johan Gynther 4345547cbf chore(receipt-import): add decision-path tracing for category pipeline 2026-05-02 22:58:45 +02:00
Nils-Johan Gynther 60056b94bf fix(receipt-import): infer size from raw name when unit is missing 2026-05-02 22:52:21 +02:00
Nils-Johan Gynther 60ab2465aa fix(receipt-import): add hard bacon override to pork category 2026-05-02 22:51:17 +02:00
Nils-Johan Gynther f45ec08c58 fix(receipt-import): replace invalid isNotEmpty string check 2026-05-02 22:47:07 +02:00
Nils-Johan Gynther 2cf0372eef fix(receipt-import): strengthen bacon detection with OCR-tolerant rule signals 2026-05-02 21:01:38 +02:00
Nils-Johan Gynther a88d6e2452 feat(receipt-import): run rules and AI for all users with trust-aware overrides 2026-05-02 20:48:47 +02:00
Nils-Johan Gynther 6733a50cfb fix(receipt-import): route egg items away from allergy dairy 2026-05-02 20:32:50 +02:00
Nils-Johan Gynther d9113bb89a fix(receipt-import): map standard milk away from lactose-free branch 2026-05-02 20:32:29 +02:00
Nils-Johan Gynther d2567e158c fix(receipt-import): classify vispgradde under dairy matlagning rules 2026-05-02 20:31:07 +02:00
Nils-Johan Gynther d823143611 feat(receipt-import): expand deterministic category rules and AI contradiction guards 2026-05-02 20:28:40 +02:00
Nils-Johan Gynther 38613e0cf3 fix(auth): expose both id and userId in JWT validate result 2026-05-02 20:11:24 +02:00
Nils-Johan Gynther f12d04bd8b fix(receipt-import): show create-product errors in modal dialog 2026-05-02 20:08:08 +02:00
Nils-Johan Gynther dd4c2fe8b3 fix(receipt-import): show explicit validation errors on create-and-select 2026-05-02 20:00:41 +02:00
Nils-Johan Gynther 0103a22558 fix(receipt-import): surface create-product errors and harden response parsing 2026-05-02 19:53:11 +02:00
Nils-Johan Gynther 64bc9997ad fix(prisma): explicitly drop Product_ownerId_fkey before NOT NULL 2026-05-02 19:43:00 +02:00
Nils-Johan Gynther e0c5fb67b9 fix(prisma): drop owner FK before making ownerId NOT NULL 2026-05-02 19:40:50 +02:00
Nils-Johan Gynther aab0a19d1c fix(prisma): make owner FK migration resilient on MariaDB 2026-05-02 19:22:53 +02:00
Nils-Johan Gynther b272ab9faf fix(prisma): delete RecipeIngredient rows before ownerless Product cleanup 2026-05-02 19:22:30 +02:00
Nils-Johan Gynther 5842646e77 feat(products): include ownerId in product creation and enforce its requirement 2026-05-02 19:12:26 +02:00
Nils-Johan Gynther 4e568b4d2e feat(migration): enforce ownerId requirement in Product table
- Removed all products without an owner to maintain data integrity.
- Updated ownerId column to be non-nullable.
- Modified foreign key constraint for ownerId to use ON DELETE CASCADE.
2026-05-02 19:05:33 +02:00
Nils-Johan Gynther ec24f49836 feat(categories): add new categories for Kondis & fika and Kaffebröd, and Te & choklad 2026-05-02 17:44:01 +02:00
Nils-Johan Gynther 1604751b65 feat(receipt-import): add rule-based category suggestion logic for items
feat(migrations): add new categories for lactose-free products and allergy options
2026-05-02 16:42:33 +02:00
Nils-Johan Gynther 2563738fcf Add Swedish localization for various app actions and inventory management strings 2026-05-02 15:42:00 +02:00
Nils-Johan Gynther 4e81f56225 fix(receipt-import): correct Swedish labels for packaging quantity and count 2026-05-02 10:26:50 +02:00
Nils-Johan Gynther 9161de5d52 feat(receipt-import): enhance package handling with new fields and UI adjustments 2026-05-02 10:11:31 +02:00
Nils-Johan Gynther f9dc55d42c feat(migrations): add admin-controlled toggle for recipe sharing in User table 2026-05-02 09:27:50 +02:00
Nils-Johan Gynther 755258a4bc feat(auth): refactor token retrieval to use maybeWhen for improved null handling 2026-05-02 09:24:45 +02:00
Nils-Johan Gynther 41ae7d4d06 feat(recipes): add recipe visibility and sharing features
- Implemented functionality to set recipe visibility (public/private) with appropriate checks for user permissions.
- Added ability to share recipes with other users, including validation for existing users and permissions.
- Introduced new DTOs for setting visibility and sharing recipes.
- Updated RecipesController and RecipesService to handle new endpoints for visibility and sharing.
- Enhanced inventory preview to consider user permissions and shared recipes.
- Updated front-end to support new sharing and visibility features, including UI changes for recipe detail and admin user management.
2026-05-02 09:19:59 +02:00
Nils-Johan Gynther f67bf8baef feat: update AI categorization model to 'mistral-tiny' for improved performance 2026-05-02 08:39:52 +02:00
Nils-Johan Gynther d6fef0145c feat: implement hybrid alias model for receipt import and enhance alias learning in UI 2026-05-02 00:24:30 +02:00
Nils-Johan Gynther d64f34f4ff feat: enhance product matching logic with improved scoring and tokenization 2026-05-02 00:05:09 +02:00
Nils-Johan Gynther d3dac61765 feat: separate AI and product suggestion chips, normalize product names, and validate AI categories 2026-05-01 23:59:16 +02:00
Nils-Johan Gynther 2c71970fb5 feat: enhance AI suggestion display in edit dialog with product name and category labels 2026-05-01 23:41:18 +02:00
Nils-Johan Gynther 51e654c592 feat: implement product name normalization to Title Case with smart rules 2026-05-01 23:33:33 +02:00