Spec sheets added for components in the pages package. A few from components were also touched but that requires a separate effort altogether. Should come soon.
snap from valtio/useSnapshot(state) has been removed from the individual pages. They now have props configured and Switcher is solely responsible for communicating with the GameManager using snap.
GameManager has been refactored and is on it's way towards getting tested.
Next Steps
Figure out how the WebSckts.send and WebSckts.receive can be mocked or tested.
The components has to be restructured into correct packages.
We can have two groups. core & main.
core will have the primitive wrappers over html tags.
main will have components wrapper inside.
Try to add as many primitive wrappers.
Figure out how to standardize stylesheets and check how it's tested.
Config changes
A new env variable REACT_APP_SERVER_ENDPOINT_PREFIX.
Changes
pages
package. A few fromcomponents
were also touched but that requires a separate effort altogether. Should come soon.snap
fromvaltio/useSnapshot(state)
has been removed from the individual pages. They now have props configured andSwitcher
is solely responsible for communicating with theGameManager
usingsnap
.GameManager
has been refactored and is on it's way towards getting tested.Next Steps
WebSckts.send
andWebSckts.receive
can be mocked or tested.core
&main
.core
will have the primitive wrappers over html tags.main
will have components wrapper inside.Config changes
REACT_APP_SERVER_ENDPOINT_PREFIX
.:5000
for running usingyarn start
./api
for running using nginx reverse proxy.