Commit Graph

195 Commits

Author SHA1 Message Date
a2a7ea2e54 Bad Move error message displayed over the board 2023-11-30 14:42:49 +01:00
3bcf5ced76 backend: handle corda errors as HTTP_BAD_REQ (#46)
Reviewed-on: http://192.168.8.55:3000/HQLAx/CordaCheckers/pulls/46
2023-11-30 11:48:57 +01:00
77eb2d0013 Stone drag&drop for Safari (#45)
Reviewed-on: http://192.168.8.55:3000/HQLAx/CordaCheckers/pulls/45
2023-11-29 18:06:51 +01:00
dce7f8e549 initial 2023-11-29 12:10:13 +01:00
b6b1358131 GameBoard: ignore obvuisly bad moves 2023-11-27 15:03:57 +01:00
0e6e896851 small code explainer 2023-11-24 13:10:39 +01:00
a9eae999f6 GameBoard: show previous and current moves 2023-11-24 13:01:48 +01:00
5639b5e8c9 slightly better css for minimap 2023-11-24 11:53:53 +01:00
34f71a4658 minor CSS tweaks 2023-11-24 11:10:39 +01:00
df431eb4f1 UUIDprops
- guide.selectedUUID is used to determina current uuid
- all the game related midifications are stored independantly per UUID
- no global indicators
2023-11-24 10:38:52 +01:00
e017787441 final ui layout 2023-11-20 22:03:06 +01:00
cd9bad7646 default board is empty 2023-11-20 17:29:28 +01:00
579f52ed04 GameBoard: move 2023-11-20 15:51:54 +01:00
ae6ba413a2 movable stones! 2023-11-19 12:10:26 +01:00
dbb70cabba current user stones are allways at the botom 2023-11-17 21:50:04 +01:00
9b0a3753aa Default player colors alignmnet 2023-11-17 20:48:22 +01:00
b6146eed6b NewGame: game board configuration
- GameBoard interactivity
2023-11-17 20:37:33 +01:00
016423aeb6 GameBoard: show user name 2023-11-17 12:18:30 +01:00
75b72a580d GameSelctor: minigame preview 2023-11-17 11:21:02 +01:00
758e7ce10f GameBoard: show slected board stones 2023-11-16 22:03:11 +01:00
f27eafa3f0 GameBoard provide player names for all views 2023-11-16 18:40:06 +01:00
8611ede4b4 GameBoard to react on selected player
- some refactoring
2023-11-16 18:19:40 +01:00
671e13a41d Game Draw: req/acq/rej 2023-11-16 11:49:12 +01:00
576556afe7 Game: surrender 2023-11-16 09:17:07 +01:00
cacc8c99d8 GameProposal: Accept 2023-11-15 21:19:49 +01:00
60d6af94e1 GameProposal: Reject 2023-11-15 19:44:42 +01:00
392e7e9251 no chatting in the archives! 2023-11-15 18:33:18 +01:00
6343f70851 GameSlector split into thre sub components 2023-11-15 18:10:44 +01:00
3063146a76 GameProposal: Cancel
- doPushing
 * JSON content type detection
 * unexpeted responce status: show warning instead of throwing exeption
- useGamesApi: if already pushing - do not push another one
wobling for Cancel button
- middleware: GameProposal controller: handle Cancel requests
2023-11-15 13:27:52 +01:00
2522da6349 red color match for Counter and Toggle 2023-11-15 09:36:50 +01:00
cbc78dfcf1 message2opponent works proposals
but does nothing in reality sicne no actual message is being included
in request
2023-11-15 09:36:23 +01:00
9c8e296684 GameProposal: Cancel
show button only if cancelable game is selected
2023-11-15 09:15:38 +01:00
6dea7ae63f GameSekector: isSelected, onSelect 2023-11-15 08:25:37 +01:00
d8d3406fe1 Counter - for watong for you games 2023-11-14 18:44:06 +01:00
9439186b8a Selectable: remove border box 2023-11-14 13:21:26 +01:00
907be9cbc0 newGame create: newgame fist in a gamelist 2023-11-14 12:04:16 +01:00
c969007436 39-message2opponent (#40)
Reviewed-on: http://192.168.8.55:3000/HQLAx/CordaCheckers/pulls/40
2023-11-14 11:54:15 +01:00
04f0b86527 api.push (#36)
Reviewed-on: http://192.168.8.55:3000/HQLAx/CordaCheckers/pulls/36
2023-11-13 16:55:10 +01:00
2482226e0e Better useXxxApi (#34)
useXxxApi:

    use PollingReducer as a configuration provider
    provide pushAPIs, which update respective state with:
        pushing status
        push result

PollingReducer:
    rename to configurationReducer
    move polling indication to it's respective state
    XxxState.polling = 'true/false'

Reviewed-on: http://192.168.8.55:3000/HQLAx/CordaCheckers/pulls/34
2023-11-12 19:40:55 +01:00
82f5b07256 action readyiness indication 2023-11-11 11:37:17 +01:00
703a6a0326 skeleton 2023-11-11 11:08:48 +01:00
f5b09e2123 Rankin JSON update (#31)
Reviewed-on: http://192.168.8.55:3000/HQLAx/CordaCheckers/pulls/31
2023-11-10 20:58:32 +01:00
7a2d7f435f small clenup 2023-11-10 13:28:18 +01:00
7acad9b0f3 namedStorage instead of useStorage 2023-11-10 13:25:24 +01:00
6427844da3 usePrevious hook 2023-11-10 13:17:38 +01:00
cd62d90de8 Polling hook useRef
do not useState for internal values. which are not relevnat to rendering
This will only trigger unnecessary rerenders
2023-11-10 13:10:30 +01:00
453a45d980 NewGame: show selected players in GameBoard (#28)
Reviewed-on: http://192.168.8.55:3000/HQLAx/CordaCheckers/pulls/28
2023-11-10 12:39:49 +01:00
76eb556d09 NewGame to use dispatchGames
- remove DispatchGames and GamesAPI Context
  transfer it as props instead
- DropdownList component
- delete obsoleete files
2023-11-10 09:34:46 +01:00
3171a97827 ammend 2023-11-09 18:20:19 +01:00
b632aa7dc3 GameSelector
- single component for GameProposals, ActiveGames and Archive

- clickabple and scrollable
2023-11-09 18:19:31 +01:00