Skip to content

Instantly share code, notes, and snippets.

@statonjr
Last active November 20, 2019 20:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save statonjr/20cef94478f803b21546fead49592ef0 to your computer and use it in GitHub Desktop.
Save statonjr/20cef94478f803b21546fead49592ef0 to your computer and use it in GitHub Desktop.
Onboarding*
Onboarding*
Idle*
signup -> Signup
Customer
Validate Email
click? -> Change Password
no click? -> NotVerified
Auth Service
User Exists
yes -> Signup
no -> Send Verification Email
Send Verification Email
sent? -> Validate Email
not sent? -> Send Verification Email
Change Password
submit -> Login
Authenticating*
authenticated? -> Validating
not authenticated? -> NotAuthenticated
App
Lock
Signup
submit -> User Exists
cancel -> NotAuthenticated
Login*
submit -> Authenticating
cancel -> NotAuthenticated
AppView
Validating
validated? -> Needs Setup
not validated? -> NotVerified
Needs Setup
first visit? -> Company
not first visit? -> Dashboard
Setup
Company
submit -> Submit Company
cancel -> Company
Submit Company
success -> Portfolio
failure -> Error
Portfolio
submit -> Departments
skip -> Categories
Departments
submit -> Categories
skip -> Strategic Objectives
Categories
submit -> Strategic Objectives
skip -> Lifecycles
Strategic Objectives
submit -> Lifecycles
skip -> Team Members
Lifecycles
submit -> Team Members
skip -> Dashboard
Team Members
submit -> Dashboard
skip -> Dashboard
Dashboard
logout -> NotAuthenticated
NotVerified
login -> Login
NotAuthenticated
login -> Login
cancel -> NotAuthenticated
Error
logout -> Login
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