Skip to content

feat: お気に入り単体判定(is-favorited)機能 #497

Description

@zigzagdev

Parent

Part of #486

Branch

get-favorite-hooks-single

Goal

1件の世界遺産が「ログイン中ユーザーのお気に入りに含まれているか」を判定し、ハートボタン(#487系)の初期状態(押下可能 or 登録済み)に反映する。

Scope

  • hooks
  • mapper(お気に入りID一覧 → idのJSONオブジェクト/lookup)
  • container
  • UI

Note

  • データソースは GET /api/v1/favorites(get-plural側と同じAPI)。ここでは取得結果を「IDだけの軽量なlookup」に変換して単体判定に使う想定

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions