feat: lunch dishes card with create/edit/delete

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Matt
2026-04-29 02:42:07 +02:00
parent ec00942620
commit 939a13c0e8
2 changed files with 167 additions and 1 deletions

View File

@@ -3,6 +3,7 @@
import { trpc } from '@/lib/trpc/client'
import { Skeleton } from '@/components/ui/skeleton'
import { LunchEventConfig } from './lunch-event-config'
import { LunchDishes } from './lunch-dishes'
export function LunchTab({ programId }: { programId: string }) {
const { data: event, isLoading } = trpc.lunch.getEvent.useQuery({ programId })
@@ -12,7 +13,12 @@ export function LunchTab({ programId }: { programId: string }) {
return (
<div className="space-y-6">
<LunchEventConfig programId={programId} event={event} />
{/* Other cards mount in Tasks 15-18 once event.enabled. */}
{event.enabled && (
<>
<LunchDishes programId={programId} lunchEventId={event.id} />
{/* Manifest, externals, recap actions mount in Tasks 16-18. */}
</>
)}
</div>
)
}