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
0598e027ac
fix(profil): update user ID retrieval and improve fetch request error handling
2026-04-18 14:58:52 +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
00dc0d6c69
fix(docs): update NEXT_STEPS, README, and TEKNISK_BESKRIVNING with user role management details and new category structure
2026-04-18 14:41:04 +02:00
Nils-Johan Gynther
c8489ed613
fix(route): ensure PATCH method is explicitly defined in fetch request
2026-04-18 09:52:51 +02:00
Nils-Johan Gynther
b4280f020e
fix(route): update parameter type for PATCH function and correct image directory handling
2026-04-18 09:50:47 +02:00
Nils-Johan Gynther
e55d45c2bf
fix(compose): correct indentation for volumes section in recipe-frontend service
2026-04-18 09:47:59 +02:00
Nils-Johan Gynther
c4807afc29
fix(compose): correct environment variable formatting and add missing variables
2026-04-18 09:47:16 +02:00
Nils-Johan Gynther
be906564c3
fix(route): add turbopackIgnore comment to file path construction
2026-04-18 09:41:25 +02:00
Nils-Johan Gynther
0ea6cde83a
feat(middleware): migrate authentication logic from middleware.ts to proxy.ts
2026-04-18 09:38:42 +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
20330f6410
feat(matplan): enhance shopping list with inventory status indicators and summary
2026-04-18 09:13:35 +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
6cec7ca6dd
feat(seeds): add seed_product_categories.sql for product-category mapping
2026-04-18 08:41:57 +02:00
Nils-Johan Gynther
84b49bc186
feat(docs): update NEXT_STEPS, README, and TEKNISK_BESKRIVNING with new features and improvements
2026-04-17 23:20:21 +02:00
Nils-Johan Gynther
470763715d
fix(deploy): wait for db to be ready before running category seed
2026-04-17 23:06:24 +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
5a5c593eac
refactor(AdminProductList): remove unused product details and clean up JSX structure
2026-04-17 22:58:50 +02:00
Nils-Johan Gynther
a763f65654
feat(categories): add category seeding functionality and update deployment script
2026-04-17 22:57:53 +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
a81bd6b460
docs: update README, NEXT_STEPS, and technical description for category feature and auth
2026-04-17 22:39:57 +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
543059f405
feat(products): restore seed data for product initialization
2026-04-17 21:30:53 +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
befa15609a
feat(database): add script to reset product data and related tables
2026-04-17 21:20:45 +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
68b29f6d8e
feat(recipes): add CreateRecipeClient component for quick recipe import
...
refactor(recipes): integrate Navigation component into various recipe pages
2026-04-17 20:37:48 +02:00
Nils-Johan Gynther
28e938e66e
feat(api): use dynamic import for auth headers in fetchJson function
2026-04-17 20:29:52 +02:00
Nils-Johan Gynther
8b9ec31dee
fix(api): handle 401 responses by redirecting to login
2026-04-17 20:26:28 +02:00
Nils-Johan Gynther
5179e5c5be
feat(api): enhance fetchJson to include authentication headers for server requests
2026-04-17 20:19:42 +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
06438b77e5
fix(auth): update backend URL and API endpoint for authentication
2026-04-17 20:05:18 +02:00
Nils-Johan Gynther
7afa1ee3c4
feat(login): implement LoginForm component with improved error handling and styling
2026-04-17 20:01:25 +02:00
Nils-Johan Gynther
6e94f1f7a8
fix(login): safely access callbackUrl from searchParams
2026-04-17 19:59:37 +02:00
Nils-Johan Gynther
e06d05e8db
feat(auth): refactor sign-out functionality and update import paths
2026-04-17 19:58:45 +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
4c0411a7f2
feat: enhance RecipeDetailClient with portion section and instructions styling
2026-04-17 19:05:09 +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
8e0aed032c
feat: add servings field to Recipe model and implement inventory comparison functionality
2026-04-17 18:48:08 +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
11de0191be
feat: add container naming conventions and usage examples to technical documentation
2026-04-17 18:20:50 +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
a05d907608
feat: update NEXT_STEPS.md with status overview and prioritized improvements
2026-04-17 16:21:19 +02:00
Nils-Johan Gynther
4474c4da01
feat: implement import functionality with tab navigation for receipts and invoices
2026-04-16 21:39:23 +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