Skip to content

Instantly share code, notes, and snippets.

@statonjr
Forked from lynaghk/SketchSystems.spec
Last active July 16, 2018 13:43
Show Gist options
  • Save statonjr/e2c88c683a3b285e7d96956cea9396d0 to your computer and use it in GitHub Desktop.
Save statonjr/e2c88c683a3b285e7d96956cea9396d0 to your computer and use it in GitHub Desktop.
Nag*
Nag*
Main Screen
Default*
task label pressed -> Text Entry
add 1 h button pressed -> Ticking
add 1 m button pressed -> Ticking
subtract 1 h button pressed -> Ticking
subtract 1 m button pressed -> Ticking
info button pressed -> Display
add task button pressed -> New Main Screen
Text Entry
canceled -> Default
submitted -> Default
Internal Clock
Ticking
tick -> Done?
Done?
time remaining? -> Ticking
## Note to implementors: Ding on this transition!
no time remaining? -> Default
Info Screen
Display
done button pressed -> Default
New Main Screen
function render (model) {
return $("span", "The current state is " + model.active_states[0].name);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment