Skip to content

feat: add structured effect data for items (2.15.43)#301

Open
seandonn-boston wants to merge 1 commit intomainfrom
claude/feat-2.15.43-item-effect-data-eD2yL
Open

feat: add structured effect data for items (2.15.43)#301
seandonn-boston wants to merge 1 commit intomainfrom
claude/feat-2.15.43-item-effect-data-eD2yL

Conversation

@seandonn-boston
Copy link
Owner

Summary

  • Add nullable shortEffect String? and pocket String? fields to the Item model in Prisma schema
  • Surface shortEffect: string | null and pocket: string | null through ItemCardData interface
  • Update getItemById to return both fields
  • Add database index on pocket for efficient filtering
  • Add 2 test cases for new fields present and null scenarios

Test plan

  • Pipeline passes (10/10 steps, 2280 tests)
  • New tests cover shortEffect/pocket present and null cases
  • TypeScript compiles cleanly with updated interface
  • Schema migration is non-destructive (nullable field additions + index)

🤖 Generated with Claude Code

Add nullable `shortEffect` (concise one-line summary) and `pocket`
(in-game bag category) fields to the Item model. Surface both through
ItemCardData and getItemById. Adds a database index on pocket for
efficient filtering.

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