Commit e6c0fd1
refactor: redesign platform service structure (#39)
* refactoring action reducer
* change match to switch statement in action reducer
* fix _run scripts
* rework actions reducer with immer
* first step of rework
* removing payload variable from period result reducer
* tiny revisit of SegementReducer
* fix result.facts passed to period start
* prototype separate reducer fns suggestion
* period reducer separate fns: adding payload types
* Segment Reducer to separate fns
* period result separate fns
* segment result separate fns, some renaming of previous payload types
* additional todos and clean up
* move action types to platform and add todos
* removing action types for input and ouput of reducer fns
* isDirty todo, minor cleanup
* remove ResultState for now
* remove comment wrt userrole in demo-game
* remove todo comment wrt roleAssigner
* introduce settings/constants
* period reducer: remove isDirty and return result directly
* period reducer: remove isDirty and return result directly consolidate
* segment reducer: remove isDirty and return result directly
* period result reducer typed
* adding brackets for type union
* segment result reducer, remove isDirty and typed
* segment result reducer, remove isDirty and typed, missed return type
* moving mapper into if statement
* update design system to 2.7.0 latest version
* making roleAssigner work with undefined players
* using OutputFacts platform type for user output types
* replace state with facts and added all output types
* rename result to resultFacts
* rename reducers to services
* move types from graphql to separate folder types
* segment initializer clean input and output type
* clean up input output types for services
---------
Co-authored-by: Roland Schläfli <rolandschlaefli@gmail.com>1 parent b7af34d commit e6c0fd1
File tree
29 files changed
+1730
-694
lines changed- apps
- demo-game
- src
- components
- graphql
- pages/play
- reducers
- services
- settings
- types
- packages/platform/src
- lib
- services
- types
29 files changed
+1730
-694
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| 51 | + | |
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
7 | 17 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | | - | |
8 | | - | |
| 6 | + | |
| 7 | + | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | | - | |
| 13 | + | |
15 | 14 | | |
16 | | - | |
| 15 | + | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
20 | | - | |
21 | | - | |
22 | | - | |
| 19 | + | |
23 | 20 | | |
24 | 21 | | |
25 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments