feat(ernten): show only the remaining jars per batch
Docker Image bauen und veroeffentlichen / build-and-push (push) Successful in 4m6s

The batch list on a harvest page no longer states the batch's total
size ("12 von 300 Gläsern verfügbar"). It now reads "Es sind noch 12
Gläser verfügbar", with dedicated wording for a single jar and for a
sold-out batch, which reads scarcer and nudges customers to buy.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
Nick SzaunigandClaude Opus 5.5 committed 2026-10-01 00:23:20 +02:00
1 parent 55ae867f68
commit 15a457f66e
4 files changed
+17 -5

No files matched your search

+4 -2
View File
@@ -76,10 +76,12 @@ export default async function HarvestDetailPage(
<span className="flex items-center justify-between gap-4 text-sm">
<span className="font-serif text-xl text-heading tabular-nums">{batch.code}</span>
<span className="text-ink/65 tabular-nums">
{t.erntenDetailPage.glassesAvailable(batch.remainingGlasses, batch.glassCount)}
{t.erntenDetailPage.glassesAvailable(batch.remainingGlasses)}
</span>
</span>
{/* Fuellstand der Charge — die Zahl rechts bekommt eine Form. */}
{/* Fuellstand der Charge. Der Text nennt bewusst nur den Rest,
nicht die Gesamtmenge: "noch 12 verfuegbar" wirkt knapper
und kaufanregender als "12 von 300". */}
<span aria-hidden="true" className="mt-3 block h-1.5 overflow-hidden rounded-full bg-ink/10">
<span
className="motion-grow block h-full origin-left rounded-full bg-gradient-to-r from-honey-dark to-honey animate-[wh-grow_0.9s_var(--ease-arrive)_both]"