Commit Graph

23 Commits

Author SHA1 Message Date
Nils-Johan Gynther 648e1856a1 feat: refactor recipe parsing logic; move parseRecipeMarkdown and related functions to a new utility file
Test Suite / test (24.15.0) (push) Has been cancelled
2026-05-04 21:28:06 +02:00
Nils-Johan Gynther a645d6a364 feat: refactor inventory and recipe services for improved error handling and code reuse; add systematic backend review plan
Test Suite / test (24.15.0) (push) Has been cancelled
2026-05-04 20:44:43 +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 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 71bc162015 feat(import): enhance image URL extraction and logging during recipe import 2026-04-22 22:08:05 +02:00
Nils-Johan Gynther c8510b431f fix(router): adjust type check for extra parameter in navigation
fix(import): ensure correct typing for passing markdown and imageUrl
fix(recipes): delete local image file on recipe deletion to avoid orphan files
2026-04-22 21:51:16 +02:00
Nils-Johan Gynther 5345b9e55e feat: implement unit conversion utilities and centralize unit definitions for consistency across frontend and backend 2026-04-21 10:51:07 +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 8e0aed032c feat: add servings field to Recipe model and implement inventory comparison functionality 2026-04-17 18:48:08 +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 b795bbfc71 feat: Update ingredient units and improve layout responsiveness across various components 2026-04-12 11:08:15 +02:00
Nils-Johan Gynther 3d4994f24d feat: Enhance ingredient parsing to support mixed fractions and add description extraction in recipe parsers 2026-04-12 10:50:59 +02:00
Nils-Johan Gynther f84ee39197 refactor: Simplify Dockerfile by removing recipe-document-converter build stage and update package.json to remove its dependency 2026-04-12 08:15:55 +02:00
Nils-Johan Gynther cff299b6e8 Enhance recipe service by importing ParsedIngredient and updating ingredient mapping for type safety 2026-04-11 15:49:26 +02:00
Nils-Johan Gynther 5448da1b98 New import in version 0.1 2026-04-11 15:38:24 +02:00
Nils-Johan Gynther dd17656e4c Add recipe deletion functionality and enhance inventory consumption details 2026-04-10 18:44:06 +02:00
Nils-Johan Gynther 0588c0d3d8 Add recipe existence check in update method and remove redundant quantity conversion 2026-04-10 18:22:47 +02:00
Nils-Johan Gynther a1f8fe228c Add update functionality for recipes and create edit page 2026-04-10 17:45:24 +02:00
Nils-Johan Gynther 3e38cb5f98 Add create method to RecipesService for recipe creation with ingredients 2026-04-09 22:23:13 +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 29910130f0 Enhance RecipePreview and RecipesService with additional inventory item properties and conversion logic 2026-04-09 22:09:19 +02:00
Nils-Johan Gynther 4fd3c8dc20 Add unit conversion and normalization methods to RecipesService 2026-04-09 17:17:08 +02:00
nilsjohan 962f4e4be5 Recipe-app main 2026-04-09 09:14:39 +02:00