Skip to content

feat: add egg groups to schema and query layer (2.15.19)#296

Open
seandonn-boston wants to merge 1 commit intomainfrom
claude/feat-2.15.19-egg-groups-eD2yL
Open

feat: add egg groups to schema and query layer (2.15.19)#296
seandonn-boston wants to merge 1 commit intomainfrom
claude/feat-2.15.19-egg-groups-eD2yL

Conversation

@seandonn-boston
Copy link
Owner

Summary

  • Add eggGroup1 and eggGroup2 nullable string fields to the Pokemon Prisma model
  • Expose as eggGroups: string[] in PokemonCardData interface via getPokemonById
  • Filter nulls so the array contains 0, 1, or 2 entries depending on the species
  • Update all test mocks (pokemon.test.ts, route.test.ts, search/route.test.ts) for type compliance
  • 3 new test cases covering two groups, single group, and no groups (undiscovered)

Test plan

  • Pipeline passes (10/10 steps)
  • Typecheck clean — all PokemonCardData mocks updated with eggGroups
  • 30 pokemon query tests pass (3 new egg group tests)
  • No UI changes needed — egg groups are now available for future display components

🤖 Generated with Claude Code

Add eggGroup1/eggGroup2 nullable string fields to Pokemon model,
expose as eggGroups: string[] in PokemonCardData via getPokemonById,
and update all test mocks for type compliance.

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