Commit Graph

45 Commits

Author SHA1 Message Date
Nils-Johan Gynther 87eab4d0ca feat: add functionality for managing deleted products, including restoration and permanent deletion 2026-04-21 13:30:44 +02:00
Nils-Johan Gynther afe89439c1 feat(api): update category fetch requests to include tree structure 2026-04-19 19:38:49 +02:00
Nils-Johan Gynther 43fb31d0b9 fix(EditProductForm): prevent unnecessary flattening of empty child nodes 2026-04-19 19:32:14 +02:00
Nils-Johan Gynther 6e297403d6 feat(products): update event handling for product list refresh on creation and reset actions 2026-04-19 19:25:02 +02:00
Nils-Johan Gynther a7680b40af feat(product): trigger product list refresh on product creation event 2026-04-19 19:22:46 +02:00
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 e0836cd269 feat(actions): enhance updateProductWithTags function with additional fields for canonicalName and category 2026-04-19 18:58:22 +02:00
Nils-Johan Gynther b8475cdffe fix(actions): correct console log formatting in updateProductWithTags function 2026-04-19 18:56:44 +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 e9b5de4407 feat(admin): refactor product management components for improved state handling and data fetching 2026-04-19 18:22:43 +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 90b02c4690 feat(product): implement updateProductWithTags function for updating product and tags 2026-04-19 17:52:43 +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 15c24df1a7 feat(ai): enhance AI function display with additional styling 2026-04-19 11:24:53 +02:00
Nils-Johan Gynther f2f9f46502 feat(receipt-import): enhance product search functionality and error handling 2026-04-19 11:23:20 +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 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 ee1f4c58a1 fix(tree): sort category nodes by name in flattenTree function 2026-04-19 08:31:59 +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 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