v0.6.1 — Pantry: categories, price tracking, and autocomplete

This commit is contained in:
Bonna Moon
2026-06-29 17:37:59 -05:00
parent 0d52ea5ad1
commit 62a0089ec2
8 changed files with 407 additions and 56 deletions

View File

@@ -12,6 +12,7 @@ export default async function PantryPage() {
select: {
id: true, name: true, description: true, quantity: true, unit: true,
storedAt: true, bestBefore: true, source: true, plantId: true, notes: true,
pantryCategory: true, pantrySubcategory: true, pricePaid: true, priceUnit: true,
location: { select: { id: true, name: true } },
plant: { select: { id: true, commonName: true, variety: true } },
},
@@ -31,6 +32,10 @@ export default async function PantryPage() {
bestBefore: i.bestBefore,
source: i.source,
notes: i.notes,
pantryCategory: i.pantryCategory,
pantrySubcategory: i.pantrySubcategory,
pricePaid: i.pricePaid != null ? Number(i.pricePaid) : null,
priceUnit: i.priceUnit,
locationId: i.location?.id ?? null,
locationName: i.location?.name ?? null,
plantId: i.plant?.id ?? null,