Commit Graph
5 Commits
Author SHA1 Message Date
Nazim KriandClaude Opus 5.5 e97b2e54ad Country selector in the header, auto-detected and remembered
Replaces the left sidebar with a header dropdown (flag + name), like
1xbet's region picker. The shown country resolves as: saved choice
(cookie, then the member's profile so it follows them across devices),
else Cloudflare's CF-IPCountry (Canada maps to Québec), else Québec.
favoriteCountry becomes nullable so geo-detection isn't overridden by
a default nobody chose. Emoji flags render as letters on Windows, so
flags are now SVGs in /public/flags; country names are in French.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 09:58:33 -04:00
Nazim KriandClaude Sonnet 5 c36b621d39 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>
2026-10-30 09:10:26 -04:00
Nazim KriandClaude Sonnet 5 c3a0a7b765 Add member accounts, follow-based leaderboard, and dedicated Postgres
Members register via email+password (scrypt) or Google OAuth — same
signed-cookie + scrypt pattern as LokiLab (lib/auth.ts, member-password.ts,
member-auth.ts, google-oauth.ts), own AUTH_SECRET and own OAuth client,
own dedicated Postgres database (lokiloto-db on Coolify), fully isolated
from LokiLab's own DB and auth.

Leaderboard tracks who follows Loki's picks most accurately — members
star a pick from the results panel (FollowButton), resolution reuses
LokiLab's own lastDraw.won, no money or pooled play involved anywhere.
Leaderboard page renders a horizontal bar chart (recharts) plus a ranked
list.

Profile page: public nickname (required to appear on the leaderboard),
list of followed picks. Header now carries nav + a user menu (avatar
dropdown when signed in, "Connexion" button otherwise).

Dockerfile runs prisma migrate deploy at container start via
docker-entrypoint.sh, same pattern as LokiLab.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-30 09:02:26 -04:00
Nazim KriandClaude Sonnet 5 8621284cab Real design pass: shadcn/ui, dark sportsbook-style UI, per-country accent
Replaces the plain proof-of-concept page with a proper design: shadcn/ui
component foundation, dark theme by default, a brand bar + country
selector pill nav, lottery cards with real number chips and win-state
highlighting, and a shared Loki mark reskinned per country via a single
--accent CSS variable (set from lib/countries.ts's flag-derived OKLCH
palette) — one mascot, one layout, color is the only thing that changes
per country, as specified.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-29 21:57:03 -04:00
Nazim KriandClaude Sonnet 5 b2915d06cd Scaffold LokiLoto: country theme engine, LokiLab feed client, Québec home page
International lottery stats layer, fed by LokiLab's army-feed API
(results, Loki's picks, lifetime win record, army size). One mascot
reskinned per country via flag-derived colors; Québec is the first
locale, same pattern every future country will follow.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-29 21:23:01 -04:00