Skip to content

Instantly share code, notes, and snippets.

@hjbrandt
Created January 2, 2020 15:26
Show Gist options
  • Save hjbrandt/698dcf0510d8c64d02dadd52a83e932d to your computer and use it in GitHub Desktop.
Save hjbrandt/698dcf0510d8c64d02dadd52a83e932d to your computer and use it in GitHub Desktop.
fetch
fetch
idle
FETCH -> loading
loading
RESOLVE -> success
REJECT -> failure
success
SUCCESS -> Home View
failure
RETRY -> loading
Tab Bar
home -> Home
explore -> Explore
sleep -> Sleep
profile -> Profile
Home*
Home View
pull to refresh -> loading
tap Keep going -> Meditation Overlay
Meditation Overlay
tap back -> Home View
tap next session -> Selected Session
Selected Session
cancel -> Meditation Overlay
tap play -> Meditation Session
Meditation Session
cancel -> Meditation Overlay
Explore*
Explore View*
Sleep*
Sleep View*
Profile*
Profile View*
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