Skip to content

Instantly share code, notes, and snippets.

@derek-duncan
Last active November 15, 2019 16:53
Show Gist options
  • Save derek-duncan/6ae4a3d1118c6fbc5c9dbcb47d220238 to your computer and use it in GitHub Desktop.
Save derek-duncan/6ae4a3d1118c6fbc5c9dbcb47d220238 to your computer and use it in GitHub Desktop.
Internal Admin Tools
Internal Admin Tools
Logged Out*
log in -> Bulk Admin
Bulk Admin
practice selected -> Show Preview?
action selected -> Preview
csv selected -> CSV Upload
# Clears the form
reset -> Idle
Idle*
CSV Upload
csv success -> Show Preview?
csv error -> Errors
Show Preview?
has action? -> Preview
no action? -> Idle
Preview&
View
confirm -> Has Confirmed?
ImportPreview*
UpdateComparePreview
Download Product CSV
Download Idle*
download start -> Download Loading
# Shows spinner on download button
Download Loading
download success -> Download Idle
Has Confirmed?
already confirmed? -> Submitting
not confirmed? -> Confirmation
Errors
csv uploaded -> Preview
Confirmation
cancel -> Preview
Unconfirmed Practice
type practice -> Confirmed Practice
Confirmed Practice
reconfirm -> Submitting
Submitting
error -> Errors
# Add a notification when it succeeds. Also clears the form.
success -> Idle
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