fix(BUG-15): DisplayView no longer re-sorts participants by initiative
DisplayView called sortParticipantsByInitiative() on visibleParticipants, ignoring DM drag order. 1-list model = participants[] IS display source. After cross-init drag, player view diverged from AdminView/turnOrderIds. Repro: round 4 replay. [reorder Summon1(10)→before Merchant(11)] made turnOrderIds = [...,Summon2,Summon1,Merchant,OrcBoss]. AdminView correct. DisplayView re-sorted = Summon2,Merchant,Summon1 (init order) = visually Merchant appeared between Summon2 and Summon1, NOT at end. DM confused. Fix: removed sort. DisplayView now renders participants[] order directly (filter inactive monsters only), matching AdminView line 1222. Test: RED → GREEN (src/tests/DisplayView.drag-order.test.js). Seeds 3 monsters in drag order [High:20, Low:10, Mid:11]. Asserts DOM order = participants[] order, not init-sorted. No DisplayView regressions.
This commit is contained in:
@@ -182,6 +182,7 @@ REWORK_PLAN.md.
|
||||
- [x] BUG-5: fixed (1-list model, 500 rounds clean)
|
||||
- [x] BUG-6: fixed structurally (1-list model)
|
||||
- [x] BUG-12: fixed — campaign selection follows activeDisplay
|
||||
- [x] BUG-15: fixed — DisplayView no longer re-sorts (drag order preserved)
|
||||
- [ ] BUG-8: ws adapter reconnect
|
||||
- [ ] BUG-10: deact+reactivate double-act
|
||||
- [ ] BUG-11: FE Combat.scenario crash
|
||||
|
||||
Reference in New Issue
Block a user