fix: ゲーム時間を鬼放出後から数える - #126
Conversation
30分・放出待ち5分の設定だと、放出後の残り時間が25分から始まっていた。 終了時刻を releasedAt + gameDurationSec にし、設定画面の「全体時間」を 「鬼ごっこの時間(放出後)」に改めた。全体時間が待機時間より長いことの 検証は不要になったので外した。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (5)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. Walkthroughゲーム時間を鬼放出後から数える仕様に合わせ、設定画面とドキュメントを更新しました。ゲームスケジュールは放出時刻を計算し、その時刻からゲーム時間を加えて終了時刻を設定します。計算を検証するテストを追加しました。 Changes鬼放出後のゲーム時間
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to The game duration now runs from oni release, and the inspected displays and end checks follow that schedule. No issue identified here prevents merging after normal checks. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The new timing matches the intended after-release game duration. The review found no newly introduced unauthorized access path, but the changed end-time contract warrants care for clients running different versions. Retained concerns Security review detailsSecurity Blast Radius
Security Findings and Attack Paths
Trust Boundaries and Controls
Resilience and Maintainability Implications
Hardening Proposals
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. うさぎが時計をぴょんとのぞく Comment |
|
@claude review |
|
Claude finished @rinyaaa's task in 1m 51s —— View job レビュー完了
総評目的(鬼放出後から 確認した実装
気になった点(軽微、ブロッカーではありません)
実行できなかった確認このレビュー環境にFlutter/Dart SDKが導入されておらず、 |
Claudeのレビュー指摘への対応。RoomSettingの既定値(30分)に頼らず、 gameDurationSec: 1800 を明示した。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
No unresolved review issues were identified.
Review effort: Lite
Findings: None
What changed in this PR
Updates game duration to start after demon release, so the configured time is fully playable.
Changes:
- Calculates
endsAtfromreleasedAt + gameDurationSec. - Updates settings labels and validation.
- Updates documentation and adds schedule tests.
| File | Description |
|---|---|
test/features/room/repository/game_schedule_test.dart |
Tests post-release duration behavior. |
README.md |
Updates game timing documentation. |
lib/features/room/view/room_setting_page.dart |
Updates the label and removes obsolete validation. |
lib/features/room/repository/room_repository.dart |
Computes the revised game schedule. |
docs/rtdb-schema.md |
Documents the updated timing semantics. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
背景 / 目的
Closes #119
9/24のプレイテストで「30分に設定したのに25分から始まった」と報告があった。
設定の「全体時間」は、開始から終了までの時間として扱われ、鬼放出までの待ち時間を含んでいた。放出待ち5分・全体30分の設定では、放出後のカウントダウンが25分から始まる。ユーザーと相談し、設定した時間を鬼放出後の鬼ごっこの時間として数えることにした。
変更内容
room_repository.dart: 開始・放出・終了の時刻計算を純粋関数computeGameScheduleに切り出し、endsAt = releasedAt + gameDurationSecにしたroom_setting_page.dart: ラベル「全体時間」を「鬼ごっこの時間(放出後)」に変えた。「全体時間は待機時間より長く」の検証は不要になったので外したdocs/rtdb-schema.md・README:endsAtの式とgameDurationSecの意味を更新gameDurationSecは変えていない(意味だけ変わる)動作確認
flutter test: 全件成功flutter analyze: エラー・警告なしスクリーンショット / 動画
設定画面のラベル文言のみ変更。
レビューで見てほしいところ
docs/ui-mockup-2a.html)には設定画面の該当項目が無いため、照合は不要だった影響範囲・注意点
meta/endsAt)、設定画面🤖 Generated with Claude Code
Summary by CodeRabbit
仕様変更
テスト