Last active
September 9, 2019 11:43
-
-
Save theodorton/97803875c0c61ce025b63d0cd05ab3c5 to your computer and use it in GitHub Desktop.
Initial State
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
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 |
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