feat: three-mode display (player/master/both) with master auto-tick

- Add `mode` setting to replace legacy `masterMode` with migration path
- Implement 3-button display mode picker (player-only, master-only, both)
- Auto-increment master when card drawn via call-bus event system
- Add voice hint on settings button, gate auto-call on mode changes
- Broadcast draw events from MasterPanel, reset call-bus on new game
- Broadened announce condition to cover both modes
- New call-bus.svelte.js module for event coordination
- Update settings-store tests to cover mode migration
- Update codebase docs for mode setting and call-bus architecture
This commit is contained in:
2026-04-27 10:51:08 +07:00
parent 7d1bb5e68a
commit d08f25bd96
17 changed files with 937 additions and 101 deletions
+8
View File
@@ -4,6 +4,14 @@ This document tracks **future work only**. Completed features live in
git commit history and `plans/`, not here. For "what's in the app right
now", see `docs/project-overview-pdr.md` and `docs/codebase-summary.md`.
## Shipped
### Three-Mode Rendering + Master Auto-Tick (2026-04-27)
- `mode: "player" | "master" | "both"` replaces `masterMode: boolean`
- New `call-bus.svelte.js` coordinates master draws → player auto-tick in "both" mode
- "Quản trò đọc số" voice now speaks Chờ/Kinh on master in "both" mode
- One-shot migration: `masterMode: true``mode: "both"`
## Idea Phase
### Undo Last Cell