Skip to content

Instantly share code, notes, and snippets.

@statonjr
Last active December 23, 2018 13:51
Show Gist options
  • Save statonjr/3712c7d1ace1b209908c67baebea0675 to your computer and use it in GitHub Desktop.
Save statonjr/3712c7d1ace1b209908c67baebea0675 to your computer and use it in GitHub Desktop.
Login Flow
Login Flow
Unauthenticated*
login -> Error?
Authenticated
verified? -> Verified
not verified? -> Unverified
Verified
projects? -> Ready
no projects? Setup
Unverified
click email -> Verified
Setup
create project -> Ready
Ready
logout -> Unauthenticated
Error
restart -> Unauthenticated
Error?
no -> Authenticated
yes -> Error
function render(model){
let current_state_name = model.active_states[0].name;
return $("h1",
{style: {color: "darkBlue"}},
`The current state is: ${current_state_name}`);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment