Appearance
Firestore Frontend Boundary
[必須]frontend Firestore adapter はonSnapshot、getDoc、getDocsなどの購読・読み取りだけを提供する。[必須]frontend feature code からsetDoc、updateDoc、runTransaction、writeBatch、deleteDocを呼ばない。この違反はレビューで必須修正とする。[必須]共有状態の作成、参加、設定更新、状態遷移、投票、集計、結果確定はuseNuxtApp().$authApi.requestApi経由で backend API を呼ぶ。[必須]endpoint、method、body は操作を所有する composable に置き、その public contract の unit test で固定する。[必須]Security Rules は client write を許可せず、backend の trusted boundary から書き込む。[必須]共有状態には安定した key と ID を保存し、翻訳文字列を保存しない。[必須]結果表示前に公開できない role、secret、vote target を client-readable document に保存しない。