Last active
December 23, 2018 13:51
-
-
Save statonjr/3712c7d1ace1b209908c67baebea0675 to your computer and use it in GitHub Desktop.
Login Flow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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