Skip to content

feat: add type generation tracking (2.15.22)#299

Open
seandonn-boston wants to merge 1 commit intomainfrom
claude/feat-2.15.22-type-generation-eD2yL
Open

feat: add type generation tracking (2.15.22)#299
seandonn-boston wants to merge 1 commit intomainfrom
claude/feat-2.15.22-type-generation-eD2yL

Conversation

@seandonn-boston
Copy link
Owner

Summary

  • Add nullable generation Int? field to the Type model in Prisma schema
  • Surface generation: number | null through TypeCardData interface
  • Update getTypeById and getTypeByName to return the generation field
  • Add 2 test cases for generation present and null scenarios

Test plan

  • Pipeline passes (10/10 steps, 2276 tests)
  • New tests cover generation field present (fairy = Gen 6) and null
  • TypeScript compiles cleanly with updated interface
  • Schema migration is non-destructive (nullable field addition)

🤖 Generated with Claude Code

Add nullable `generation` field to the Type model in Prisma schema,
enabling tracking of which generation each type was introduced (e.g.,
Fairy = Gen 6, Dark/Steel = Gen 2). Surface the field through
TypeCardData and both getTypeById/getTypeByName query functions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant