Skip to content

Instantly share code, notes, and snippets.

@valscion
Last active October 8, 2019 11:36
Show Gist options
  • Save valscion/beeccd898dd535cd9bee3c2425a6b609 to your computer and use it in GitHub Desktop.
Save valscion/beeccd898dd535cd9bee3c2425a6b609 to your computer and use it in GitHub Desktop.
Closed*
Closed*
report anomaly -> Opened
Opened
close -> Closed
Ilmoita muu tilanne*
Initial*
Asiakkaalle on vastattu toisessa keskustelussa -> Button
Tilaisuus on jo raportoitu toisessa keskustelussa -> Button
Asiaton kysely tai roskaposti -> Button
Muu tilanne mikä? -> Muu tilanne
Button
Saving*
success -> Saved
failure -> Failed
Saved
ready -> Closed
selectOther -> Initial
# Should we allow a retry in Failed state?
Failed
selectOther -> Initial
Muu tilanne
breadcrumb back -> Ilmoita muu tilanne
Text area*
erase input -> Ready to submit?
input -> Ready to submit?
Ready to submit?
is ready -> Ready
not ready -> Text area
Ready
erase input -> Ready to submit?
more input -> Ready to submit?
# TODO: Better transition
submit -> Closed
function render(model){
let current_state_name = model.active_states[0].name;
return <div><h1>The current statee is: {current_state_name}</h1>
<button onClick={() => emit(</div>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment