Commit Graph

  • e370062b5c feat: enhance CORS configuration and implement throttling for API endpoints; add admin role checks in controllers Nils-Johan Gynther 2026-04-21 08:17:44 +02:00
  • 7748ad311f feat: implement security headers and rate limiting; update environment variables and documentation Nils-Johan Gynther 2026-04-21 08:06:21 +02:00
  • c1d51c771e feat: add helmet middleware for security and implement Content Security Policy in Next.js configuration Nils-Johan Gynther 2026-04-21 07:44:04 +02:00
  • eb7adda612 docs: enhance NEXT_STEPS.md with AI logging and audit requirements; update TEKNISK_BESKRIVNING.md with Caddy configuration details Nils-Johan Gynther 2026-04-20 17:14:04 +02:00
  • b140fb71f0 docs: add product launch plan with key areas and action steps Nils-Johan Gynther 2026-04-20 15:36:43 +02:00
  • 361847b337 Ta bort alla referenser till recipe-document-converter från dokumentation och kodbas Lägg till riktlinje att båda microservices (importer och shopping/todo-lista) ska använda SQLite för portabilitet och enkelhet Förtydliga att microservices ska dela teknisk grund med recipe-app: JWT-baserad autentisering, rollhantering och API-design Nils-Johan Gynther 2026-04-20 15:24:15 +02:00
  • 41a5170ed2 docs: update NEXT_STEPS.md and TEKNISK_BESKRIVNING.md with seed script instructions and path corrections Nils-Johan Gynther 2026-04-20 10:32:28 +02:00
  • 30fb8b265b docs: enhance technical description with detailed development environment and deployment workflow Nils-Johan Gynther 2026-04-20 10:26:18 +02:00
  • 96b98cdc2f feat: expand category structure in seed_all.sql with new categories and subcategories Nils-Johan Gynther 2026-04-20 10:15:01 +02:00
  • 02549dc3e6 Update categories for table products nilsjohan 2026-04-20 10:01:34 +02:00
  • 1131745666 fix: update seed documentation to clarify source and process for categories and products Nils-Johan Gynther 2026-04-19 23:21:46 +02:00
  • 924ef649fc refactor: reorganize seed_all.sql for improved clarity and structure Nils-Johan Gynther 2026-04-19 23:13:09 +02:00
  • c589447cf8 fix: add LIMIT clause to product category updates for 'Skafferi' to ensure single result Nils-Johan Gynther 2026-04-19 22:58:14 +02:00
  • 27af419320 fix: remove 'Övrigt' category and limit product category updates to a single result Nils-Johan Gynther 2026-04-19 22:57:03 +02:00
  • 89f70c74e5 fix: add LIMIT clause to category selection for 'Läsk' to ensure single result Nils-Johan Gynther 2026-04-19 22:48:55 +02:00
  • e7a1606816 Refactor code structure for improved readability and maintainability Nils-Johan Gynther 2026-04-19 22:46:10 +02:00
  • 7538117c26 fix: update product seed data by adding vinegar and correcting insertion method for fresh herbs Nils-Johan Gynther 2026-04-19 22:25:04 +02:00
  • 3270fab2fc Implement feature X to enhance user experience and optimize performance Nils-Johan Gynther 2026-04-19 22:24:10 +02:00
  • ee2da83c71 feat: add initial product seed data for various categories Nils-Johan Gynther 2026-04-19 22:11:04 +02:00
  • a3bf4b1337 fix: update NEXT_STEPS and TEKNISK_BESKRIVNING with completed features and authentication details Nils-Johan Gynther 2026-04-19 22:00:13 +02:00
  • 01d1bd2639 fix: lagg till SessionProvider i root layout sa useSession() fungerar Nils-Johan Gynther 2026-04-19 21:55:22 +02:00
  • 0f71d2569b fix: force-dynamic pa write-sidan + saker useSession i useAuthFetch Nils-Johan Gynther 2026-04-19 21:50:41 +02:00
  • 8ab807aba2 fix: ta bort middleware.ts (Next.js 16 anvander proxy.ts), uppdatera matcher Nils-Johan Gynther 2026-04-19 21:49:15 +02:00
  • b4d9e3dd5f refactor: useAuthFetch-hook för automatisk JWT-header i klientanrop Nils-Johan Gynther 2026-04-19 21:48:13 +02:00
  • 92d0b066f1 fix: skicka Authorization-header i klientens direktanrop till /api/recipes Nils-Johan Gynther 2026-04-19 21:46:09 +02:00
  • b34f141967 fix: withAuth standalone fallback om request.auth saknar accessToken Nils-Johan Gynther 2026-04-19 21:25:36 +02:00
  • ff0859a7b1 debug: lägg till withAuth-loggning + middleware matcher för /api Nils-Johan Gynther 2026-04-19 21:24:53 +02:00
  • 487cbea443 fix: ta bort NextRequest-typning i profile/route.ts withAuth handler Nils-Johan Gynther 2026-04-19 21:14:41 +02:00
  • 0946617edb fix: ta bort extra } i recipe-preview-proxy/route.ts Nils-Johan Gynther 2026-04-19 21:13:40 +02:00
  • 722440b9b5 fix: konvertera alla API route handlers till withAuth wrapper Nils-Johan Gynther 2026-04-19 21:11:14 +02:00
  • 390e979cdb feat(RecipeDetailClient): update inventory preview section and button labels for clarity Nils-Johan Gynther 2026-04-19 20:28:04 +02:00
  • ee7bb8a397 fix: remove old matplan route after rename to matsedel Nils-Johan Gynther 2026-04-19 20:10:30 +02:00
  • a0eaef2992 fix(ForslagTab): correct relative import path for auth-headers Nils-Johan Gynther 2026-04-19 20:09:23 +02:00
  • 31b7da82cd feat(Navigation): update navigation links and rename 'Matplan' to 'Matsedel' feat(matsedel): add MealPlanClient and page for meal planning feat(profil): add AI and suggestion tabs for admin users Nils-Johan Gynther 2026-04-19 20:06:33 +02:00
  • 7e296acb60 feat(ReceiptImportClient): add modal for enlarged receipt preview and improve file selection interaction Nils-Johan Gynther 2026-04-19 19:49:22 +02:00
  • 645741669a fix(ReceiptImportClient): remove extra comma in selectedCategoryId assignment Nils-Johan Gynther 2026-04-19 19:40:00 +02:00
  • afe89439c1 feat(api): update category fetch requests to include tree structure Nils-Johan Gynther 2026-04-19 19:38:49 +02:00
  • 43fb31d0b9 fix(EditProductForm): prevent unnecessary flattening of empty child nodes Nils-Johan Gynther 2026-04-19 19:32:14 +02:00
  • 6e297403d6 feat(products): update event handling for product list refresh on creation and reset actions Nils-Johan Gynther 2026-04-19 19:25:02 +02:00
  • a7680b40af feat(product): trigger product list refresh on product creation event Nils-Johan Gynther 2026-04-19 19:22:46 +02:00
  • 829b7a80fc feat(api): add PATCH endpoint for updating product status with authentication Nils-Johan Gynther 2026-04-19 19:15:54 +02:00
  • 151a7e335d feat(inventory): update form submission to use async function in InventoryConsumeForm and InventoryEditForm Nils-Johan Gynther 2026-04-19 19:12:05 +02:00
  • 6f24aee18d feat(api): implement new API routes for bulk category updates, inventory consumption, and product management with authentication Nils-Johan Gynther 2026-04-19 19:11:09 +02:00
  • 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 Nils-Johan Gynther 2026-04-19 19:04:04 +02:00
  • e0836cd269 feat(actions): enhance updateProductWithTags function with additional fields for canonicalName and category Nils-Johan Gynther 2026-04-19 18:58:22 +02:00
  • b8475cdffe fix(actions): correct console log formatting in updateProductWithTags function Nils-Johan Gynther 2026-04-19 18:56:44 +02:00
  • 068e8a58e5 feat(docs): add architecture principles for using API routes over Server Actions in Next.js Nils-Johan Gynther 2026-04-19 18:32:54 +02:00
  • 051fb11714 feat(api): implement PATCH and DELETE routes for product management with error handling and logging Nils-Johan Gynther 2026-04-19 18:31:19 +02:00
  • f12e673af5 refactor(DatabsTab): remove unnecessary product fetching and pass empty props to components Nils-Johan Gynther 2026-04-19 18:23:36 +02:00
  • e9b5de4407 feat(admin): refactor product management components for improved state handling and data fetching Nils-Johan Gynther 2026-04-19 18:22:43 +02:00
  • 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 Nils-Johan Gynther 2026-04-19 18:12:29 +02:00
  • 90b02c4690 feat(product): implement updateProductWithTags function for updating product and tags Nils-Johan Gynther 2026-04-19 17:52:43 +02:00
  • 4250b8d2bc fix(imports): update import path for auth module in products-create and products-update routes Nils-Johan Gynther 2026-04-19 17:38:20 +02:00
  • be6529f021 refactor(route): update parameter handling in PATCH function for improved readability Nils-Johan Gynther 2026-04-19 17:37:10 +02:00
  • 2a412406e2 fix(imports): update import path for auth module in product create and update routes Nils-Johan Gynther 2026-04-19 17:36:11 +02:00
  • c970a5805f refactor(auth): replace import path for getAuthHeaders with auth function in product routes Nils-Johan Gynther 2026-04-19 17:34:34 +02:00
  • 16703bb8eb fix(imports): correct import path for getAuthHeaders in product create and update routes Nils-Johan Gynther 2026-04-19 17:33:39 +02:00
  • 4bf5733c76 feat(api): implement product creation and category update endpoints Nils-Johan Gynther 2026-04-19 17:32:55 +02:00
  • 81a8390bb7 refactor(actions): enhance error handling and ensure serializability in product actions Nils-Johan Gynther 2026-04-19 17:30:18 +02:00
  • 40b0d5fd3a refactor(actions): return only serializable fields in product actions Nils-Johan Gynther 2026-04-19 17:28:28 +02:00
  • 7f51829462 feat(receipt-import): integrate server actions for product creation and category updates Nils-Johan Gynther 2026-04-19 17:26:59 +02:00
  • 2ac6112db2 fix(actions): correct import path for getAuthHeaders in actions.ts Nils-Johan Gynther 2026-04-19 17:22:37 +02:00
  • 184ecaad61 feat(receipt-import): refactor product creation and category update to use server actions Nils-Johan Gynther 2026-04-19 17:17:41 +02:00
  • 2b6fe71e53 feat(products): enhance logging in create method for better request tracking Nils-Johan Gynther 2026-04-19 17:10:04 +02:00
  • 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 Nils-Johan Gynther 2026-04-19 17:08:14 +02:00
  • 6c4683242c feat(auth): enhance logging for JWT and session handling in auth callbacks Nils-Johan Gynther 2026-04-19 16:59:34 +02:00
  • 2a7df22bd9 feat(products): add debug logging for auth headers in POST request Nils-Johan Gynther 2026-04-19 15:22:36 +02:00
  • 4e85d1309b feat(receipt-import): add debug logging for isAdmin role in ReceiptImportClient Nils-Johan Gynther 2026-04-19 15:17:08 +02:00
  • 976a72612e feat(inventory): add origin field to InventoryItem and update related DTOs and services Nils-Johan Gynther 2026-04-19 15:11:35 +02:00
  • 3b0208b5b4 fix(api): correct parameter handling in PATCH request for product updates Nils-Johan Gynther 2026-04-19 14:39:12 +02:00
  • 632d084dbe feat(products): implement category selection and product creation in receipt import Nils-Johan Gynther 2026-04-19 13:39:26 +02:00
  • 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 Nils-Johan Gynther 2026-04-19 11:42:10 +02:00
  • 045f160655 feat(api): implement retry logic for Mistral API calls in receipt import and AI services Nils-Johan Gynther 2026-04-19 11:31:05 +02:00
  • 15c24df1a7 feat(ai): enhance AI function display with additional styling Nils-Johan Gynther 2026-04-19 11:24:53 +02:00
  • f2f9f46502 feat(receipt-import): enhance product search functionality and error handling Nils-Johan Gynther 2026-04-19 11:23:20 +02:00
  • cd14e59ff8 fix(receipt-import): update receipt import model to 'mistral-small-2603' Nils-Johan Gynther 2026-04-19 11:10:14 +02:00
  • f3db5ba51a feat(ai): implement AI models management and configuration in admin panel Nils-Johan Gynther 2026-04-19 11:07:15 +02:00
  • e7c8fd8416 feat(inventory): add API routes for GET and POST inventory Nils-Johan Gynther 2026-04-19 10:52:11 +02:00
  • 054a19ed7c MAJOR UPPDATE: "First Ai" feat: add AI categorization for products and enhance user management Nils-Johan Gynther 2026-04-19 10:34:21 +02:00
  • 0286ab0991 docs: update documentation links for AI features and next steps Nils-Johan Gynther 2026-04-19 09:44:15 +02:00
  • 0ae91917f0 Merge branch 'main' of ssh://gitea.gynther.se:2222/nilsjohan/recipe-app Nils-Johan Gynther 2026-04-19 09:27:07 +02:00
  • ee1f4c58a1 fix(tree): sort category nodes by name in flattenTree function Nils-Johan Gynther 2026-04-19 08:31:59 +02:00
  • 01f8022ab7 Uppdaterade .env och tog bort backup_recipe_app.sh nilsjohan 2026-04-19 07:26:54 +02:00
  • b9c79644cf Ignorerar backup-filer för .env nilsjohan 2026-04-19 07:25:17 +02:00
  • 588c3df55a Lade till backup av .env nilsjohan 2026-04-19 07:24:26 +02:00
  • 42bd71798d Merge remote-tracking branch 'origin/main' nilsjohan 2026-04-19 07:21:46 +02:00
  • 49a912fe33 Added AI-FUNKTIONER.md nilsjohan 2026-04-19 06:52:05 +02:00
  • a069d7d3d7 fix(categories): update 'Kött' category name to 'Kött och fågel' Nils-Johan Gynther 2026-04-18 15:16:02 +02:00
  • 34e0c44a40 fix(navigation): reorder admin and user links in navigation menu Nils-Johan Gynther 2026-04-18 15:12:34 +02:00
  • 94462b60c9 fix(controller): update users controller route to remove 'api' prefix Nils-Johan Gynther 2026-04-18 15:02:38 +02:00
  • 0598e027ac fix(profil): update user ID retrieval and improve fetch request error handling Nils-Johan Gynther 2026-04-18 14:58:52 +02:00
  • a67f9cb2c1 fix(controller): add missing closing brace in UsersController class Nils-Johan Gynther 2026-04-18 14:51:17 +02:00
  • 537a4f8ab6 feat: Implement admin user management features Nils-Johan Gynther 2026-04-18 14:49:02 +02:00
  • 00dc0d6c69 fix(docs): update NEXT_STEPS, README, and TEKNISK_BESKRIVNING with user role management details and new category structure Nils-Johan Gynther 2026-04-18 14:41:04 +02:00
  • c8489ed613 fix(route): ensure PATCH method is explicitly defined in fetch request Nils-Johan Gynther 2026-04-18 09:52:51 +02:00
  • b4280f020e fix(route): update parameter type for PATCH function and correct image directory handling Nils-Johan Gynther 2026-04-18 09:50:47 +02:00
  • e55d45c2bf fix(compose): correct indentation for volumes section in recipe-frontend service Nils-Johan Gynther 2026-04-18 09:47:59 +02:00
  • c4807afc29 fix(compose): correct environment variable formatting and add missing variables Nils-Johan Gynther 2026-04-18 09:47:16 +02:00
  • be906564c3 fix(route): add turbopackIgnore comment to file path construction Nils-Johan Gynther 2026-04-18 09:41:25 +02:00
  • 0ea6cde83a feat(middleware): migrate authentication logic from middleware.ts to proxy.ts Nils-Johan Gynther 2026-04-18 09:38:42 +02:00