Commit 8bdafc9
Enhance WeaponsDisplay with interactive readiness, wireless, and ammo
controls directly in the weapons view, matching InventoryPanel capabilities.
- Add readiness badge (always visible) with color-coded pill
- Add compact ammo indicator bar in collapsed row
- Replace static wifi icon with state-aware Wifi/WifiOff
- Add readiness button group in expanded view (editable only)
- Add WirelessIndicator toggle in expanded view (editable only)
- Add WeaponAmmoDisplay with reload/unload/swap in expanded view
- Implement optimistic API updates with rollback on error
- Pass onCharacterUpdate and editable props from character page
- Add 22 new tests covering all interactive features (64 total)
Co-authored-by: Claude Opus 4.6 <[email protected]>
1 parent ec0433b commit 8bdafc9
File tree
4 files changed
+650
-23
lines changed- app/characters/[id]
- components/character/sheet
- __tests__
4 files changed
+650
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
| 395 | + | |
| 396 | + | |
395 | 397 | | |
396 | 398 | | |
397 | 399 | | |
| |||
0 commit comments