Skip to content

feat(debug): Events shortcuts, stages support & minor fixes#791

Merged
delucis merged 11 commits into
masterfrom
delucis/feat/debug-improvements
Sep 1, 2020
Merged

feat(debug): Events shortcuts, stages support & minor fixes#791
delucis merged 11 commits into
masterfrom
delucis/feat/debug-improvements

Conversation

@delucis

@delucis delucis commented Sep 1, 2020

Copy link
Copy Markdown
Member

This PR pulls together some small features and bug fixes to improve the debug panel:

delucis added 11 commits August 16, 2020 16:46
We were assigning shortcuts for boardgame.io events (`endTurn` etc.), 
which mostly made the shortcut assignment code redundant, because the 
repeated events starting with `e` would never allow us to assign 
shortcuts matching the first letter of moves. This was additionally 
redundant as we weren’t actually using the event shortcuts anywhere.
Uses the `Move` component to render the `endStage`, `endTurn`, and 
`endPhase` events as interactive functions with associated keyboard 
shortcuts. Shortcuts are 7, 8, 9 to minimize collisions with move 
shortcuts.

Addresses #771
Closes #771

Previously, the debug panel only read the moves & events dispatchers 
from the client when instantiated. This prevented users from toggling 
between players and dispatching moves from the debug panel as different 
players with stages, because the move/event would be out-of-date 
(created with the wrong playerID). This change makes sure we’re always 
referencing the latest dispatchers.
The content-editable field in the interactive function can receive 
focus, e.g. by tabbing to it. Activating it correctly disables other 
shortcuts during typing and styles the focus state as expected.
@delucis delucis merged commit 3984ee7 into master Sep 1, 2020
@delucis delucis deleted the delucis/feat/debug-improvements branch September 1, 2020 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Debug panel styling of selects affects page elements

1 participant