Skip to content

Commit

Permalink
Merge pull request #2277 from responsible-ai-collaborative/staging
Browse files Browse the repository at this point in the history
Deploy to Production - 2023-09-14
  • Loading branch information
kepae authored Sep 15, 2023
2 parents 64a9def + bcc8efc commit 6d2cb04
Show file tree
Hide file tree
Showing 10 changed files with 504 additions and 207 deletions.
159 changes: 121 additions & 38 deletions prismicCustomTypes.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,73 +113,156 @@ name: `sponsor`
JSON:
```
{
"Main": {
"title": {
"type": "StructuredText",
"config": {
"single": "heading6",
"label": "Title",
"placeholder": "Sponsor(s) card title"
"Main" : {
"title" : {
"type" : "StructuredText",
"config" : {
"single" : "heading6",
"label" : "Title",
"placeholder" : "Sponsor(s) card title"
}
},
"language": {
"type": "StructuredText",
"language" : {
"type" : "StructuredText",
"config" : {
"single" : "heading6",
"label" : "language",
"placeholder" : "Language (en, es or fr)"
}
},
"order" : {
"type" : "StructuredText",
"config" : {
"single" : "heading6",
"label" : "Order",
"placeholder" : "The order you wish the sponsor to appear"
}
},
"items" : {
"type" : "Group",
"config" : {
"fields" : {
"logo" : {
"type" : "Image",
"config" : {
"constraint" : { },
"thumbnails" : [ ],
"label" : "Logo"
}
},
"name" : {
"type" : "StructuredText",
"config" : {
"single" : "heading5",
"label" : "name",
"placeholder" : "Sponsor's name"
}
},
"description" : {
"type" : "StructuredText",
"config" : {
"multi" : "paragraph,preformatted,heading1,heading2,heading3,heading4,heading5,heading6,strong,em,hyperlink,image,embed,list-item,o-list-item,rtl",
"allowTargetBlank" : true,
"label" : "description",
"placeholder" : "Sponsor's description"
}
},
"link" : {
"type" : "Link",
"config" : {
"label" : "link",
"select" : null,
"allowTargetBlank" : true,
"placeholder" : "Logo's link"
}
}
},
"label" : "Sponsor's info"
}
}
}
}
```

### 3. Footer custom type

name: `footer`

JSON:
```
{
"Main": {
"title": {
"type": "Text",
"config": {
"single": "heading6",
"label": "language",
"placeholder": "Language (en, es or fr)"
"label": "Title"
}
},
"order": {
"type": "StructuredText",
"type": "Number",
"config": {
"single": "heading6",
"label": "Order",
"placeholder": "The order you wish the sponsor to appear"
"label": "Order"
}
},
"items": {
"type": "Group",
"config": {
"fields": {
"logo": {
"type": "Image",
"item_title": {
"type": "Text",
"config": {
"constraint": {},
"thumbnails": [],
"label": "Logo"
"label": "Item Title"
}
},
"name": {
"type": "StructuredText",
"item_url": {
"type": "Link",
"config": {
"single": "heading5",
"label": "name",
"placeholder": "Sponsor's name"
"label": "Item URL",
"select": null,
"allowTargetBlank": true,
"placeholder": "External URL (outside site)"
}
},
"description": {
"type": "StructuredText",
"path": {
"type": "Text",
"config": {
"multi": "paragraph,preformatted,heading1,heading2,heading3,heading4,heading5,heading6,strong,em,hyperlink,image,embed,list-item,o-list-item,rtl",
"allowTargetBlank": true,
"label": "description",
"placeholder": "Sponsor's description"
"label": "Path"
}
}
},
"label": "Items"
}
},
"social": {
"type": "Group",
"config": {
"fields": {
"name": {
"type": "Text",
"config": {
"label": "Name",
"placeholder": "twitter/facebook/github/linked"
}
},
"link": {
"url": {
"type": "Link",
"config": {
"label": "link",
"select": null,
"allowTargetBlank": true,
"placeholder": "Logo's link"
"label": "url",
"placeholder": "URL to your social media account",
"select": null
}
},
"path": {
"type": "Text",
"config": {
"label": "Path"
}
}
},
"label": "Sponsor's info"
"label": "social"
}
}
}
}
```
```
1 change: 0 additions & 1 deletion site/gatsby-site/cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ const { defineConfig } = require('cypress');

module.exports = defineConfig({
video: false,
videoUploadOnPasses: false,
chromeWebSecurity: false,
screenshotOnRunFailure: false,
retries: {
Expand Down
3 changes: 1 addition & 2 deletions site/gatsby-site/cypress/e2e/integration/admin.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ const { gql } = require('@apollo/client');
describe('Admin', () => {
const baseUrl = '/admin';

//TODO: (Issue #2272): Temporarily skip flaky test.
it.skip('Should show not enough permissions message', () => {
it('Should show not enough permissions message', () => {
cy.visit(baseUrl);

cy.contains('Not enough permissions').should('be.visible');
Expand Down
Loading

0 comments on commit 6d2cb04

Please sign in to comment.