Code review caught a regression in the single-Elo blend: resolveSourceElos / resolveRatings clamped every resolved value to [eloMin, eloMax] / [ratingMin, ratingMax], including a directly entered base Elo. The original resolver only clamped derived values (projections, odds, fallbacks) and passed direct inputs through untouched. With the default 1900 Elo ceiling this truncated manual Elos for sports that enter higher ratings (e.g. snooker ~2450), collapsing their spread. Clamp only odds-derived / blended / fallback values now; direct Elo and rating inputs pass through as entered. Adds a regression test, and fixes two comments that still referenced the removed `sourceEloPriority` field (now `oddsWeight`). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QhNeB7gN6VKene7sdbBVQT |
||
|---|---|---|
| .. | ||
| components | ||
| contexts | ||
| hooks | ||
| lib | ||
| models | ||
| routes | ||
| services | ||
| test | ||
| types | ||
| utils | ||
| welcome | ||
| app.css | ||
| entry.client.tsx | ||
| entry.server.tsx | ||
| root.tsx | ||
| routes.ts | ||