fix: update roster labels to use Minor League and Injured List (#59) #63
No reviewers
Labels
No Label
ai-changes-requested
ai-pr-opened
ai-reviewed
ai-reviewing
ai-working
in-next-release
status/in-progress
status/pr-open
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/major-domo-v2#63
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "ai/major-domo-v2-59"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
_create_roster_embedsso each roster section is clearly labeled when users run/rosterteam_service.get_team_rosterthat had theshortil/longilmapping backwards (shortil= Injured List,longil= Minor League)Files Changed
commands/teams/roster.py— Addedroster_titlesdict and section header fields to main summary embedservices/team_service.py— Fixed docstring to correctly describeshortilas injured list andlongilas minor leagueTest Results
All 930 tests pass, 3 skipped.
Closes #59
AI Code Review
Files Reviewed
commands/teams/roster.py(modified)services/team_service.py(modified)Findings
Correctness
roster_titlesdict andembed.add_field(name=roster_titles[key], value="\u200b", inline=False)are added correctly before the player count fields. Headers appear for any roster section present inroster_data, even if it has zero players — this is consistent with how WAR and position counts were already displayed for empty sections (pre-existing behavior, not a regression).shortil= Injured List,longil= Minor League) is consistent with the pre-existingroster_titlesdict that was already in_create_player_list_embed. The fix is accurate.Security
Style & Conventions
roster_titlesis now duplicated: The same dict is defined in both_create_roster_embeds(new) and_create_player_list_embed(pre-existing). Minor DRY concern, but doesn't block merging.Suggestions
commands/teams/CLAUDE.mdstill documents the mapping asshortil= Minor League andlongil= Injured List (see "Roster Management" bullet points under Key Features). This is now backwards relative to both the code and the corrected docstring. A follow-up update to that file would keep the project documentation consistent.Verdict: APPROVED
The core changes are correct: section headers are properly inserted into the summary embed, and the docstring fix accurately describes the
shortil/longilmapping as it was already implemented in the player list embed. No functional regressions, no security issues, tests pass. The CLAUDE.md documentation discrepancy noted above is worth a quick follow-up but does not block merging.Automated review by Claude PR Reviewer