diff --git a/deskStructure.js b/deskStructure.js index 85b836c..361429b 100644 --- a/deskStructure.js +++ b/deskStructure.js @@ -257,6 +257,10 @@ export default S => .title('Project Activity') .schemaType('projectActivity') .child(S.documentTypeList('projectActivity').title('Project Activity')), + S.listItem() + .title('Project Ecosystem') + .schemaType('projectEcosystem') + .child(S.documentTypeList('projectEcosystem').title('Project Ecosystem')), S.listItem() .title('Project') .schemaType('project') diff --git a/schemas/documents/shared/projectEcosystem.js b/schemas/documents/shared/projectEcosystem.js new file mode 100644 index 0000000..dc4941d --- /dev/null +++ b/schemas/documents/shared/projectEcosystem.js @@ -0,0 +1,18 @@ +export default { + title: 'Project Ecosystem', + name: 'projectEcosystem', + type: 'document', + fields: [ + { + title: 'Name', + name: 'name', + type: 'string', + validation: Rule => Rule.required(), + }, + { + title: 'Icon', + name: 'icon', + type: 'image', + }, + ], +}; diff --git a/schemas/schema.js b/schemas/schema.js index 4ff659b..400d30a 100644 --- a/schemas/schema.js +++ b/schemas/schema.js @@ -35,6 +35,7 @@ import creditGenerationMethod from './documents/shared/creditGenerationMethod'; import ecologicalCreditCard from './documents/shared/ecologicalCreditCard'; import offsetMethod from './documents/shared/offsetMethod'; import projectActivity from './documents/shared/projectActivity'; +import projectEcosystem from './documents/shared/projectEcosystem'; import project from './documents/shared/project'; import featuredProjectCard from './documents/shared/featuredProjectCard'; import partner from './documents/shared/partner'; @@ -317,6 +318,7 @@ export default [ presskitTimelineSection, project, projectActivity, + projectEcosystem, projectDetails, projectDetailsCard, projectPage,