Skip to content

Instantly share code, notes, and snippets.

@good-idea
Last active December 16, 2024 22:59
Show Gist options
  • Save good-idea/9ae1412b976c0fe23bcb59b00bbf6173 to your computer and use it in GitHub Desktop.
Save good-idea/9ae1412b976c0fe23bcb59b00bbf6173 to your computer and use it in GitHub Desktop.
Onboarding
Onboarding
Connect to Wifi*
connect -> Check for Firmware Updates
skip -> Continue
Check for Firmware Updates
firmware check pending*
check finds new update -> firmware update needed
check finds no update -> no firmware update needed
no firmware update needed
continue -> Check for Software Updates
firmware update needed
accept -> Firmware Download Pending
Firmware Download Pending
download fails -> Firmware Download Error
download completes -> Firmware Download Ready
Firmware Download Ready
install -> Device Reset
Firmware Download Error
retry -> Firmware Download Pending
Device Reset
reset complete -> Check for Firmware Updates
Check for Software Updates
software check pending*
check finds new update -> software update needed
check finds no update -> no software update needed
no software update needed
continue -> Continue
software update needed
accept -> Firmware Download Pending
Continue
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