Skip to content

Instantly share code, notes, and snippets.

@theodorton
Last active September 9, 2019 11:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save theodorton/97803875c0c61ce025b63d0cd05ab3c5 to your computer and use it in GitHub Desktop.
Save theodorton/97803875c0c61ce025b63d0cd05ab3c5 to your computer and use it in GitHub Desktop.
Initial State
Initial State
vanilla -> Lead
smartcar -> Authorized
smartcar model3 -> Equipment Delivered
prelead -> Prelead
create installation directly in CRM -> Active
create lead from CRM -> Lead
Lead Tab
Prelead*
user and listing connected -> Lead
Lead
approve -> Approved
postpone -> Postponed
unqualify -> Unqualified
Postponed
approve -> Approved
Schedule Tab
Approved
set installation date -> Scheduled
Authorized
mark equipment sent -> Equipment Sent
Equipment Sent
user confirms equipment delivered in app -> Equipment Delivered
admin marks equipment as tested -> Equipment Tested
Installation Tab
Scheduled
equipment installed -> Installed
Installed
mark equipment tested -> Equipment Tested
Equipment Delivered
mark equipment tested -> Equipment Tested
Equipment Tested
activate -> Active
Active Tab
Active
user deactivates smartcar -> Inactive
admin deactivates installation -> Inactive
Inactive Tab
Inactive
user activates smartcar -> Active
admin removes installation -> Uninstalled
remove smartcar -> Initial State
reset -> Initial State
Archive Tab
Unqualified
reset -> Initial State
Uninstalled
reset -> Initial State
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