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:
co-authored by
Claude Sonnet 5
parent
c3a0a7b765
commit
c36b621d39
@@ -29,6 +29,10 @@ export interface LotteryFeedEntry {
|
||||
matched: number | null
|
||||
won: boolean | null
|
||||
} | null
|
||||
/** Last ~30 official draws (date + result only), newest first. */
|
||||
recentDraws: { date: string; result: number[]; pick: number[] | null }[]
|
||||
/** Loki's resolved picks over time (date + won), oldest first. */
|
||||
pickHistory: { date: string; won: boolean }[]
|
||||
}
|
||||
|
||||
const LOKILAB_FEED_URL = process.env.LOKILAB_FEED_URL ?? 'https://goldd.devyouz.net/api/public/army-feed'
|
||||
|
||||
Reference in New Issue
Block a user