@@ -35,11 +35,11 @@ export const machine = Machine<CR.MachineContext, CR.MachineStateSchema, CR.Mach
35
35
} ,
36
36
NEW_TUTORIAL :{
37
37
target :'SelectTutorial' ,
38
- actions :[ 'clearStorage' ]
39
38
}
40
39
} ,
41
40
} ,
42
41
SelectTutorial :{
42
+ onEntry :[ 'clearStorage' ] ,
43
43
id :'start-new-tutorial' ,
44
44
on :{
45
45
TUTORIAL_START :{
@@ -50,7 +50,10 @@ export const machine = Machine<CR.MachineContext, CR.MachineStateSchema, CR.Mach
50
50
} ,
51
51
ContinueTutorial :{
52
52
on :{
53
- TUTORIAL_START :'#tutorial-stage' ,
53
+ TUTORIAL_START :{
54
+ target :'#tutorial-stage' ,
55
+ actions :[ 'continueConfig' ] ,
56
+ } ,
54
57
TUTORIAL_SELECT :'SelectTutorial'
55
58
} ,
56
59
} ,
@@ -60,6 +63,7 @@ export const machine = Machine<CR.MachineContext, CR.MachineStateSchema, CR.Mach
60
63
id :'tutorial' ,
61
64
initial :'Initialize' ,
62
65
states :{
66
+ // TODO: move Initialize into New Tutorial setup
63
67
Initialize :{
64
68
invoke :{
65
69
id :'loadTutorial' ,
@@ -155,6 +159,7 @@ export const machine = Machine<CR.MachineContext, CR.MachineStateSchema, CR.Mach
155
159
}
156
160
} ,
157
161
StageComplete :{
162
+ onEntry :[ 'syncProgress' ] ,
158
163
on :{
159
164
STAGE_NEXT :'#tutorial-load-next' ,
160
165
} ,
@@ -163,7 +168,7 @@ export const machine = Machine<CR.MachineContext, CR.MachineStateSchema, CR.Mach
163
168
} ,
164
169
Completed :{
165
170
id :'completed-tutorial' ,
166
- onEntry :[ 'userTutorialComplete' ] ,
171
+ onEntry :[ 'syncProgress' , ' userTutorialComplete'] ,
167
172
on :{
168
173
SELECT_TUTORIAL :{
169
174
target :'#start-new-tutorial' ,