diff --git a/.claude/settings.local.json b/.claude/settings.local.json index 6f13fc6..d786477 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -128,7 +128,13 @@ "Bash(git commit -m 'Chore: Migrate database from SQLite to PostgreSQL on VM *)", "Bash(git pull *)", "Bash(git rm *)", - "Bash(git commit -m 'Chore: Remove .env from version control for security *)" + "Bash(git commit -m 'Chore: Remove .env from version control for security *)", + "Bash(git fetch *)", + "Bash(git ls-remote *)", + "Bash(timeout 30 git push origin main --force)", + "Bash(GIT_TRACE=1 git push origin main --force)", + "Bash(pkill -f \"node.exe\")", + "PowerShell(Stop-Process -Name node -Force -ErrorAction SilentlyContinue)" ] } } diff --git a/prisma/schema.prisma b/prisma/schema.prisma index fd99866..60e8bca 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -26,6 +26,7 @@ model Product { category String description String basePrice Int // cents — used for ready-made items on /products + plainPrice Int? // cents — used for plain/blank items personalisedPrice Int? // cents — used for made-to-order items on /made-to-order; falls back to basePrice if not set colors String // JSON array of hex strings, e.g. ["#17181C","#FBF9F5"] colorPhotos String? // JSON object mapping hex -> photo data URL, e.g. {"#17181C":"data:..."}. diff --git a/src/app/admin/products/[id]/edit/page.tsx b/src/app/admin/products/[id]/edit/page.tsx index 36bb2ae..9479ed9 100644 --- a/src/app/admin/products/[id]/edit/page.tsx +++ b/src/app/admin/products/[id]/edit/page.tsx @@ -220,23 +220,39 @@ export default async function EditProductPage({ params }: { params: { id: string -
- Higher price for made-to-order items. Leave blank to use the same price as ready-made. -
+For plain/blank items
+For made-to-order items
+