Nils-Johan Gynther
7383497cda
fix: update Dockerfile to ensure proper user permissions for Flutter build
2026-04-21 22:01:58 +02:00
Nils-Johan Gynther
39384a0e74
feat: update API base URL handling and improve Caddy configuration for Flutter app
2026-04-21 21:59:47 +02:00
Nils-Johan Gynther
ac5891394e
fix: add missing network configuration for proxy in Docker Compose
2026-04-21 21:49:05 +02:00
Nils-Johan Gynther
cdfca35b9e
refactor: clean up imports in api_client and auth_repository files
2026-04-21 21:41:15 +02:00
Nils-Johan Gynther
3996456f6f
feat: add Flutter web frontend with authentication and recipe management features
2026-04-21 21:29:47 +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
69f05e6b43
feat: update Caddy routing documentation to include pantry API endpoint and emphasize useAuthFetch for client components
2026-04-21 14:52:20 +02:00
Nils-Johan Gynther
c57f4bde19
feat: integrate authFetch for API calls in InventoryView and PantryView, and add pantry route with authentication
2026-04-21 14:49:20 +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
82c3dc3fee
feat: update API method from POST to PATCH for backfill-canonical endpoint with necessary frontend adjustments
2026-04-21 13:57:00 +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
83722123d2
feat: enhance error handling with user-friendly messages and improve response parsing
2026-04-21 13:38:59 +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
8e9b90028f
docs: update TEKNISK_BESKRIVNING.md to reflect changes in authentication middleware and role-based access control; remove obsolete middleware.ts file
2026-04-21 10:30:30 +02:00
Nils-Johan Gynther
60f6064664
docs: update NEXT_STEPS.md with latest notes on role protection, rate limiting, and PII encryption tasks
2026-04-21 10:27:35 +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
eb7adda612
docs: enhance NEXT_STEPS.md with AI logging and audit requirements; update TEKNISK_BESKRIVNING.md with Caddy configuration details
2026-04-20 17:14:04 +02:00
Nils-Johan Gynther
b140fb71f0
docs: add product launch plan with key areas and action steps
2026-04-20 15:36:43 +02:00
Nils-Johan Gynther
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
2026-04-20 15:24:15 +02:00
Nils-Johan Gynther
41a5170ed2
docs: update NEXT_STEPS.md and TEKNISK_BESKRIVNING.md with seed script instructions and path corrections
2026-04-20 10:32:28 +02:00
Nils-Johan Gynther
30fb8b265b
docs: enhance technical description with detailed development environment and deployment workflow
2026-04-20 10:26:18 +02:00
Nils-Johan Gynther
96b98cdc2f
feat: expand category structure in seed_all.sql with new categories and subcategories
2026-04-20 10:15:01 +02:00
nilsjohan
02549dc3e6
Update categories for table products
2026-04-20 10:01:34 +02:00
Nils-Johan Gynther
1131745666
fix: update seed documentation to clarify source and process for categories and products
2026-04-19 23:21:46 +02:00
Nils-Johan Gynther
924ef649fc
refactor: reorganize seed_all.sql for improved clarity and structure
2026-04-19 23:13:09 +02:00
Nils-Johan Gynther
c589447cf8
fix: add LIMIT clause to product category updates for 'Skafferi' to ensure single result
2026-04-19 22:58:14 +02:00
Nils-Johan Gynther
27af419320
fix: remove 'Övrigt' category and limit product category updates to a single result
2026-04-19 22:57:03 +02:00
Nils-Johan Gynther
89f70c74e5
fix: add LIMIT clause to category selection for 'Läsk' to ensure single result
2026-04-19 22:48:55 +02:00
Nils-Johan Gynther
e7a1606816
Refactor code structure for improved readability and maintainability
2026-04-19 22:46:10 +02:00
Nils-Johan Gynther
7538117c26
fix: update product seed data by adding vinegar and correcting insertion method for fresh herbs
2026-04-19 22:25:04 +02:00
Nils-Johan Gynther
3270fab2fc
Implement feature X to enhance user experience and optimize performance
2026-04-19 22:24:10 +02:00
Nils-Johan Gynther
ee2da83c71
feat: add initial product seed data for various categories
2026-04-19 22:11:04 +02:00
Nils-Johan Gynther
a3bf4b1337
fix: update NEXT_STEPS and TEKNISK_BESKRIVNING with completed features and authentication details
2026-04-19 22:00:13 +02:00
Nils-Johan Gynther
01d1bd2639
fix: lagg till SessionProvider i root layout sa useSession() fungerar
2026-04-19 21:55:22 +02:00
Nils-Johan Gynther
0f71d2569b
fix: force-dynamic pa write-sidan + saker useSession i useAuthFetch
2026-04-19 21:50:41 +02:00
Nils-Johan Gynther
8ab807aba2
fix: ta bort middleware.ts (Next.js 16 anvander proxy.ts), uppdatera matcher
2026-04-19 21:49:15 +02:00
Nils-Johan Gynther
b4d9e3dd5f
refactor: useAuthFetch-hook för automatisk JWT-header i klientanrop
2026-04-19 21:48:13 +02:00
Nils-Johan Gynther
92d0b066f1
fix: skicka Authorization-header i klientens direktanrop till /api/recipes
...
Caddy routar /api/recipes* direkt till NestJS (bypassing Next.js).
Klient-komponenter maste lagga till JWT-token sjalva via useSession().
Pavaerkade filer:
- RecipeDetailClient.tsx (PATCH, DELETE, POST image)
- ImportRecipePage.tsx (POST /api/recipes)
- WriteRecipePage.tsx (POST /api/recipes)
2026-04-19 21:46:09 +02:00
Nils-Johan Gynther
b34f141967
fix: withAuth standalone fallback om request.auth saknar accessToken
2026-04-19 21:25:36 +02:00
Nils-Johan Gynther
ff0859a7b1
debug: lägg till withAuth-loggning + middleware matcher för /api
2026-04-19 21:24:53 +02:00
Nils-Johan Gynther
487cbea443
fix: ta bort NextRequest-typning i profile/route.ts withAuth handler
2026-04-19 21:14:41 +02:00
Nils-Johan Gynther
0946617edb
fix: ta bort extra } i recipe-preview-proxy/route.ts
2026-04-19 21:13:40 +02:00
Nils-Johan Gynther
722440b9b5
fix: konvertera alla API route handlers till withAuth wrapper
...
Ersätter getAuthHeaders() + auth() standalone med withAuth() wrapper
i alla route handlers. Auth() standalone fungerar inte korrekt i
Next.js 16 + NextAuth beta.28 pga async cookies() kompatibilitet.
withAuth() använder auth() i wrapper-form sa att request.auth
populeras direkt av NextAuth.
Pavaerkade filer: 27 route handlers + ny lib/with-auth.ts
2026-04-19 21:11:14 +02:00
Nils-Johan Gynther
390e979cdb
feat(RecipeDetailClient): update inventory preview section and button labels for clarity
2026-04-19 20:28:04 +02:00
Nils-Johan Gynther
ee7bb8a397
fix: remove old matplan route after rename to matsedel
2026-04-19 20:10:30 +02:00
Nils-Johan Gynther
a0eaef2992
fix(ForslagTab): correct relative import path for auth-headers
2026-04-19 20:09:23 +02:00