update: 同居人グループメンバー情報の管理機能を追加 #60
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
概要
同居人(Cohabitant)グループに所属するメンバーの情報を一元管理する機能を実装しました。これにより、家事アイテムの詳細画面でパートナーの名前を表示できるようになります。
変更の背景
これまでの実装では、家事アイテムの詳細画面で担当者(パートナー)の情報を表示する際に、個別にFirestoreからアカウント情報を取得していました。これにより、以下の課題がありました:
主な変更点
1. ドメインモデルの追加 (
homete/Model/Domain/Cohabitant/)2. CohabitantStoreの実装
@Observableで管理3. CohabitantClientの拡張
subscribeCohabitantData()メソッドを追加し、グループデータの購読機能を実装4. UI層の改善
HouseworkDetailViewでCohabitantStoreを活用し、パートナー名を表示HouseworkDetailItemListContentを新規作成し、家事アイテムの詳細表示UIを分離housework.assign.partner.name)5. アーキテクチャの整理
Model/Store/からModel/Domain/配下の適切なドメインフォルダに移動AccountStore→Model/Domain/Account/AccountAuthStore→Model/Domain/Authentification/HouseworkListStore→Model/Domain/Cohabitant/Housework/6. 開発環境の改善(main統合分を含む)
テスト方法
ユニットテスト
手動テスト
関連Issue
N/A(機能改善)
破壊的変更
なし。既存の機能は全て維持されています。
チェックリスト
🤖 Generated with Claude Code