Nils-Johan Gynther
32358a4e54
fix: update Blob creation for file uploads to use Uint8Array for better buffer handling
2026-04-30 20:15:41 +02:00
Nils-Johan Gynther
8910e6817d
fix: update Blob creation for file uploads to handle buffer offsets correctly
2026-04-30 20:12:10 +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
046791b63e
feat: allow application/octet-stream MIME type for PDF uploads in receipt import
2026-04-30 13:38:23 +02:00
Nils-Johan Gynther
cee62397fc
fix: jwt-auth.guard handleRequest wrong signature causing null.switchToHttp crash
2026-04-30 13:34:29 +02:00
Nils-Johan Gynther
0e525b0d17
fix: receipt-import 201/octet-stream, quick-import types, exception filter guard
2026-04-30 13:25:02 +02:00
Nils-Johan Gynther
1def3c588e
feat: refactor QuickImportService to remove ReceiptParser and streamline import logic for PDF and image uploads
...
Co-authored-by: Copilot <copilot@github.com >
2026-04-30 13:18:41 +02:00
Nils-Johan Gynther
57fe168543
feat: allow application/octet-stream MIME type for PDF uploads in receipt import
...
Co-authored-by: Copilot <copilot@github.com >
2026-04-30 13:04:23 +02:00
Nils-Johan Gynther
87372f0d15
feat: enhance JWT authentication and quick import functionality with logging for better traceability
...
Co-authored-by: Copilot <copilot@github.com >
2026-04-30 12:19:21 +02:00
Nils-Johan Gynther
df1da1da2b
feat: implement ReceiptParser for handling receipt imports from PDF and image formats
...
Co-authored-by: Copilot <copilot@github.com >
2026-04-30 11:47:42 +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
28606d7abd
feat(import): enhance image URL handling and error reporting during recipe import
2026-04-22 22:00:47 +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
fbd7b3a745
fix: add missing index for productId in PantryItem table migration
2026-04-22 18:50:20 +02:00
Nils-Johan Gynther
7e311eddff
fix: correct comment syntax for unique constraint in MealPlanEntry model
2026-04-22 18:41:38 +02:00
Nils-Johan Gynther
4482129fca
feat: make pantry items and meal plan entries user-scoped; update related services and controllers
2026-04-22 18:38:04 +02:00
Nils-Johan Gynther
2acf66e4c4
feat: enhance pantry management with new features and UI improvements
2026-04-21 16:09:33 +02:00
Nils-Johan Gynther
81b63b3fdb
feat: implement inventory and pantry management views with CRUD functionality and user-friendly interfaces
2026-04-21 14:43:18 +02:00
Nils-Johan Gynther
864c84d2e5
feat: implement AI categorization for products and add premium access guard
2026-04-21 13:55:12 +02:00
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
4074b850cb
refactor: simplify unit conversion tests by importing utility functions directly
2026-04-21 10:52:49 +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
e370062b5c
feat: enhance CORS configuration and implement throttling for API endpoints; add admin role checks in controllers
2026-04-21 08:17:44 +02:00
Nils-Johan Gynther
7748ad311f
feat: implement security headers and rate limiting; update environment variables and documentation
2026-04-21 08:06:21 +02:00
Nils-Johan Gynther
c1d51c771e
feat: add helmet middleware for security and implement Content Security Policy in Next.js configuration
2026-04-21 07:44:04 +02:00
Nils-Johan Gynther
2b6fe71e53
feat(products): enhance logging in create method for better request tracking
2026-04-19 17:10:04 +02:00
Nils-Johan Gynther
3ad634f348
feat(auth): add detailed logging in JwtAuthGuard and JwtStrategy for better debugging
...
feat(products): enhance logging in create method to track requests and user details
2026-04-19 17:08:14 +02:00
Nils-Johan Gynther
976a72612e
feat(inventory): add origin field to InventoryItem and update related DTOs and services
2026-04-19 15:11:35 +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
045f160655
feat(api): implement retry logic for Mistral API calls in receipt import and AI services
2026-04-19 11:31:05 +02:00
Nils-Johan Gynther
cd14e59ff8
fix(receipt-import): update receipt import model to 'mistral-small-2603'
2026-04-19 11:10:14 +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
94462b60c9
fix(controller): update users controller route to remove 'api' prefix
2026-04-18 15:02:38 +02:00
Nils-Johan Gynther
a67f9cb2c1
fix(controller): add missing closing brace in UsersController class
2026-04-18 14:51:17 +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
c5ccef2313
feat(auth): implement role-based access control and user management features
2026-04-18 09:34:22 +02:00
Nils-Johan Gynther
10bb96dae8
feat(dtos): add IsInt validation to productId in CreateInventoryDto and UpdateInventoryDto
2026-04-18 09:03:38 +02:00
Nils-Johan Gynther
fd188a3f95
refactor(inventory): remove unused fields from InventoryItem and update related DTOs
2026-04-18 09:01:14 +02:00
Nils-Johan Gynther
a7fb9a585a
feat(products): add UpsertNutritionDto import to products controller
2026-04-17 23:01:41 +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
a9e83544c5
feat(profile): add user profile management with first and last name fields
2026-04-17 20:44:23 +02:00
Nils-Johan Gynther
5bc2b60176
feat(user): add ownedProducts relation to User model
2026-04-17 20:06:44 +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
a4ea9be7a1
feat: enhance product model with subcategory, brand, tags, and nutrition; update related DTOs and services
2026-04-17 18:11:06 +02:00