feat(frontend): QR-Code-Dialog auf Objekt-Detailseiten (Modul 22)

Wiederverwendbarer QrCodeDialog (authentifizierter Blob-Fetch)
auf Volk-, Bienenstand-, Koenigin-, Honigcharge-Detailseiten und
je Lagerbehaelter-Zeile eingebunden.
This commit is contained in:
Nick Szaunig committed 2026-08-22 10:58:40 +02:00
1 parent dd88b6a92c
commit 8b7fd61c1c
8 files changed
+102 -3

No files matched your search

@@ -4,6 +4,7 @@ import { useParams } from "next/navigation";
import { useMutation, useQuery } from "@tanstack/react-query";
import { fetchHoneyBatch, fetchHoneyBatchTraceability } from "@/lib/honey-batches/api";
import { exportHoneyBatchTraceabilityPdf } from "@/lib/export/api";
import { QrCodeDialog } from "@/components/qr-code-dialog";
import { Badge } from "@/components/ui/badge";
import { Button } from "@/components/ui/button";
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
@@ -40,7 +41,10 @@ export default function HoneyBatchDetailPage() {
<Card className="max-w-lg">
<CardHeader className="flex flex-row items-center justify-between">
<CardTitle>{honeyBatch.batchNumber}</CardTitle>
<Badge>{honeyBatch.status}</Badge>
<div className="flex items-center gap-2">
<Badge>{honeyBatch.status}</Badge>
<QrCodeDialog entityType="honey-batches" id={honeyBatch.id} />
</div>
</CardHeader>
<CardContent className="flex flex-col gap-3 text-sm">
{honeyBatch.honeyType ? <p>Sorte: {honeyBatch.honeyType}</p> : null}