Show total scans in social milestones

This commit is contained in:
2026-08-14 13:08:40 +02:00
parent 8e34f97afb
commit 8ef5221f71
6 changed files with 35 additions and 21 deletions

View File

@@ -45,6 +45,7 @@ export type SocialMilestoneCard = {
qrTitle: string;
label: string;
title: string;
totalScans: number;
totalUniqueScans: number;
milestoneThreshold: number;
reachedAt: string;
@@ -93,6 +94,7 @@ export function buildMilestonePostForQr(primaryUseCase: string | null, totalUniq
export function buildMilestoneCardSnapshot(input: {
primaryUseCase: string | null;
qrTitle: string;
totalScans: number;
totalUniqueScans: number;
milestoneThreshold: number;
reachedAt: Date;
@@ -105,6 +107,7 @@ export function buildMilestoneCardSnapshot(input: {
qrTitle: input.qrTitle,
label: usageLabel(input.primaryUseCase, input.locale),
title: input.locale === 'de' ? 'Erfolgsmeilenstein' : 'Success milestone',
totalScans: input.totalScans,
totalUniqueScans: input.totalUniqueScans,
milestoneThreshold: input.milestoneThreshold,
reachedAt: input.reachedAt.toISOString(),