Commit Graph

50 Commits

Author SHA1 Message Date
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 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 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 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 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 2a7df22bd9 feat(products): add debug logging for auth headers in POST request 2026-04-19 15:22:36 +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 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 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 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 be906564c3 fix(route): add turbopackIgnore comment to file path construction 2026-04-18 09:41:25 +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 adcfa97c06 refactor(categories): change controller route from 'api/categories' to 'categories'
fix(products): update category fetch logic to ensure data is an array
refactor(products): simplify GET handler by integrating authentication directly
2026-04-17 22:13:16 +02:00
Nils-Johan Gynther cc8be88462 feat(categories): implement category management with hierarchical structure and update product association 2026-04-17 21:16:58 +02:00
Nils-Johan Gynther a9e83544c5 feat(profile): add user profile management with first and last name fields 2026-04-17 20:44:23 +02:00
Nils-Johan Gynther ce0cc6fbf0 feat(auth): implement user authentication with JWT and NextAuth
- Added user registration and login functionality with JWT authentication.
- Created auth controller, service, and module in the backend.
- Implemented user model and user products management.
- Integrated NextAuth for session management on the frontend.
- Added middleware for protecting routes and handling public access.
- Updated frontend API routes to include authorization headers.
- Enhanced recipe and user product models to support ownership and visibility.
- Created registration and login pages in the frontend.
- Added necessary types for NextAuth session management.
2026-04-17 19:57:08 +02:00
Nils-Johan Gynther 8d1584cdb8 feat: add API routes for GET, PATCH, and DELETE operations on recipes 2026-04-17 19:01:09 +02:00
Nils-Johan Gynther 8e0aed032c feat: add servings field to Recipe model and implement inventory comparison functionality 2026-04-17 18:48:08 +02:00
Nils-Johan Gynther af88a0dc81 feat: implement receipt alias functionality with CRUD operations and integrate with receipt import 2026-04-16 21:06:16 +02:00
Nils-Johan Gynther a12abe0402 feat: add receipt import functionality with UI and backend integration 2026-04-16 20:02:57 +02:00
Nils-Johan Gynther 1b82b02021 feat: implement meal planning feature with CRUD operations and UI integration 2026-04-16 19:37:09 +02:00
Nils-Johan Gynther 1b9df4d20d feat: add API route for serving images with path validation 2026-04-16 19:10:06 +02:00
Nils-Johan Gynther 940c8b52ee fix: saknad POST /api/recipes proxy och revalidatePath for admin/products 2026-04-15 22:11:57 +02:00
Nils-Johan Gynther ed732ea4e6 fix: använd NEXT_PUBLIC_API_URL_INTERNAL i quick-import-proxy 2026-04-15 21:25:20 +02:00
Nils-Johan Gynther 8efd9f6e1e fix: update parameter type in POST function to use Promise for id 2026-04-15 19:53:15 +02:00
Nils-Johan Gynther 73bf5193c4 feat: add image handling to recipes
- Implemented image downloading and optimization in QuickImportService.
- Added imageUrl field to CreateRecipeDto for recipe creation.
- Created an endpoint in RecipesController to update recipe images.
- Enhanced RecipesService to handle image URL updates and optimizations.
- Updated Docker Compose to mount a volume for recipe images.
- Refactored frontend to display images in recipe grids and detail views.
- Added a new utility function for downloading and optimizing images.
- Created a new API route for handling image uploads.
- Introduced RecipeGrid component for better recipe display.
- Updated RecipeDetailClient to manage image updates and display.
- Added migration for new imageUrl column in the Recipe table.
2026-04-15 19:46:50 +02:00
Nils-Johan Gynther 1ce1318bf5 feat: Implement PDF recipe parser and quick import service for file and URL inputs 2026-04-14 22:24:28 +02:00
Nils-Johan Gynther 2c92e07d39 fix: Update backend URL in QuickImportProxy to use the correct API endpoint 2026-04-12 09:29:15 +02:00
Nils-Johan Gynther c814fbdddf refactor: Enhance logging in QuickImportProxy for better debugging 2026-04-12 08:48:27 +02:00
Nils-Johan Gynther 4f183df711 feat: Implement quick import feature for recipes
- Added QuickImportController and QuickImportService to handle recipe imports from URLs and file paths.
- Created QuickImportModule to encapsulate the quick import functionality.
- Developed frontend ImportFilePage for users to upload files or enter URLs for recipe import.
- Integrated API proxy to communicate with the backend for quick import requests.
- Implemented WriteRecipePage for users to manually input recipes with Markdown support.
- Added page routing for the new import and write recipe functionalities.
2026-04-12 07:41:18 +02:00
Nils-Johan Gynther 5448da1b98 New import in version 0.1 2026-04-11 15:38:24 +02:00
Nils-Johan Gynther fd8480197c Refactor quantity input parsing to handle additional units and improve conversion logic across inventory forms and recipe pages 2026-04-09 23:36:36 +02:00
Nils-Johan Gynther 03361f7b7d Refactor inventory forms to include unit and location options; update quantity input handling 2026-04-09 23:25:52 +02:00
Nils-Johan Gynther bc89e3038b Implement recipe retrieval methods and enhance inventory item types for better data handling 2026-04-09 22:16:09 +02:00
Nils-Johan Gynther d1870decac 11D recipe preview 2026-04-09 15:12:54 +02:00
nilsjohan 962f4e4be5 Recipe-app main 2026-04-09 09:14:39 +02:00