Skip to content

Fix/workflow #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jun 14, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add additional progress logging
  • Loading branch information
ShMcK committed Jun 14, 2019
commit b324bb3b5969bdbe7cb7f0668cfb9425ca36df72
11 changes: 9 additions & 2 deletions src/state/actions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ export default {
[context.position.stepId]: true,
}
}
console.log('progress update', nextProgress)
storage.setProgress(nextProgress)
return nextProgress
}
Expand All @@ -134,6 +135,7 @@ export default {
[context.position.stageId]: true,
}
}
console.log('progress update', nextProgress)
storage.setProgress(nextProgress)
return nextProgress
}
Expand All @@ -148,6 +150,7 @@ export default {
[context.position.levelId]: true,
}
}
console.log('progress update', nextProgress)
storage.setProgress(nextProgress)
return nextProgress

Expand All @@ -160,20 +163,24 @@ export default {
...context.progress,
complete: true,
}
console.log('progress update', nextProgress)
storage.setProgress(nextProgress)
return nextProgress
}
}),
stepLoadNext: assign({
position: (context: any) => {
position: (context: any): CR.Position => {
const { data, position } = context
const { stepList } = data.stages[position.stageId]
const currentStepIndex = stepList.indexOf(position.stepId)
const nextStepId = stepList[currentStepIndex + 1]
return {

const nextPosition = {
...context.position,
stepId: nextStepId,
}
console.log('position update', nextPosition)
return nextPosition
}
}),
loadLevel() {
Expand Down