Commit Graph

114 Commits

Author SHA1 Message Date
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 2c92e07d39 fix: Update backend URL in QuickImportProxy to use the correct API endpoint 2026-04-12 09:29:15 +02:00
Nils-Johan Gynther 4d3873c9e4 refactor: Clean up and standardize JSX structure in MergePreviewForm component 2026-04-12 09:08:24 +02:00
Nils-Johan Gynther a76fc5ecc5 fix: Correct structure of expandable section in MergePreviewForm component 2026-04-12 09:01:42 +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 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 730168d237 refactor: Update Dockerfile to copy built recipe-document-converter for proper dependency resolution 2026-04-12 08:06:50 +02:00
Nils-Johan Gynther ddfb126b98 refactor: Adjust Dockerfile to copy recipe-document-converter before npm install for proper dependency resolution 2026-04-12 07:59:28 +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 ea971c2f63 Enhance README and TEKNISK_BESKRIVNING with detailed features, API endpoints, and Markdown import process for Recipe App 2026-04-12 07:26:20 +02:00
Nils-Johan Gynther 4ea55012bb feat: add import recipes link to navigation 2026-04-11 17:52:48 +02:00
Nils-Johan Gynther 5c5177432d refactor: update Dockerfile stages for improved build process and add converter dependency 2026-04-11 17:43:34 +02:00
Nils-Johan Gynther 2330ea938c feat: remove import service module and integration guide
- Deleted ImportModule and ImportService files as part of the refactor.
- Removed the Integration Guide and README documentation for the import service.
- Cleaned up Docker Compose files related to the import service.
- Added a new parser for recipe markdown format with structured data extraction.
- Introduced TypeScript configuration and package.json for the new service structure.
2026-04-11 17:20:53 +02:00
Nils-Johan Gynther d3997348a8 Remove debug verification step for recipe-document-converter from Dockerfile 2026-04-11 16:49:14 +02:00
Nils-Johan Gynther 4189f94e0e Convert submodule to regular directory 2026-04-11 16:46:48 +02:00
Nils-Johan Gynther 343416a28d Refactor Dockerfile to adjust installation order of recipe-document-converter for improved build reliability 2026-04-11 16:30:09 +02:00
Nils-Johan Gynther 4f6d0b0687 Refactor Dockerfile and package.json to remove file dependency on recipe-document-converter for cleaner npm install process 2026-04-11 16:20:46 +02:00
Nils-Johan Gynther f95cc007d7 Remove package-lock.json copy from Dockerfile to streamline build process 2026-04-11 16:12:27 +02:00
Nils-Johan Gynther 7dfe5feaa0 Refactor Dockerfile to streamline backend build process by consolidating stages and improving dependency management 2026-04-11 16:09:50 +02:00
Nils-Johan Gynther 14099ab5bf Refactor Dockerfile to simplify installation by removing symlink references and directly copying recipe-document-converter 2026-04-11 16:02:43 +02:00
Nils-Johan Gynther d25c7c22b1 Refactor Dockerfile to eliminate symlink issues by directly copying recipe-document-converter to node_modules 2026-04-11 15:53:36 +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
nilsjohan 8552c6f757 Lade till .gitignore för node_modules och lock-filer 2026-04-11 14:57:41 +02:00
nilsjohan 2d808c47a4 Lade till node_modules i .gitignore 2026-04-11 14:54:08 +02:00
nilsjohan 6ad97aedee Lade till recipe-document-converter 2026-04-11 14:52:30 +02:00
Nils-Johan Gynther 8fce96e1ce Add Navigation component and integrate it into multiple pages for consistent navigation 2026-04-10 20:03:43 +02:00
Nils-Johan Gynther 3dc63c0641 Update instructions field in Recipe model to use Text type for better storage of longer content 2026-04-10 20:00:15 +02:00
Nils-Johan Gynther bc2480b3cb Enhance form styling and add Markdown help toggle in recipe creation and editing pages. Enhance form and styling on other pages aswell. 2026-04-10 19:56:49 +02:00
Nils-Johan Gynther 34d10eb93f Add Markdown support and preview functionality in recipe creation and editing pages 2026-04-10 19:40:41 +02:00
Nils-Johan Gynther a63e84ce06 Add technical documentation for Recipe App, including overview, version info, frontend and backend features, infrastructure, and API endpoint 2026-04-10 2026-04-10 19:26:06 +02:00
Nils-Johan Gynther 8e9ab3d113 Add recipe instructions display and missing ingredients alert in RecipePreview component 2026-04-10 19:20:51 +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 33cb4e5328 Add InventoryList component for improved inventory display and search functionality 2026-04-10 18:57:21 +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 a743f832a2 Refactor ingredient mapping to exclude location and convert quantity to number 2026-04-10 18:31:48 +02:00
Nils-Johan Gynther 31389cc4d1 Add @types/express dependency to package.json 2026-04-10 18:28:20 +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 650a1bb55c Add error handling for missing recipe ID in EditRecipePage 2026-04-10 17:59:34 +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 fb68f926b1 Update recipe-api service in compose.yml to use pre-built image instead of build context. ex. recipe-api:local 2026-04-10 17:20:59 +02:00
Nils-Johan Gynther b9d5d87235 Remove unused trace file from the frontend build directory. Updated compose.yml 2026-04-10 17:16:34 +02:00
Nils-Johan Gynther 32e643f6ab Refactor fetchJson function to use relative paths in the browser and avoid mixed content issues 2026-04-09 23:58:19 +02:00