Skip to content

Instantly share code, notes, and snippets.

@jvtrigueros
Created December 17, 2021 02:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jvtrigueros/e5fdf313a587b1ec79a6828dc89106b6 to your computer and use it in GitHub Desktop.
Save jvtrigueros/e5fdf313a587b1ec79a6828dc89106b6 to your computer and use it in GitHub Desktop.
HomeFeed 2.0 Config Mutation Payload
{
"id": "iOS-homefeed",
"supergroups": [
{
"name": "header-supergroup",
"type": "header",
"rendering": {
"bgColor": "#FFFFFF"
},
"componentgroups": [
{
"name": "HeaderComponentGroup",
"header": null,
"rendering": {
"bgColor": null,
"renderingType": "header.homefeed"
},
"components": [
{
"type": "header",
"image": "https://i.ibb.co/0GdLcBG/homefeed-Image.png",
"title": "Hello Yummly!",
"icon": null,
"eyebrowText": null
}
]
}
]
},
{
"name": "Vegan-supergroup",
"type": "recipe_list",
"rendering": {
"bgColor": "#FCF5E6"
},
"componentgroups": [
{
"name": "HeaderComponentGroup",
"header": null,
"rendering": {
"bgColor": null,
"renderingType": "header.supergroup"
},
"components": [
{
"type": "header",
"image": "https://i.ibb.co/ZfqCHZj/Transparent-test-01.png",
"title": "Explore Veganuary",
"icon": null,
"eyebrowText": "Yummly Special"
}
]
},
{
"name": "Recipe List",
"header": {
"title": "Vegan Regular Recipes",
"viewAll": true,
"caption": "All the Vegan Specials for January"
},
"rendering": {
"bgColor": null,
"renderingType": "card.recipe.regular"
},
"components": [
{
"type": "recipe_list",
"query": "vegan",
"ids": null,
"limit": 4,
"user-prefs": false
}
]
},
{
"name": "Recipe Regular Pro",
"header": {
"title": "Recipe Regular Pro (Chicken)",
"viewAll": true,
"caption": null
},
"rendering": {
"bgColor": null,
"renderingType": "card.recipe.regular_pro"
},
"components": [
{
"type": "recipe_list",
"query": "chicken",
"ids": null,
"limit": 10,
"user-prefs": false
}
]
},
{
"name": "Recipe Regular",
"header": null,
"rendering": {
"bgColor": null,
"renderingType": "card.recipe.regular"
},
"components": [
{
"type": "recipe_list",
"query": "tuna",
"ids": null,
"limit": 10,
"user-prefs": false
}
]
},
{
"name": "Single Recipe Medium",
"header": null,
"rendering": {
"bgColor": null,
"renderingType": "card.recipe.medium"
},
"components": [
{
"type": "single_recipe",
"query": null,
"ids": [
"Vegan-Banana-Bread-2684125"
],
"limit": 1,
"user-prefs": false
}
]
},
{
"name": "List Recipe Medium",
"header": null,
"rendering": {
"bgColor": null,
"renderingType": "card.recipe.medium"
},
"components": [
{
"type": "recipe_list",
"query": "sushi",
"ids": null,
"limit": 10,
"user-prefs": false
}
]
},
{
"name": "Single Recipe Large",
"header": null,
"rendering": {
"bgColor": null,
"renderingType": "card.recipe.large"
},
"components": [
{
"type": "single_recipe",
"query": null,
"ids": [
"Vegan-Banana-Bread-2684125"
],
"limit": 1,
"user-prefs": false
}
]
},
{
"name": "List Recipe Large",
"header": null,
"rendering": {
"bgColor": null,
"renderingType": "card.recipe.large"
},
"components": [
{
"type": "recipe_list",
"query": "burger",
"ids": null,
"limit": 10,
"user-prefs": false
}
]
},
{
"name": "Single Recipe Large Tablet",
"header": null,
"rendering": {
"bgColor": null,
"renderingType": "card.recipe.large_tablet"
},
"components": [
{
"type": "single_recipe",
"query": null,
"ids": [
"Vegan-Banana-Bread-2684125"
],
"limit": 1,
"user-prefs": false
}
]
}
]
},
{
"name": "Article-supergroup",
"type": "article_list",
"rendering": {
"bgColor": "#FFFFFF"
},
"componentgroups": [
{
"name": "article-supergroup-component-group-1",
"header": {
"title": "Get reading",
"viewAll": false,
"caption": null
},
"rendering": {
"bgColor": null,
"renderingType": "card.article.list"
},
"components": [
{
"type": "article",
"ids": [
"d732a7a6-6deb-403c-ba34-e424b9930b03",
"ce1e6d83-0eb7-4dad-b6c9-3e56ddc7ff0c",
"8e6d5772-96cc-448e-8f8e-764246d61a60"
],
"limit": 10,
"user-prefs": false
}
]
}
]
},
{
"name": "Browse-supergroup",
"type": "browse_group",
"rendering": {
"bgColor": "#FFFFFF"
},
"componentgroups": [
{
"name": "browse-supergroup-component-group-1",
"header": null,
"rendering": {
"bgColor": null,
"renderingType": "card.browse.regular"
},
"components": [
{
"type": "browse",
"title": "Burger",
"img": "https://i.ibb.co/N9YN63D/Browse-Burger.jpg"
},
{
"type": "browse",
"title": "Cookie",
"img": "https://i.ibb.co/BcRrMCF/Browse-Cookie.jpg"
},
{
"type": "browse",
"title": "Sushi",
"img": "https://i.ibb.co/r6DDhfv/Browse-Sushi.jpg"
}
]
},
{
"name": "browse-supergroup-component-group-2",
"header": null,
"rendering": {
"bgColor": null,
"renderingType": "card.browse.regular_carousel"
},
"components": [
{
"type": "browse",
"title": "Courses",
"img": "https://i.ibb.co/mCFNJcH/card-browse-regular-carousel.jpg"
},
{
"type": "browse",
"title": "Pro",
"img": "https://i.ibb.co/mCFNJcH/card-browse-regular-carousel.jpg"
},
{
"type": "browse",
"title": "Cook with Smart Devices",
"img": "https://i.ibb.co/mCFNJcH/card-browse-regular-carousel.jpg"
}
]
},
{
"name": "browse-supergroup-component-group-3",
"header": null,
"rendering": {
"bgColor": null,
"renderingType": "card.browse.regular_pro"
},
"components": [
{
"type": "browse",
"title": "Comfort Food Classics",
"caption": "Andrew Zimmern",
"img": "https://i.ibb.co/vmLtLfw/Andrew-Zimmern.png"
},
{
"type": "browse",
"title": "Middle Eastern Street Food",
"caption": "Einat Admony",
"img": "https://i.ibb.co/pzzzC1F/Einat-Admony.png"
},
{
"type": "browse",
"title": "Soul Food Classics",
"caption": "Carla Hall",
"img": "https://i.ibb.co/qrPzDfn/Carla-Hall.png"
},
{
"type": "browse",
"title": "Nigerian Traditions",
"caption": "Tunde Wey",
"img": "https://i.ibb.co/0CNg52x/TundeWey.png"
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment