1.2 KiB
1.2 KiB
2024-12-18 18:00:00 - High-Velocity UX Implementation (Part 1)
Description
Started implementing the Frontend components for the High-Velocity UX Specification. Focused on the "Smart Priority Interface" components first to enable strict rules interaction.
Key Changes
- Frontend Plan: Created
docs/development/plans/high-velocity-ux.mddetailing the gesture engine and UI components. - Strict Types: Updated
src/client/types/game.tsto includePhase,Step,StackObject, andStrictGameStateextensions. - Smart Button: Created
SmartButton.tsxwhich derives state (Pass/Resolve/Wait) from theStrictGameState.- Green: Pass/Advance Phase.
- Orange: Resolve Stack.
- Grey: Wait (Not Priority).
- Phase Strip: Created
PhaseStrip.tsxto visualize the linear turn structure and highlight the current step. - GameView Integration: Updated
GameView.tsxto house these new controls in the bottom area. Wire upSmartButtonto emitgame_strict_action.
Next Steps
- Implement
GestureManagercontext for Swipe-to-Tap and Swipe-to-Combat. - Implement
StackVisualizerto show objects on the stack. - Connect
ContextMenuto strict actions (Activate Ability).