Add firearm selection to placed agents - #165
Conversation
|
Warning Review limit reachedNext included review available in 43 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (3)
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 ignored due to path filters (19)
📒 Files selected for processing (30)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughChangesAgent weapon support
Priority: ⬇️ Low Estimated code review effort: 4 (Complex) | ~45 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant User
participant AgentWidget
participant AgentProvider
participant PlacedAgent
participant AgentWeaponBadge
User->>AgentWidget: Select weapon from context menu
AgentWidget->>AgentProvider: setWeapon(id, weapon)
AgentProvider->>PlacedAgent: Store updated weapon
AgentWidget->>AgentWeaponBadge: Render selected weapon
AgentWeaponBadge-->>User: Display weapon badge
Merge Risk: ⚪ Minimal · up to Weapon assets, rendering, persistence, migration, and transition wiring have no identified merge-blocking issue. 🚥 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 |
|
|
The visual check requested in the 4/5 review is complete. Native Windows screenshots and the passing test output are now committed under docs/verification/agent-firearms. The existing @greptileai please re-review with this rendering evidence and the passing Windows pixel test. |
|
I reproduced the review's pixel failure by running only the overhang test with a cold image cache. It was a test timing dependency: earlier menu tests had already decoded the Classic image in the full suite. The test now explicitly awaits @greptileai please review the latest commit, including this cold-cache test fix. |
Right-click a placed agent to choose or remove a firearm through category submenus. The 19 bundled Valorant silhouettes paint at the portrait's bottom-right without changing its size, position, drag anchor, or hit area.
Supports plain, circle, view-cone, and lineup agents, undo/redo, duplication, lineup drafts, and page/video transitions. Firearms persist through Hive, .ica export/import, and library backups. Older data defaults to no firearm through the version 100 migration; adapters were regenerated from source.
Validation:
flutter test: 493 passed, 1 existing skip.flutter test integration_test/agent_weapon_test.dart -d windows: 11 passed in an isolated in-memory native test app, including menus, dragging at different sizes/zooms, hit testing, lineup draft isolation, and transition rendering.flutter analyze: no errors or warnings, 3 existing informational findings in unchanged files.git diff --check: clean.Weapon asset sources are recorded in
assets/weapons/README.md.Summary by CodeRabbit
New Features
Bug Fixes
Tests