feat: select untap choices on battlefield - #6936
Conversation
|
Warning Review limit reached
Next review available in: 21 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe change adds untap board-choice support, routes untap prompts through native board interactions, enables delegated waiting-state authorization, and propagates an effective multiplayer layout through board-rendering components. ChangesUntap board-choice experience
Estimated code review effort: 4 (Complex) | ~45 minutes Sequence Diagram(s)sequenceDiagram
participant GamePage
participant GameStateView
participant NativeBoard
participant GameEngine
GamePage->>GameStateView: map untap waiting state
GameStateView->>NativeBoard: expose untap candidate and skip action
NativeBoard->>GameEngine: dispatch ChooseUntap
GameEngine-->>GamePage: update waiting state
Possibly related PRs
Suggested labels: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@client/src/pages/GamePage.tsx`:
- Around line 964-970: Extend the colocated BlockAssignmentLines/layout
regression tests to cover the branch computing effectiveMultiplayerBoardLayout:
add a three-or-more-player waiting untap-choice case that verifies forced
"split" visibility, plus a non-untap control case that continues using the
stored multiplayerBoardLayout preference. Keep the existing focused-layout
coverage unchanged.
In `@client/src/viewmodel/gameStateView.ts`:
- Around line 447-455: Update the UntapChoice handling around
waitingFor.data.candidates to expose every candidate in objectIds instead of
selecting candidates[0]. Build the ChooseUntap response and affirmative action
from the selected object ID, preserving the existing false/skip behavior; update
the related test to verify selecting the second candidate. Keep game-data
interpretation out of the client/src display layer.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 741175ae-55d1-4812-b3d3-1f7c07411bf3
📒 Files selected for processing (28)
client/src/components/board/AttackTargetLines.tsxclient/src/components/board/BlockAssignmentLines.tsxclient/src/components/board/GameBoard.tsxclient/src/components/board/GroupedPermanent.tsxclient/src/components/board/PermanentCard.tsxclient/src/components/board/__tests__/BlockAssignmentLines.test.tsxclient/src/components/board/__tests__/GameBoard.test.tsxclient/src/components/board/__tests__/GroupedPermanent.test.tsxclient/src/components/board/__tests__/PermanentCard.test.tsxclient/src/components/modal/CardChoiceModal.tsxclient/src/components/modal/DialogHost.tsxclient/src/components/modal/__tests__/ChooseUntapSubsetModal.test.tsxclient/src/components/modal/__tests__/DialogHost.test.tsxclient/src/components/modal/__tests__/DiscardCostModal.test.tsxclient/src/components/stack/StackDisplay.tsxclient/src/components/targeting/TargetingOverlay.tsxclient/src/components/targeting/__tests__/TargetingOverlay.test.tsxclient/src/i18n/locales/de/game.jsonclient/src/i18n/locales/en/game.jsonclient/src/i18n/locales/es/game.jsonclient/src/i18n/locales/fr/game.jsonclient/src/i18n/locales/it/game.jsonclient/src/i18n/locales/pl/game.jsonclient/src/i18n/locales/pt/game.jsonclient/src/pages/GamePage.tsxclient/src/pages/ReplayPage.tsxclient/src/viewmodel/__tests__/gameStateView.test.tsclient/src/viewmodel/gameStateView.ts
💤 Files with no reviewable changes (1)
- client/src/components/modal/tests/ChooseUntapSubsetModal.test.tsx
|
Addressed CodeRabbit feedback:
|
7677f13 to
97ce0c5
Compare
Summary by CodeRabbit
New Features
Bug Fixes
Tests