five-on-it / apps/client/src/ui/ChatPanel
apps/client/src/ui/ChatPanel
The chat (GAME_DESIGN §13, §16): the log on the left of the screen, a muted player's lines left out; closed, the last few lines for a few seconds, never in the way of the mouse or the keys (Enter opens it); open, every line, the line being typed on the channel picked (the room, the party, a friend), the quick-chat phrases and the emotes; Enter sends, Esc closes it and hands the keys back to the game. A vote to kick under way asks every player but its target, yes or no. The ids (#chat, #chat-lines, #chat-input, #chat-channel, #chat-quick-<id>, #chat-emote-<id>, #chat-vote, #chat-vote-yes, #chat-vote-no) are the end-to-end tests' contract.