Commit Graph

416 Commits

Author SHA1 Message Date
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
Nils-Johan Gynther e4f1aae047 feat: add package quantity normalization and AI suggestion handling in receipt import 2026-05-01 23:18:32 +02:00
Nils-Johan Gynther 32e83caa35 feat: enhance category picker functionality with preselection support and new existing category picker 2026-05-01 23:05:01 +02:00
Nils-Johan Gynther 4cbd658fa0 feat: enhance receipt import functionality with category selection and PDF opening support 2026-05-01 22:46:58 +02:00
Nils-Johan Gynther 5c263a14df feat: add receipt import session management with file handling and item editing support 2026-05-01 08:57:34 +02:00
Nils-Johan Gynther f983458ff0 feat: implement two-step category and product picker with private product creation support 2026-05-01 02:44:30 +02:00
Nils-Johan Gynther 4f387fe6eb feat: enhance category selection flow by adding preselection support and a select button 2026-05-01 02:41:02 +02:00
Nils-Johan Gynther 8bc1bd3e21 feat: add user-scope design rules for new functionality in documentation 2026-05-01 02:33:48 +02:00
Nils-Johan Gynther 9ee061d5f3 feat: add isPrivate field to Product model and implement private product creation and retrieval 2026-05-01 02:29:38 +02:00
Nils-Johan Gynther 1fd910b561 feat: implement two-step category and product picker for enhanced selection 2026-05-01 02:19:13 +02:00
Nils-Johan Gynther 62667fd76d feat: add categoryId mapping to product data in CreateInventoryScreen 2026-05-01 02:09:58 +02:00
Nils-Johan Gynther 84dfbc4a52 feat: enhance ProductPickerField and ParsedReceiptItem to support category filtering in receipt import 2026-05-01 02:05:53 +02:00
Nils-Johan Gynther 47801935e9 feat: enhance ProductPickerField to use rawName for initial query in receipt import 2026-05-01 02:00:13 +02:00
Nils-Johan Gynther f4fea7b92c feat: add initial query support to ProductPickerField and enhance ParsedReceiptItem with categorySuggestionPath 2026-05-01 01:50:18 +02:00
Nils-Johan Gynther 997d62ade8 refactor: remove ReceiptImportTab and its state management for cleaner code structure 2026-05-01 01:37:35 +02:00
Nils-Johan Gynther 73d653aef9 feat: complete receipt import phase 6b with review flow, editing, and destination selection 2026-05-01 01:33:55 +02:00
Nils-Johan Gynther d4b35f4a5b feat: implement receipt import functionality with editing capabilities and product selection 2026-05-01 01:32:30 +02:00
Nils-Johan Gynther b31862d1ff fix: add check for categories_supplement.sql before executing seed script 2026-05-01 01:20:03 +02:00
Nils-Johan Gynther bfe9cb46fa refactor: remove unused parser files and update ParsedReceiptItem model with additional fields 2026-05-01 01:16:10 +02:00
Nils-Johan Gynther 879501292d fix: update deploy script to include git pull commands for recipe-app and microservice-importer 2026-05-01 01:06:44 +02:00
Nils-Johan Gynther 7f494b75a4 fix: update deploy script to specify compose files for building and starting services 2026-05-01 00:59:21 +02:00
Nils-Johan Gynther fc9c4f6bb4 fix: enhance response parsing in ImportRepository to handle JSON array and improve logging 2026-05-01 00:46:43 +02:00
Nils-Johan Gynther 9417d30574 Update to .md-files 2026-05-01 00:28:09 +02:00
Nils-Johan Gynther 32358a4e54 fix: update Blob creation for file uploads to use Uint8Array for better buffer handling 2026-04-30 20:15:41 +02:00
Nils-Johan Gynther 8910e6817d fix: update Blob creation for file uploads to handle buffer offsets correctly 2026-04-30 20:12:10 +02:00
Nils-Johan Gynther 797241f262 feat: migrate import functionality to microservice-importer for quick-import, receipt parsing, and markdown parsing 2026-04-30 20:00:32 +02:00
Nils-Johan Gynther 046791b63e feat: allow application/octet-stream MIME type for PDF uploads in receipt import 2026-04-30 13:38:23 +02:00