Skip to content

Instantly share code, notes, and snippets.

@bard
Last active June 28, 2019 14:40
Show Gist options
  • Save bard/f3c1efc7b5527ab4a01a5d05cd44d920 to your computer and use it in GitHub Desktop.
Save bard/f3c1efc7b5527ab4a01a5d05cd44d920 to your computer and use it in GitHub Desktop.
# HelpMatch
# HelpMatch
Start*
mounted -> LoadingLocalState
LoadingLocalState
localStateLoaded -> CheckingForSession
localStateAbsent -> CheckingForSession
CheckingForSession
sessionAbsent -> Welcome
sessionLockedAndUnlockDataAbsent -> CollectingSetupData
sessionLockedAndUnlockDataPresent -> UnlockingAccount
sessionUsable -> LoadingRemoteState
# start listening for url changes
Welcome
getStartedSelected -> Setup
loginSelected -> CollectingAuthData
verificationTokenProvided -> VerifyingToken
Setup
CollectingSetupData
setupDataCollected -> SavingSetupData
SavingSetupData
setupDataSaveSuccess -> CollectingAuthData
setupDataSaveFailure -> Error
Auth
CollectingAuthData
# save unlock data
authDataProvided -> SubmittingAuthData
SubmittingAuthData
success -> AuthSubmitted
failure -> Error
# only used manually during development
AuthSubmitted
tokenProvided -> VerifyingToken
VerifyingToken
tokenVerificationSuccess -> UnlockingAccount
tokenVerificationFailure -> Error
UnlockingAccount
accountUnlockSuccess -> UpdatingRemoteState
accountUnlockFailure -> Setup
Main
LoadingRemoteState
remoteStateLoadSuccess -> BrowsingResults
remoteStateLoadFailure -> Error
UpdatingRemoteState
remoteStateUpdateSuccess -> Main
remoteStateUpdateFailure -> Main
BrowsingResults
criteriaButtonClicked -> EditingCriteria
EditingCriteria
resultsButtonClicked -> BrowsingResults
Error
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