Skip to content

Instantly share code, notes, and snippets.

@biancadanforth
Last active October 4, 2017 23:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save biancadanforth/f4e0dbdf3406dcdfea02b75e11f617e6 to your computer and use it in GitHub Desktop.
Save biancadanforth/f4e0dbdf3406dcdfea02b75e11f617e6 to your computer and use it in GitHub Desktop.
CFR Recipe
const cfrRecipe = {
triggers: {
// what user behaviors trigger the UI presentation
},
presentation: {
defaultComponent: {
// what do all major UI elements, sidebar, notification bar, doorhanger use
icon: '',
header: '',
summary: '',
action: '', // affirmative, primary action
learnMore: '', // intermediate action, not completely affirmative
rationale: '', // why am I seeing this? ??
rating: ''
},
presentationComponent: { // e.g. doorhanger
// whatever properties in here, overwrite defaultComponent if its key exists
},
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment