fix: resolve specificStadium achievement ID mismatch
The Green Monster (Fenway) and Ivy League (Wrigley) achievements weren't working because: 1. Symbolic IDs use lowercase sport (stadium_mlb_bos) 2. Sport enum uses uppercase raw values (MLB) 3. Visits store stadium UUIDs, not symbolic IDs Added resolveSymbolicStadiumId() helper that: - Uppercases the sport string before Sport(rawValue:) - Looks up team by abbreviation and sport - Returns the team's stadiumId as UUID string Also fixed: - getStadiumIdsForLeague returns UUID strings (not symbolic IDs) - AchievementProgress.isEarned computed from progress OR stored record - getStadiumIdsForDivision queries CanonicalTeam properly Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
21
.claude/commands/read-to-do.md
Normal file
21
.claude/commands/read-to-do.md
Normal file
@@ -0,0 +1,21 @@
|
||||
name: read-to-do
|
||||
description: Read and summarize TO-DOS.md before any coding
|
||||
trigger:
|
||||
command: "/read-to-do"
|
||||
|
||||
actions:
|
||||
- type: read_file
|
||||
path: "TO-DOS.md"
|
||||
|
||||
- type: prompt
|
||||
content: |
|
||||
You have read TO-DOS.md in full.
|
||||
|
||||
Summarize:
|
||||
- Goal
|
||||
- Current Phase
|
||||
- Active Tasks
|
||||
|
||||
Do NOT write any code.
|
||||
Do NOT suggest solutions.
|
||||
Stop after the summary.
|
||||
@@ -11,7 +11,11 @@
|
||||
"Bash(xcrun simctl install:*)",
|
||||
"Skill(frontend-design:frontend-design)",
|
||||
"Bash(xcrun simctl io:*)",
|
||||
"Bash(python cloudkit_import.py:*)"
|
||||
"Bash(python cloudkit_import.py:*)",
|
||||
"Bash(python -m sportstime_parser scrape:*)",
|
||||
"Bash(pip install:*)",
|
||||
"Bash(python -m pytest:*)",
|
||||
"Skill(superpowers:brainstorming)"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user