Skip to content

Instantly share code, notes, and snippets.

@gulp
Last active May 7, 2020 17:03
Show Gist options
  • Save gulp/83f5f97aaf34970ba101e620466e0c64 to your computer and use it in GitHub Desktop.
Save gulp/83f5f97aaf34970ba101e620466e0c64 to your computer and use it in GitHub Desktop.
Scanned items
Scanned items
flush -> No items
No items
Scan -> Below threshold
Below threshold
Ship anyway -> Keep & Ship
Scan more -> Under
Within tolerances
Under
Ship now -> Discard & Ship
Scan more -> Desired
Desired
Ship now -> Shipped desired
Scan -> Shipped desired
Scan extra -> Over
Over
Ship now -> Shipped excess
Scan more -> Over threshold
Over threshold
Ship anyway -> Ship Excess
Ship anyway
Discard & Ship
ship now -> Discarded remaining
keep -> Keep & Ship
Keep & Ship
ship now -> Kept remaining
discard -> Discard & Ship
Ship Excess
Ship excess -> Shipped excess
Shipped
scan new item -> Below threshold
Shipped desired
Discarding
Discarded remaining
Discarded excess
Shipped excess
Kept remaining
go to new shipment -> New shipment
New shipment
scan -> Below threshold
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