Commit Graph

24 Commits

Author SHA1 Message Date
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 5a5c593eac refactor(AdminProductList): remove unused product details and clean up JSX structure 2026-04-17 22:58:50 +02:00
Nils-Johan Gynther 21dc06829a feat(meal-plan): add servings field to MealPlanEntry and update related functionality
feat(products): implement bulk update for product categories

feat(recipes): add servings input to WriteRecipePage and update MealPlanClient for servings management

refactor(types): enhance Product and Category types with additional properties
2026-04-17 22:50:41 +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 ce8e561c03 feat(products): change reset-all endpoint method from DELETE to POST 2026-04-17 21:25:42 +02:00
Nils-Johan Gynther e41ee760b9 feat(products): add reset functionality to delete all products and related data 2026-04-17 21:22:54 +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 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 8a86b0aebd refactor: remove unused inputStyle and clean up EditProductForm component 2026-04-17 18:25:10 +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 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 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 b795bbfc71 feat: Update ingredient units and improve layout responsiveness across various components 2026-04-12 11:08: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 ea307e6a6c feat: Add expandable section for creating products with integrated product form 2026-04-12 08:29:28 +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 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 556a0fdc30 Add sorting by name functionality and implement AdminProductList component for product management 2026-04-10 19:10:50 +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 898ac2ef19 Add CreateRecipePage component for recipe creation with ingredients. Updated UX 2026-04-09 22:53:52 +02:00
nilsjohan 962f4e4be5 Recipe-app main 2026-04-09 09:14:39 +02:00