Skip to content

Commit

Permalink
feat: add createProjectPage popup (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
blushi authored May 24, 2024
1 parent abf6a60 commit 13bd2f3
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 1 deletion.
4 changes: 4 additions & 0 deletions deskStructure.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ export default S =>
.title('Create Methodology Page')
.schemaType('createMethodologyPage')
.child(S.document().schemaType('createMethodologyPage')),
S.listItem()
.title('Create Project Page')
.schemaType('createProjectPage')
.child(S.document().schemaType('createProjectPage')),
S.listItem()
.title('Land Stewards Page')
.schemaType('landStewardsPage')
Expand Down
13 changes: 13 additions & 0 deletions schemas/documents/registry/createProjectPage.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
export default {
name: 'createProjectPage',
type: 'document',
title: 'Create Project Page',
fields: [
{
name: 'createProjectPagePopup',
type: 'createProjectPagePopup',
title: 'Create Project Page Popup',
description: 'Steps for getting started with a basic project page',
},
],
};
42 changes: 42 additions & 0 deletions schemas/objects/createProjectPagePopup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
export default {
title: 'Create Project Page Popup',
name: 'createProjectPagePopup',
type: 'object',
fields: [
{
title: 'Title',
name: 'title',
type: 'string',
validation: Rule => Rule.required(),
},
{
title: 'Description',
name: 'description',
type: 'customPortableText',
validation: Rule => Rule.required(),
},
{
title: 'Text with link to our guides',
name: 'guidesLink',
type: 'customPortableText',
validation: Rule => Rule.required(),
},
{
title: 'Steps',
name: 'steps',
type: 'array',
of: [
{
type: 'titleImageCustomBody',
},
],
validation: Rule => Rule.required(),
},
{
title: 'Button label',
name: 'buttonLabel',
type: 'string',
validation: Rule => Rule.required(),
},
],
};
4 changes: 4 additions & 0 deletions schemas/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import homePage from './documents/registry/homePage';
import homePageWeb from './documents/www/homePageWeb';
import createCreditClassPage from './documents/registry/createCreditClassPage';
import createMethodologyPage from './documents/registry/createMethodologyPage';
import createProjectPage from './documents/registry/createProjectPage';
import developersPage from './documents/www/developersPage';
import methodologyReviewProcessPage from './documents/registry/methodologyReviewProcessPage';
import methodology from './documents/registry/methodology';
Expand Down Expand Up @@ -199,6 +200,7 @@ import classPrefinanceTimelineItem from './objects/classPrefinanceTimelineItem';
import prefinanceTimelineItem from './objects/prefinanceTimelineItem';
import prefinanceProjects from './objects/prefinanceProjects';
import creditCategory from './documents/shared/creditCategory';
import createProjectPagePopup from './objects/createProjectPagePopup';

export default [
actionCard,
Expand Down Expand Up @@ -251,6 +253,8 @@ export default [
contactPage,
createCreditClassPage,
createMethodologyPage,
createProjectPage,
createProjectPagePopup,
createMethodologyStepCardSection,
creditCategory,
creditCertification,
Expand Down
3 changes: 2 additions & 1 deletion uniqueDocuments.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@ export const uniqueDocuments = [
'tokenPage',
'validatorsPage',
'walletAddressRegistrationPage',
'profilePage'
'profilePage',
'createProjectPage',
];

0 comments on commit 13bd2f3

Please sign in to comment.