Last active
June 28, 2019 14:40
-
-
Save bard/f3c1efc7b5527ab4a01a5d05cd44d920 to your computer and use it in GitHub Desktop.
# HelpMatch
This file contains hidden or 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
# 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 |
This file contains hidden or 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