Add per-lottery stats page: number frequency, draw timeline, Loki's performance over time

New /loterie/[id] page, linked from each lottery's name in the results
panel. Three visualizations, all derived client-side from LokiLab's
extended army-feed (recentDraws + pickHistory) with no new math on
LokiLab's side:
- NumberFrequencyChart: bar chart of each number's appearances across
  the last ~30 draws
- PerformanceChart: Loki's cumulative win rate over time, line chart
- DrawTimeline: scannable list of recent draws with Loki's pick and
  hit highlighting where available

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Nazim Kri
2026-10-30 09:10:26 -04:00
co-authored by Claude Sonnet 5
parent c3a0a7b765
commit c36b621d39
8 changed files with 219 additions and 3 deletions
+7 -2
View File
@@ -1,3 +1,4 @@
import Link from "next/link"
import { NumberSequence } from "@/components/number-sequence"
import { FollowButton } from "@/components/follow-button"
import type { LotteryFeedEntry } from "@/lib/lokilab-feed"
@@ -31,9 +32,13 @@ export function LotteryRow({
</div>
<div className="min-w-0">
<p className="truncate font-semibold leading-tight" title={entry.name}>
<Link
href={`/loterie/${entry.id}`}
className="block truncate font-semibold leading-tight hover:text-accent hover:underline"
title={entry.name}
>
{entry.name}
</p>
</Link>
{lastDraw && (
<p className="text-xs text-muted-foreground">{formatDate(lastDraw.date)}</p>
)}