Commit Graph

541 Commits

Author SHA1 Message Date
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
nilsjohan 01f8022ab7 Uppdaterade .env och tog bort backup_recipe_app.sh 2026-04-19 07:26:54 +02:00
nilsjohan b9c79644cf Ignorerar backup-filer för .env 2026-04-19 07:25:17 +02:00
nilsjohan 588c3df55a Lade till backup av .env 2026-04-19 07:24:26 +02:00
nilsjohan 42bd71798d Merge remote-tracking branch 'origin/main' 2026-04-19 07:21:46 +02:00
nilsjohan 49a912fe33 Added AI-FUNKTIONER.md 2026-04-19 06:52:05 +02:00
Nils-Johan Gynther a069d7d3d7 fix(categories): update 'Kött' category name to 'Kött och fågel' 2026-04-18 15:16:02 +02:00
Nils-Johan Gynther 34e0c44a40 fix(navigation): reorder admin and user links in navigation menu 2026-04-18 15:12:34 +02:00
Nils-Johan Gynther 94462b60c9 fix(controller): update users controller route to remove 'api' prefix 2026-04-18 15:02:38 +02:00
Nils-Johan Gynther 0598e027ac fix(profil): update user ID retrieval and improve fetch request error handling 2026-04-18 14:58:52 +02:00
Nils-Johan Gynther a67f9cb2c1 fix(controller): add missing closing brace in UsersController class 2026-04-18 14:51:17 +02:00
Nils-Johan Gynther 537a4f8ab6 feat: Implement admin user management features
- Added adminCreateUser endpoint and corresponding DTO for creating users.
- Implemented deleteUser and resetPassword functionalities for admin users.
- Introduced updateEmail functionality for admin users.
- Updated UsersService to handle user creation, deletion, password reset, and email updates.
- Modified UsersController to include new admin routes with appropriate role checks.
- Refactored frontend navigation to link to user management under profile.
- Created new profile tabs for user management and database management.
- Developed AnvandareClient component for user management, including user creation, deletion, role changes, and password resets.
- Added DatabsTab for managing product listings and merging duplicates.
- Enhanced MinProfilTab for user profile management with form handling.
2026-04-18 14:49:02 +02:00
Nils-Johan Gynther 00dc0d6c69 fix(docs): update NEXT_STEPS, README, and TEKNISK_BESKRIVNING with user role management details and new category structure 2026-04-18 14:41:04 +02:00
Nils-Johan Gynther c8489ed613 fix(route): ensure PATCH method is explicitly defined in fetch request 2026-04-18 09:52:51 +02:00
Nils-Johan Gynther b4280f020e fix(route): update parameter type for PATCH function and correct image directory handling 2026-04-18 09:50:47 +02:00
Nils-Johan Gynther e55d45c2bf fix(compose): correct indentation for volumes section in recipe-frontend service 2026-04-18 09:47:59 +02:00
Nils-Johan Gynther c4807afc29 fix(compose): correct environment variable formatting and add missing variables 2026-04-18 09:47:16 +02:00
Nils-Johan Gynther be906564c3 fix(route): add turbopackIgnore comment to file path construction 2026-04-18 09:41:25 +02:00
Nils-Johan Gynther 0ea6cde83a feat(middleware): migrate authentication logic from middleware.ts to proxy.ts 2026-04-18 09:38:42 +02:00
Nils-Johan Gynther e11652412f fix(imports): correct import paths for auth module in admin user routes 2026-04-18 09:37:45 +02:00
Nils-Johan Gynther c5ccef2313 feat(auth): implement role-based access control and user management features 2026-04-18 09:34:22 +02:00
Nils-Johan Gynther 20330f6410 feat(matplan): enhance shopping list with inventory status indicators and summary 2026-04-18 09:13:35 +02:00
Nils-Johan Gynther 10bb96dae8 feat(dtos): add IsInt validation to productId in CreateInventoryDto and UpdateInventoryDto 2026-04-18 09:03:38 +02:00
Nils-Johan Gynther fd188a3f95 refactor(inventory): remove unused fields from InventoryItem and update related DTOs 2026-04-18 09:01:14 +02:00
Nils-Johan Gynther 6cec7ca6dd feat(seeds): add seed_product_categories.sql for product-category mapping 2026-04-18 08:41:57 +02:00
Nils-Johan Gynther 84b49bc186 feat(docs): update NEXT_STEPS, README, and TEKNISK_BESKRIVNING with new features and improvements 2026-04-17 23:20:21 +02:00
Nils-Johan Gynther 470763715d fix(deploy): wait for db to be ready before running category seed 2026-04-17 23:06:24 +02:00
Nils-Johan Gynther a7fb9a585a feat(products): add UpsertNutritionDto import to products controller 2026-04-17 23:01:41 +02:00
Nils-Johan Gynther 5a5c593eac refactor(AdminProductList): remove unused product details and clean up JSX structure 2026-04-17 22:58:50 +02:00