Closed ascott closed 3 years ago
@paninee i got these first two tasks completed and pushed them up to this WIP branch that we can share for the homepage/search filters work.
@paninee i updated the gist to reflect what i need in home controller passed to the home view. let me know if you have any qs about this. thanks!
const homepageData = {
stats: {
cases: 0, // (total entries)
methods: 0, // (total entries)
organizations: 0, // (total entries)
countries: 0, // (number of unique countries represented between cases and orgs)
contributors: 0, // (number of unique users who have created or edited an entry)
},
featuredCollections: [
{
id: 6499,
type: "collection",
title: "Covid-19 Response",
description:
"This collection includes diverse forms of public participation that address the Covid-19 pandemic, ranging from protests & volunteering to hackathons & distributed computing. These entries are crowdsourced and collaboratively written by Participedia’s community of wiki contributors.",
photos: [
{
url:
"https://s3.amazonaws.com/participedia.prod/6a03edfd-9869-4e3e-aaf8-2ef707a4c89f",
source_url: "",
attribution: "",
title: "NicoloCampo-GettyImages-viaBBC.jpg",
},
],
},
],
featuredCasesMethodsOrgs: [
{
id: 5515,
type: "case",
title: "Advancing Women’s Rights in Nicaragua’s Farming Cooperatives",
description:
"A gender audit of the National Federation of Cooperatives found women in Nicaragua lacked access to land. Reforms of the association and the development of a Women’s Land Fund increased women’s representation and participation.",
photos: [
{
url:
"https://s3.amazonaws.com/participedia.prod/3fe9ac66-d298-4721-88ee-eac81f55453f_coffee-women-MAIN.jpg",
source_url: "http://bit.ly/2CZZ1tU",
attribution: "Simon Rawles/Getty Images",
title: "",
},
],
},
],
};
@paninee when you are done with the search page, could you take a look at this task? thanks!
@ascott I passed the JSON data back to you. Can you double-check if it needs any change?
@paninee awesome, thank you! i will check this out later this evening 👍
[x] create new home/root controller for new home page
[x] rename
home-search-*.*
files tosearch-*.*
since they are served from the search controller, and we will now have a separate home view[x] pass the following json data to the home view https://gist.github.com/ascott/429f641f3f27115be0659ab377c7b219