Skip to content

Instantly share code, notes, and snippets.

@j-funk
Last active June 4, 2021 22:58
Show Gist options
  • Save j-funk/03fbd386d71cdb35194f6a66f25cd34f to your computer and use it in GitHub Desktop.
Save j-funk/03fbd386d71cdb35194f6a66f25cd34f to your computer and use it in GitHub Desktop.
Web visitor&
Web visitor&
Visualizations
New Visualization
play with viz -> Another New Visualization
Another New Visualization
play with viz -> New Visualization
Loading Cookies
no cookies -> Unidentified User
email only -> Checking Email Status On SendGrid
email & name exist - no JWT -> Log In
JWT cookie exists -> Validating JWT
Cookie Policy
Needs To Accept
accept -> Has Accepted
Has Accepted
Onboarding
Authenticated User
log out -> Unidentified User
Unidentified User
Waiting For User Email
provides email -> Checking Email Status On SendGrid
Checking Email Status On SendGrid
brand new email -> Sending Email Confirmation
awaiting subscription confirmation -> Awaiting Email Confirmation
email is confirmed - no name -> Email Subscribed No Name
email is confirmed - has name -> Log In Or Sign Up
Email Subscription
Sending Email Confirmation
send confirmation -> Awaiting Email Confirmation
Awaiting Email Confirmation
confirm email -> Email Subscribed No Name
Email Subscribed No Name
provide name -> Email Subscription Complete
Email Subscription Complete
auto -> Sign Up
# Potentially could be in unsubscribed state
WordPress User
Log In Or Sign Up
choose log in -> Log In
choose sign up -> Sign Up
forgot password -> Password Reset
Sign Up
Define New Password For New Account
provide valid new password -> Create New User
invalid password or failure -> Define New Password For New Account
Create New User
user successfullly created -> Retrieving JWT
Log In
provide password -> Retrieving JWT
Retrieving JWT
password and email accepted -> Storing JWT
authentication failed -> Log In Or Sign Up
Storing JWT
JWT stored -> Authenticated User
Validating JWT
JWT is valid -> Authenticated User
Password Reset
Sending Password Reset
bad email -> Waiting For User Email
click on link in email -> Define New Password For Existing Account
Define New Password For Existing Account
provide valid new password -> Create New User
invalid password or failure -> Define New Password For New Account
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