Sort teams by win-loss within each division group before assigning divisionRank so that the leader is always the best-record team, not whichever team happened to appear first in ESPN's flat response. Also warn to console when a team's displayName isn't in the hardcoded MLB_TEAM_DIVISION map, surfacing renames or expansion teams immediately instead of silently storing division="" and recreating the display bug. https://claude.ai/code/session_01288dkXYwKJUfXrEhPd8rmo |
||
|---|---|---|
| .. | ||
| components | ||
| contexts | ||
| hooks | ||
| lib | ||
| models | ||
| routes | ||
| services | ||
| test | ||
| types | ||
| utils | ||
| welcome | ||
| app.css | ||
| entry.client.tsx | ||
| entry.server.tsx | ||
| root.tsx | ||
| routes.ts | ||