[FT‐002] Join Game Dialog - mbimbij/trivia GitHub Wiki
Description
Refactor how a user joins a game, using a visually appealing form. The user can join the game with a name different than its user name.
Visual Design
- High-Level Design Impacts - Miro
- Low-Level Design & Collaborations - Miro - Same as Create Game
- (follow-up) Make it its own dedicated page
Rules
- R1 - the player name cannot be blank
- R2 - the player name cannot be a duplicate of an existing player name
Scenarios & Examples
- Precondition: The default player name input is the user name
- Happy case 1: The user joins a game successfully without changing its name
- Happy case 2: The user joins a game successfully with a different name
- Alt Flow 1: Clicking on reset resets the form field
- Alt Flow 2: Clicking on cancel or outside the form saves the inputted value
- R1 - Error case 1: The player name is empty
- Error case 2: An error occured on the server side
- R2 - the player name cannot be a duplicate of an existing player name
Code Design
Tests
- e2e tests
- frontend unit tests (to be defined)
# Questions
- In what cases exactly do we want to save or reset the input value, if at all ?
- Do we save the name entered for a given game, or for all games ?
- Verify a same player cannot join a same game with 2 different names on the backend