feat: add favorite thing items to pokemon detail

Fetch favorite thing items associated with a pokemon in backend
Display items with category tabs in PokemonDetail view
This commit is contained in:
2026-04-30 19:33:01 +08:00
parent 09ed83dc7e
commit 7c8426651d
3 changed files with 65 additions and 2 deletions

View File

@@ -33,6 +33,7 @@ export interface Pokemon extends EditInfo {
export interface PokemonDetail extends Pokemon {
skills: Array<Skill & { itemDrop: NamedEntity | null }>;
favoriteThingItems: Array<NamedEntity & { category: NamedEntity; tags: NamedEntity[] }>;
habitats: Array<{
id: number;
name: string;