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
a4ea9be7a1
feat: enhance product model with subcategory, brand, tags, and nutrition; update related DTOs and services
2026-04-17 18:11:06 +02:00
Nils-Johan Gynther
2a0da005ff
feat: add receiptName field to InventoryItem model and update related DTOs and service
2026-04-16 21:22:34 +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
b8744f625b
feat: enhance receipt import to support PDF files with updated UI and backend processing
2026-04-16 20:22:27 +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
9292e30abc
feat: add tests for normalizeName and RecipesService methods, including unit conversion and alias normalization
2026-04-16 19:22:14 +02:00
Nils-Johan Gynther
d5b360fd62
Refactor logging in IcaRecipeParser and QuickImportService to use NestJS Logger
...
- Updated IcaRecipeParser to replace console.log statements with Logger for better logging practices.
- Enhanced QuickImportService with Logger for consistent logging and error handling.
- Changed quantity validation in CreateRecipeIngredientDto and CreateRecipeDto to allow zero.
- Removed CanonicalNameForm and NameForm components from the frontend.
- Updated EditProductForm to use a select dropdown for categories instead of a text input.
- Added validation for product name, canonical name, and category length in product update action.
- Refactored unit options into a separate file for better reusability across components.
- Removed unused API fetching functions and inventory types to clean up the codebase.
2026-04-16 18:18:27 +02:00
Nils-Johan Gynther
719c291e36
fix: TS2322 null not assignable to string | undefined i products.service
2026-04-15 22:13:37 +02:00
Nils-Johan Gynther
47d1aafd9e
feat: PantryItem (Baslager) - tabell, backend-modul och frontend-sida
2026-04-15 22:06:40 +02:00
Nils-Johan Gynther
65ec74ac7d
feat: redigeringsformulär för produkter i admin med namn, canonical name, kategori och mjukradering
2026-04-15 22:02:58 +02:00
Nils-Johan Gynther
1844368cf8
fix: återställ url i schema.prisma, ta bort ogiltig datasourceUrl från constructor
2026-04-15 21:14:48 +02:00
Nils-Johan Gynther
d5cb8d27e0
fix: add type assertion for datasourceUrl in PrismaService constructor
2026-04-15 21:10:44 +02:00
Nils-Johan Gynther
649f76fa72
fix: update PrismaService constructor to include datasourceUrl configuration
2026-04-15 21:07:00 +02:00
Nils-Johan Gynther
ba6ac036b5
fix: remove datasource configuration from PrismaService constructor
2026-04-15 21:03:24 +02:00
Nils-Johan Gynther
5d80dfef6f
fix: update PrismaService constructor to use correct datasource format and include prisma.config.ts in Dockerfile
2026-04-15 21:01:49 +02:00
Nils-Johan Gynther
c9ef587eb1
feat: add Prisma configuration file and update Dockerfile to include it
2026-04-15 20:53:45 +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
4a241c1cb9
refactor: Remove PDF parser and quick import controller/service implementations
2026-04-14 22:28:37 +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
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
9ca7fcce96
feat: Add optional note field to ingredient parsing and update related components
2026-04-12 10:30:05 +02:00
Nils-Johan Gynther
03727ee3c5
feat: Implement auto-parsing of markdown in WriteRecipePage with error handling
2026-04-12 10:06:51 +02:00
Nils-Johan Gynther
a028b8ce3a
feat: Enhance recipeToMarkdown to include source URL in output
2026-04-12 09:47:09 +02:00
Nils-Johan Gynther
0e18f382c8
fix: Add type annotations for better type safety in recipe parsers
2026-04-12 09:41:35 +02:00
Nils-Johan Gynther
4e2616fe2e
feat: Implement site-specific recipe parsers for ICA and generic fallback
2026-04-12 09:39:32 +02:00
Nils-Johan Gynther
ea307e6a6c
feat: Add expandable section for creating products with integrated product form
2026-04-12 08:29:28 +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
23ced5e8ee
fix: Export QuickImportResult interface for proper type usage in QuickImportController
2026-04-12 07:44:02 +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
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
556a0fdc30
Add sorting by name functionality and implement AdminProductList component for product management
2026-04-10 19:10:50 +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
2efb5b5627
Implement health check service and global exception handling
2026-04-10 18:14:48 +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
898ac2ef19
Add CreateRecipePage component for recipe creation with ingredients. Updated UX
2026-04-09 22:53:52 +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