Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy to Production – 2023-10-10 #2325

Merged
merged 74 commits into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
1ef65f3
Add empty endpoint
lmcnulty Apr 11, 2023
0885d0a
Add risks endpoint
lmcnulty Apr 12, 2023
4a7318d
Convert attributes to tags correctly
lmcnulty May 6, 2023
c915ceb
wip
lmcnulty May 11, 2023
2706de9
wip
lmcnulty May 11, 2023
ba4b7a8
wip
lmcnulty May 16, 2023
56b5d62
wip
lmcnulty May 19, 2023
71c28e8
wip
lmcnulty May 23, 2023
76c6a81
wip
lmcnulty May 23, 2023
318ec7f
wip
lmcnulty May 25, 2023
2b3d30c
wip
lmcnulty Jun 2, 2023
782ff56
Refactor
lmcnulty Jun 2, 2023
6bd950b
wip
lmcnulty Jun 5, 2023
979cfaf
wip
lmcnulty Jun 9, 2023
284d30b
Functionally complete
lmcnulty Jun 12, 2023
9f42d72
Merge staging
lmcnulty Jun 12, 2023
c355d1c
Add checklists index
lmcnulty Jun 13, 2023
d38e1b7
Skip tests
lmcnulty Jun 14, 2023
0ef51a5
Use const
lmcnulty Jun 14, 2023
26380ee
Check for checklist
lmcnulty Jun 15, 2023
3670114
Add status indicators
lmcnulty Jun 15, 2023
5530832
Update status options, styles
lmcnulty Jun 15, 2023
ccbd049
Remove unsupported ||=
lmcnulty Jun 16, 2023
87576c2
Fix missing bang
lmcnulty Jun 16, 2023
a01259c
Add json export
lmcnulty Jun 16, 2023
2e0a033
Add responsive design
lmcnulty Jun 16, 2023
d1d6acb
Add progress svg
lmcnulty Jun 16, 2023
f009ebb
I want to switch branches
lmcnulty Jun 30, 2023
46517f9
Split into more components
lmcnulty Jul 5, 2023
7039edf
Add more descriptive text, style improvements
lmcnulty Jul 5, 2023
0bc9ac3
wip
lmcnulty Jul 11, 2023
1573d4f
wip
lmcnulty Jul 12, 2023
121268b
Add values to header, distinguish generated and manually edited risks
lmcnulty Jul 12, 2023
193d042
wip
lmcnulty Jul 17, 2023
4b52e23
wip
lmcnulty Jul 28, 2023
a4d8027
wip
lmcnulty Aug 3, 2023
2be62c9
wip
lmcnulty Aug 11, 2023
ad3e166
wip
lmcnulty Aug 14, 2023
8cefb6f
Fix errors
lmcnulty Aug 14, 2023
0c30fe5
wip
lmcnulty Aug 22, 2023
505a03b
wip
lmcnulty Sep 5, 2023
04d3e00
Restore tests
lmcnulty Sep 6, 2023
d8f0cb0
Merge
lmcnulty Sep 6, 2023
97d8330
Merge branch 'staging' of https://github.com/responsible-ai-collabora…
lmcnulty Sep 18, 2023
1c90d63
Revise according to reviews
lmcnulty Sep 21, 2023
1d4abac
Remove logs, add unsupported api message
lmcnulty Sep 22, 2023
caa9cfe
Check that risk status exists before submitting
lmcnulty Sep 22, 2023
a87efe7
Revert schema changes
lmcnulty Sep 22, 2023
e71b0bb
Add revert migration
lmcnulty Sep 22, 2023
6c905fd
Fix trash button
lmcnulty Sep 22, 2023
77e2c95
Make components less classy
lmcnulty Sep 25, 2023
6eee968
Revert "Revert schema changes"
lmcnulty Sep 25, 2023
366a0ea
Remove comment
lmcnulty Sep 25, 2023
206826a
Fix input lag
lmcnulty Sep 25, 2023
e834ad3
Alphabetize spatial visualization categories
lmcnulty Sep 26, 2023
034cfc6
function → const
lmcnulty Sep 27, 2023
e126c99
Use same ID generation everywhere
lmcnulty Sep 27, 2023
b49cf25
Add comments
lmcnulty Sep 27, 2023
ebf361b
Use toasts for errors
lmcnulty Sep 27, 2023
2d20e1c
Remove commented code, improve save state and error handling
lmcnulty Sep 29, 2023
9d5a8a3
Add test for Rollbar logging on the website (#2320)
pdcp1 Sep 29, 2023
72eb938
Fix incorrect reduce, hooks
lmcnulty Oct 2, 2023
a6e1a10
Fix update on submit
lmcnulty Oct 2, 2023
c21f657
Add migration to fix old attribute names (#2319)
cesarvarela Oct 3, 2023
a4a267a
Fix cset migration null values (#2331)
cesarvarela Oct 3, 2023
e46bbb6
Fix setting staging environment label
kepae Oct 4, 2023
fdf1db6
Fix Google Rich results (#2326)
cesarvarela Oct 4, 2023
babed3b
Merge pull request #2334 from kepae/rollbar
kepae Oct 4, 2023
4864910
Fetch path from social media items (#2323)
clari182 Oct 5, 2023
ef62630
Merge pull request #1852 from lmcnulty/checklisting-api
kepae Oct 5, 2023
544e11f
Remove duplicate `adminData` definition from User
pdcp1 Oct 6, 2023
caeb02b
Merge pull request #2337 from pdcp1/fix/admin-data-error-field
kepae Oct 6, 2023
dd2edc9
Merge pull request #2308 from lmcnulty/alphabetize-tsne-categories
kepae Oct 6, 2023
1d6b0e1
Fix/prismic schema (#2296)
clari182 Oct 10, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,9 @@ GATSBY_AVAILABLE_LANGUAGES=en,es,fr
SKIP_PAGE_CREATOR=createTsneVisualizationPage
GATSBY_PRISMIC_REPO_NAME=
PRISMIC_ACCESS_TOKEN=
PRISMIC_CUSTOM_TYPES_API_TOKEN=
```

For `GATSBY_PRISMIC_REPO_NAME`, `PRISMIC_ACCESS_TOKEN` and `PRISMIC_CUSTOM_TYPES_API_TOKEN` variables, please [follow prismic setup below](https://github.com/responsible-ai-collaborative/aiid#prismic-setup)
For `GATSBY_PRISMIC_REPO_NAME` and `PRISMIC_ACCESS_TOKEN` variables, please [follow prismic setup below](https://github.com/responsible-ai-collaborative/aiid#prismic-setup)

This will give you access to our `staging` environment, so please be sure you are on the `staging` branch.

Expand Down Expand Up @@ -324,7 +323,7 @@ GOOGLE_MAPS_API_KEY=XXXXXXXXXXXX
```

### Prismic setup
This project uses Prismic to fetch page content.
This project uses Prismic to fetch page content. You can still run the project without setting a Prismic account.

#### Prismic Setup

Expand All @@ -334,7 +333,6 @@ This project uses Prismic to fetch page content.
4. Choose your plan (if you only need one user, the free plan is enough)
5. Click `Create repository`
6. Create a new token in Settings > API & Security > Content API tab > Change Repository security to `Private API – Require an access token for any request` > Create new app > Permanent access tokens > Save value for later
7. Create a new custom type token in Settings > API & Security > Custom types API tab > Tokens > Add new app name and create token > Save value for later

#### Adding the Prismic content types

Expand All @@ -359,7 +357,6 @@ In order to do this, you need to create a Netlify Build Hook.
Add the following environment variable on Netlify:
`GATSBY_PRISMIC_REPO_NAME=[name_of_your_repository]` (step 3 from Prismic Setup section)
`PRISMIC_ACCESS_TOKEN=[you_prismic_access_token]` (step 6 from Prismic Setup section)
`PRISMIC_CUSTOM_TYPES_API_TOKEN=[you_prismic_custom_types_access_token]` (step 7 from Prismic Setup section)

**Create Prismic/Netlify Hook**
1. Login to your Netlify
Expand Down
87 changes: 87 additions & 0 deletions site/gatsby-site/custom_types/blog.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
{
"Main" : {
"uid" : {
"type" : "UID",
"config" : {
"label" : "uid",
"placeholder" : "UID"
}
},
"metadescription" : {
"type" : "Text",
"config" : {
"label" : "metaDescription*",
"placeholder" : "Summary of the blog post's content (mandatory)"
}
},
"metatitle" : {
"type" : "Text",
"config" : {
"label" : "metaTitle*",
"placeholder" : "Title of the blog post (mandatory)"
}
},
"slug" : {
"type" : "Text",
"config" : {
"label" : "slug*",
"placeholder" : "The last part of the URL address that serves as a unique identifier of the page. The same blog post but in different locale should have the same slug (mandatory)"
}
},
"language" : {
"type" : "Text",
"config" : {
"label" : "language*",
"placeholder" : "en, es or fr (mandatory)"
}
},
"aitranslated" : {
"type" : "Boolean",
"config" : {
"placeholder_false" : "false (the post is in its original language or has been translated manually)",
"placeholder_true" : "true (this post has been translated with AI)",
"default_value" : false,
"label" : "aiTranslated"
}
},
"title" : {
"type" : "StructuredText",
"config" : {
"single" : "heading1",
"label" : "Main title*",
"placeholder" : "Title of the blog post (mandatory)"
}
},
"date" : {
"type" : "Date",
"config" : {
"label" : "Post Date*",
"placeholder" : "Date when the post was created/published (mandatory)"
}
},
"author" : {
"type" : "Text",
"config" : {
"label" : "Author(s)*",
"placeholder" : "Who wrote this blog post, could be multiple authors (mandatory)"
}
},
"content" : {
"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" : "Content*",
"placeholder" : "Rich text with the content of the blog post (mandatory)"
}
},
"image" : {
"type" : "Image",
"config" : {
"constraint" : { },
"thumbnails" : [ ],
"label" : "Post's main image*"
}
}
}
}
68 changes: 68 additions & 0 deletions site/gatsby-site/custom_types/doc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"Main" : {
"title" : {
"type" : "Text",
"config" : {
"label" : "Title"
}
},
"language" : {
"type" : "Text",
"config" : {
"label" : "Language",
"placeholder" : "en es or fr"
}
},
"slug" : {
"type" : "Text",
"config" : {
"label" : "Slug",
"placeholder" : "Path to your doc. Example: /about"
}
},
"metatitle" : {
"type" : "Text",
"config" : {
"label" : "metaTitle"
}
},
"metadescription" : {
"type" : "Text",
"config" : {
"label" : "metaDescription"
}
},
"aitranslated" : {
"type" : "Boolean",
"config" : {
"placeholder_false" : "Doc is its original language",
"placeholder_true" : "Doc is translated",
"default_value" : false,
"label" : "aiTranslated"
}
},
"content" : {
"type" : "Group",
"config" : {
"fields" : {
"text" : {
"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" : "text"
}
},
"component" : {
"type" : "Text",
"config" : {
"label" : "Component",
"placeholder" : "Name of a React Component you want to appear on the page. Example: Leaderboards"
}
}
},
"label" : "content"
}
}
}
}
75 changes: 75 additions & 0 deletions site/gatsby-site/custom_types/footer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"Main" : {
"title" : {
"type" : "Text",
"config" : {
"label" : "Title"
}
},
"order" : {
"type" : "Number",
"config" : {
"label" : "Order"
}
},
"items" : {
"type" : "Group",
"config" : {
"fields" : {
"item_title" : {
"type" : "Text",
"config" : {
"label" : "Item Title"
}
},
"item_url" : {
"type" : "Link",
"config" : {
"label" : "Item URL",
"select" : null,
"allowTargetBlank" : true,
"placeholder" : "External URL (outside site)"
}
},
"path" : {
"type" : "Text",
"config" : {
"label" : "Path"
}
}
},
"label" : "Items"
}
},
"social" : {
"type" : "Group",
"config" : {
"fields" : {
"name" : {
"type" : "Text",
"config" : {
"label" : "Name",
"placeholder" : "twitter/facebook/github/linked"
}
},
"url" : {
"type" : "Link",
"config" : {
"allowTargetBlank" : true,
"label" : "url",
"placeholder" : "URL to your social media account",
"select" : null
}
},
"path" : {
"type" : "Text",
"config" : {
"label" : "Path"
}
}
},
"label" : "social"
}
}
}
}
78 changes: 78 additions & 0 deletions site/gatsby-site/custom_types/sidebar.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{
"Main" : {
"title" : {
"type" : "Text",
"config" : {
"label" : "Title"
}
},
"label" : {
"type" : "Text",
"config" : {
"label" : "Label",
"placeholder" : "Used to fetch the corresponding icon. This should be defined in treeNode.js (getIcon function). If left empty no icon will be displayed"
}
},
"url" : {
"type" : "Link",
"config" : {
"allowTargetBlank" : true,
"label" : "URL",
"placeholder" : "Menu Item URL if the link is external",
"select" : null
}
},
"path" : {
"type" : "Text",
"config" : {
"label" : "Path"
}
},
"order" : {
"type" : "Number",
"config" : {
"label" : "Order"
}
},
"items" : {
"type" : "Group",
"config" : {
"fields" : {
"item_title" : {
"type" : "Text",
"config" : {
"label" : "Item title"
}
},
"item_label" : {
"type" : "Text",
"config" : {
"label" : "Item Label"
}
},
"item_url" : {
"type" : "Link",
"config" : {
"allowTargetBlank" : true,
"label" : "url",
"select" : null
}
},
"item_path" : {
"type" : "Text",
"config" : {
"label" : "Item path"
}
},
"item_order" : {
"type" : "Text",
"config" : {
"label" : "Item order"
}
}
},
"label" : "Menu sub Items"
}
}
}
}
Loading
Loading