feat(ui): helper sumUpdates (TDD)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-05 05:26:31 +02:00
parent b9699bfb8f
commit cebe991601
2 changed files with 15 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
// client/src/lib/stats.ts
export function sumUpdates(counts: Record<string, number>): number {
return Object.values(counts).reduce((acc, n) => acc + n, 0);
}