fix(stats): open game detail pages from stat lists, perfect games clickable

Add perfect games click-through on the dashboard. Remove Steam store
links from game lists. Stat numbers with count 0 are not clickable.
Tests cover the perfect-games click, zero guards, and owner versus
visitor behavior.
This commit is contained in:
lobo committed 2026-10-04 10:07:27 +02:00
1 parent 777ba87fd6
commit 8b94a25844
27 files changed
+270 -51

No files matched your search

+1 -1
View File
@@ -32,7 +32,7 @@ function useCountUp(target, durationMs = 1600) {
export default function StatCard({label, value, icon: Icon, suffix, drill}) {
const {i18n} = useTranslation();
const animated = useCountUp(value);
const target = useDrillTarget({title: label, ...drill});
const target = useDrillTarget({title: label, count: value, ...drill});
const card = (
<Card className="gap-3 p-5">
{Icon && (