Nils-Johan Gynther
a0eaef2992
fix(ForslagTab): correct relative import path for auth-headers
2026-04-19 20:09:23 +02:00
Nils-Johan Gynther
31b7da82cd
feat(Navigation): update navigation links and rename 'Matplan' to 'Matsedel'
...
feat(matsedel): add MealPlanClient and page for meal planning
feat(profil): add AI and suggestion tabs for admin users
2026-04-19 20:06:33 +02:00
Nils-Johan Gynther
7e296acb60
feat(ReceiptImportClient): add modal for enlarged receipt preview and improve file selection interaction
2026-04-19 19:49:22 +02:00
Nils-Johan Gynther
645741669a
fix(ReceiptImportClient): remove extra comma in selectedCategoryId assignment
2026-04-19 19:40:00 +02:00
Nils-Johan Gynther
afe89439c1
feat(api): update category fetch requests to include tree structure
2026-04-19 19:38:49 +02:00
Nils-Johan Gynther
43fb31d0b9
fix(EditProductForm): prevent unnecessary flattening of empty child nodes
2026-04-19 19:32:14 +02:00
Nils-Johan Gynther
6e297403d6
feat(products): update event handling for product list refresh on creation and reset actions
2026-04-19 19:25:02 +02:00
Nils-Johan Gynther
a7680b40af
feat(product): trigger product list refresh on product creation event
2026-04-19 19:22:46 +02:00
Nils-Johan Gynther
829b7a80fc
feat(api): add PATCH endpoint for updating product status with authentication
2026-04-19 19:15:54 +02:00
Nils-Johan Gynther
151a7e335d
feat(inventory): update form submission to use async function in InventoryConsumeForm and InventoryEditForm
2026-04-19 19:12:05 +02:00
Nils-Johan Gynther
6f24aee18d
feat(api): implement new API routes for bulk category updates, inventory consumption, and product management with authentication
2026-04-19 19:11:09 +02:00
Nils-Johan Gynther
1ae9b336d8
feat(api): implement bulk categorization and suggestion endpoints with authentication
...
refactor(actions): remove unused imports and console logs from product actions
refactor(EditProductForm): update category suggestion logic to use new API endpoint
2026-04-19 19:04:04 +02:00
Nils-Johan Gynther
e0836cd269
feat(actions): enhance updateProductWithTags function with additional fields for canonicalName and category
2026-04-19 18:58:22 +02:00
Nils-Johan Gynther
b8475cdffe
fix(actions): correct console log formatting in updateProductWithTags function
2026-04-19 18:56:44 +02:00
Nils-Johan Gynther
068e8a58e5
feat(docs): add architecture principles for using API routes over Server Actions in Next.js
2026-04-19 18:32:54 +02:00
Nils-Johan Gynther
051fb11714
feat(api): implement PATCH and DELETE routes for product management with error handling and logging
2026-04-19 18:31:19 +02:00
Nils-Johan Gynther
f12e673af5
refactor(DatabsTab): remove unnecessary product fetching and pass empty props to components
2026-04-19 18:23:36 +02:00
Nils-Johan Gynther
e9b5de4407
feat(admin): refactor product management components for improved state handling and data fetching
2026-04-19 18:22:43 +02:00
Nils-Johan Gynther
f12d881395
feat(api): add create and update product routes with authentication
...
refactor(admin): integrate router refresh after product updates in forms
fix(imports): update fetch paths for product creation and update in ReceiptImportClient
2026-04-19 18:12:29 +02:00
Nils-Johan Gynther
90b02c4690
feat(product): implement updateProductWithTags function for updating product and tags
2026-04-19 17:52:43 +02:00
Nils-Johan Gynther
4250b8d2bc
fix(imports): update import path for auth module in products-create and products-update routes
2026-04-19 17:38:20 +02:00
Nils-Johan Gynther
be6529f021
refactor(route): update parameter handling in PATCH function for improved readability
2026-04-19 17:37:10 +02:00
Nils-Johan Gynther
2a412406e2
fix(imports): update import path for auth module in product create and update routes
2026-04-19 17:36:11 +02:00
Nils-Johan Gynther
c970a5805f
refactor(auth): replace import path for getAuthHeaders with auth function in product routes
2026-04-19 17:34:34 +02:00
Nils-Johan Gynther
16703bb8eb
fix(imports): correct import path for getAuthHeaders in product create and update routes
2026-04-19 17:33:39 +02:00
Nils-Johan Gynther
4bf5733c76
feat(api): implement product creation and category update endpoints
2026-04-19 17:32:55 +02:00
Nils-Johan Gynther
81a8390bb7
refactor(actions): enhance error handling and ensure serializability in product actions
2026-04-19 17:30:18 +02:00
Nils-Johan Gynther
40b0d5fd3a
refactor(actions): return only serializable fields in product actions
2026-04-19 17:28:28 +02:00
Nils-Johan Gynther
7f51829462
feat(receipt-import): integrate server actions for product creation and category updates
2026-04-19 17:26:59 +02:00
Nils-Johan Gynther
2ac6112db2
fix(actions): correct import path for getAuthHeaders in actions.ts
2026-04-19 17:22:37 +02:00
Nils-Johan Gynther
184ecaad61
feat(receipt-import): refactor product creation and category update to use server actions
2026-04-19 17:17:41 +02:00
Nils-Johan Gynther
2b6fe71e53
feat(products): enhance logging in create method for better request tracking
2026-04-19 17:10:04 +02:00
Nils-Johan Gynther
3ad634f348
feat(auth): add detailed logging in JwtAuthGuard and JwtStrategy for better debugging
...
feat(products): enhance logging in create method to track requests and user details
2026-04-19 17:08:14 +02:00
Nils-Johan Gynther
6c4683242c
feat(auth): enhance logging for JWT and session handling in auth callbacks
2026-04-19 16:59:34 +02:00
Nils-Johan Gynther
2a7df22bd9
feat(products): add debug logging for auth headers in POST request
2026-04-19 15:22:36 +02:00
Nils-Johan Gynther
4e85d1309b
feat(receipt-import): add debug logging for isAdmin role in ReceiptImportClient
2026-04-19 15:17:08 +02:00
Nils-Johan Gynther
976a72612e
feat(inventory): add origin field to InventoryItem and update related DTOs and services
2026-04-19 15:11:35 +02:00
Nils-Johan Gynther
3b0208b5b4
fix(api): correct parameter handling in PATCH request for product updates
2026-04-19 14:39:12 +02:00
Nils-Johan Gynther
632d084dbe
feat(products): implement category selection and product creation in receipt import
2026-04-19 13:39:26 +02:00
Nils-Johan Gynther
39b91d8c87
feat(products): add public access to findAll and findAllTags endpoints
...
feat(ai): enhance AI admin client with status messages for API key configuration
refactor(api): remove authorization check from products route
2026-04-19 11:42:10 +02:00
Nils-Johan Gynther
045f160655
feat(api): implement retry logic for Mistral API calls in receipt import and AI services
2026-04-19 11:31:05 +02:00
Nils-Johan Gynther
15c24df1a7
feat(ai): enhance AI function display with additional styling
2026-04-19 11:24:53 +02:00
Nils-Johan Gynther
f2f9f46502
feat(receipt-import): enhance product search functionality and error handling
2026-04-19 11:23:20 +02:00
Nils-Johan Gynther
cd14e59ff8
fix(receipt-import): update receipt import model to 'mistral-small-2603'
2026-04-19 11:10:14 +02:00
Nils-Johan Gynther
f3db5ba51a
feat(ai): implement AI models management and configuration in admin panel
2026-04-19 11:07:15 +02:00
Nils-Johan Gynther
e7c8fd8416
feat(inventory): add API routes for GET and POST inventory
2026-04-19 10:52:11 +02:00
Nils-Johan Gynther
054a19ed7c
MAJOR UPPDATE: "First Ai"
...
feat: add AI categorization for products and enhance user management
- Integrated AI service for category suggestions in receipt import and product management.
- Added premium subscription feature for users with corresponding API endpoints.
- Implemented admin interface for managing pending product suggestions.
- Enhanced user management to include premium status and corresponding UI updates.
- Updated database schema to support new fields for premium status and product status.
2026-04-19 10:34:21 +02:00
Nils-Johan Gynther
0286ab0991
docs: update documentation links for AI features and next steps
2026-04-19 09:44:15 +02:00
Nils-Johan Gynther
0ae91917f0
Merge branch 'main' of ssh://gitea.gynther.se:2222/nilsjohan/recipe-app
2026-04-19 09:27:07 +02:00
Nils-Johan Gynther
ee1f4c58a1
fix(tree): sort category nodes by name in flattenTree function
2026-04-19 08:31:59 +02:00