Commit Graph

22 Commits

Author SHA1 Message Date
a9eae999f6 GameBoard: show previous and current moves 2023-11-24 13:01:48 +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
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
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
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
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
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
ac50d92c1a GamesContext: initial implementation 2023-11-09 13:59:14 +01:00
3f47654cf2 react: state -> reducer -> context
- Leaderboard: useState
- User: useReducer
- Games: useContext [...in progress]
- usePolling giveup on internal cache
  in favour of onResponce() callback
2023-11-09 12:29:47 +01:00
aa2a250085 Games container sceleton
- use Route for conditional rendering
- useGamesAPI
- Checkers component
2023-11-08 18:22:05 +01:00
b58c71c876 useXxxReducer 2023-11-08 09:23:20 +01:00
9ec2059c4a pollingFlux 2023-11-07 12:58:09 +01:00
d92a3df32b userFlux 2023-11-07 11:57:52 +01:00
472f5de928 leaderboard api polling 2023-11-03 22:25:56 +01:00