Closed Carkzis closed 7 months ago
Already added (in #1) are:
Can also press a button on the New Game screen to add a game with dummy data, which would transport the user back to the Game screen. This needs updating to use real data provided in the text boxes.
Consider adding developer button for adding dummy data to be removed at a later date.
Remaining
Functionally: Adding a toast. Visually: Everything in the New Game screen. Refactoring: NewGameScreen composables, and the ViewModel needs hoisting into an undetermined class, allowing the removal of the DummyNewGameViewModel and DummyGameRepository.
Toast added, except it is not a Toast, it is a Snackbar.
Functionality bugs:
Addressed known functionality bugs.
To do:
NewRouteGame now used which holds the view model, NewGameScreen only has state.
Amended NewGameScreen tests to use NewGameRoute so that it can change the state of the NewGameScreen; however, can consider splitting them in future with NewGameScreen tests only focussing on what is on the screen without interacting with it.
Compose Previews updated.
Basic new game functionality has been added with just the name and description, these show on the GameScreen in a list once added.
Ticket done.
Need to do a missed item:
For the time being, will add a random number to the end of the dummy game titles to prevent collisions when adding them.
NavigationTest.navigates from new game screen back to game screen when new game added
needs fixing, cannot find the "Add New Game" button on New Game screen (but can see the items at the top of the screen!).
Fixed NavigationTest.navigates from new game screen back to game screen when new game added by allowing scrolling in Robolectric test.
Added GameAlreadyExistsException and snackbar message for when game name already exists.
PR https://github.com/Carkzis/Ananke/pull/4 merged.
Moving to done.
Scenarios: