diff --git a/client/.env.development b/client/.env.development index 3b16e65c..ab9c5f79 100644 --- a/client/.env.development +++ b/client/.env.development @@ -11,10 +11,11 @@ GATSBY_DATA_PIPELINE_SCORE_PATH=data-pipeline/data/score GATSBY_SCORE_DOWNLOAD_FILE_PATH=downloadable/Screening_Tool_Data.zip GATSBY_SHAPE_FILE_PATH=shapefile/usa.zip +GATSBY_TSD_DOWNLOAD_FILE_PATH=downloadable/cejst_technical_support_document.pdf GATSBY_MAP_TILES_PATH=tiles -# If you want the map to render a MapBox base map (as opposed to the -# open source one from CartoDB), please create your own API TOKEN from +# If you want the map to render a MapBox base map (as opposed to the +# open source one from CartoDB), please create your own API TOKEN from # your MapBox account and add the token here: -# MAPBOX_STYLES_READ_TOKEN='' \ No newline at end of file +# MAPBOX_STYLES_READ_TOKEN='' diff --git a/client/.env.production b/client/.env.production index 304cafad..22c91533 100644 --- a/client/.env.production +++ b/client/.env.production @@ -8,4 +8,5 @@ GATSBY_CDN_TILES_BASE_URL=https://static-data-screeningtool.geoplatform.gov GATSBY_DATA_PIPELINE_SCORE_PATH=data-pipeline/data/score GATSBY_SCORE_DOWNLOAD_FILE_PATH=downloadable/Screening_Tool_Data.zip GATSBY_SHAPE_FILE_PATH=shapefile/usa.zip +GATSBY_TSD_DOWNLOAD_FILE_PATH=downloadable/cejst_technical_support_document.pdf GATSBY_MAP_TILES_PATH=tiles diff --git a/client/compiled-lang/en.json b/client/compiled-lang/en.json index de5369f7..250e3caf 100644 --- a/client/compiled-lang/en.json +++ b/client/compiled-lang/en.json @@ -2575,20 +2575,26 @@ "value": "Download shapefile" } ], + "methodology.page.downloadPacket.button3.text": [ + { + "type": 0, + "value": "Download technical support document" + } + ], "methodology.page.downloadPacket.header.text": [ { "type": 0, "value": "Files available for download" } ], - "methodology.page.downloadPacket.info.last.updated": [ + "methodology.page.downloadPacket.info.shape.last.updated": [ { "type": 0, "value": "Last updated: " }, { "type": 1, - "value": "downloadLastUpdated" + "value": "shapeLastUpdated" } ], "methodology.page.downloadPacket.info.text1": [ @@ -2602,7 +2608,7 @@ }, { "type": 0, - "value": " unzipped) or the shapefile, along with a codebook (.zip, " + "value": " unzipped), the shapefile, along with a codebook (.zip, " }, { "type": 1, @@ -2610,7 +2616,35 @@ }, { "type": 0, - "value": " unzipped)." + "value": " unzipped) or the technical support document (.pdf, " + }, + { + "type": 1, + "value": "tsdFileSize" + }, + { + "type": 0, + "value": ")." + } + ], + "methodology.page.downloadPacket.info.tsd.last.updated": [ + { + "type": 0, + "value": "Last updated: " + }, + { + "type": 1, + "value": "tsdLastUpdated" + } + ], + "methodology.page.downloadPacket.info.zip.last.updated": [ + { + "type": 0, + "value": "Last updated: " + }, + { + "type": 1, + "value": "downloadLastUpdated" } ], "methodology.page.downloadPacket.new.tag.text": [ diff --git a/client/src/components/DownloadPacket/DownloadPacket.tsx b/client/src/components/DownloadPacket/DownloadPacket.tsx index 7eddc3b7..d37716ea 100644 --- a/client/src/components/DownloadPacket/DownloadPacket.tsx +++ b/client/src/components/DownloadPacket/DownloadPacket.tsx @@ -26,7 +26,9 @@ const DownloadPacket = () => { {/* Download box button 1 */}
- + + +
+
+ {METHODOLOGY_COPY.DOWNLOAD_PACKAGE.TSD_LAST_UPDATED} +
diff --git a/client/src/components/DownloadPacket/__snapshots__/downloadPacket.test.tsx.snap b/client/src/components/DownloadPacket/__snapshots__/downloadPacket.test.tsx.snap index 7fd8c6f5..0228a88b 100644 --- a/client/src/components/DownloadPacket/__snapshots__/downloadPacket.test.tsx.snap +++ b/client/src/components/DownloadPacket/__snapshots__/downloadPacket.test.tsx.snap @@ -13,7 +13,7 @@ exports[`download packet component defined checks if component renders 1`] = ` Files available for download
- Download the data sources used in the CEJST (.csv and .xlsx, 52MB unzipped) or the shapefile, along with a codebook (.zip, 742MB unzipped). + Download the data sources used in the CEJST (.csv and .xlsx, 52MB unzipped), the shapefile, along with a codebook (.zip, 742MB unzipped) or the technical support document (.pdf, 913kB).
Last updated: 04/06/22
+
+
+ + + NEW + + +
+
+ + +
+
+ Last updated: 04/19/22 +
diff --git a/client/src/data/copy/explore.tsx b/client/src/data/copy/explore.tsx index da2d1aec..2ce63cad 100644 --- a/client/src/data/copy/explore.tsx +++ b/client/src/data/copy/explore.tsx @@ -779,7 +779,7 @@ export const DOWNLOAD_DRAFT = { unitDisplay="narrow" />, dateUpdated: , DESCRIPTION1: , + tsdFileSize: , }} />, - LAST_UPDATED: , + }} + />, + SHAPE_LAST_UPDATED: , + }} + />, + TSD_LAST_UPDATED: , + BUTTON_TEXT3: , NEW_TAG: NEW`} diff --git a/client/src/intl/en.json b/client/src/intl/en.json index 54aab484..abffb08f 100644 --- a/client/src/intl/en.json +++ b/client/src/intl/en.json @@ -1203,18 +1203,30 @@ "defaultMessage": "Download shapefile", "description": "Navigate to the methodology page. This is the download shapefiles text" }, + "methodology.page.downloadPacket.button3.text": { + "defaultMessage": "Download technical support document", + "description": "Navigate to the methodology page. This is the download technical support document spreadsheet" + }, "methodology.page.downloadPacket.header.text": { "defaultMessage": "Files available for download", "description": "Navigate to the methodology page. This is the download packet header text" }, - "methodology.page.downloadPacket.info.last.updated": { - "defaultMessage": "Last updated: {downloadLastUpdated}", + "methodology.page.downloadPacket.info.shape.last.updated": { + "defaultMessage": "Last updated: {shapeLastUpdated}", "description": "Navigate to the methodology page. This is the download packet info last updated" }, "methodology.page.downloadPacket.info.text1": { - "defaultMessage": "Download the data sources used in the CEJST (.csv and .xlsx, {downloadFileSize} unzipped) or the shapefile, along with a codebook (.zip, {shapefileSize} unzipped).", + "defaultMessage": "Download the data sources used in the CEJST (.csv and .xlsx, {downloadFileSize} unzipped), the shapefile, along with a codebook (.zip, {shapefileSize} unzipped) or the technical support document (.pdf, {tsdFileSize}).", "description": "Navigate to the methodology page. This is the download packet info text" }, + "methodology.page.downloadPacket.info.tsd.last.updated": { + "defaultMessage": "Last updated: {tsdLastUpdated}", + "description": "Navigate to the methodology page. This is the download packet info last updated" + }, + "methodology.page.downloadPacket.info.zip.last.updated": { + "defaultMessage": "Last updated: {downloadLastUpdated}", + "description": "Navigate to the methodology page. This is the download packet info last updated" + }, "methodology.page.downloadPacket.new.tag.text": { "defaultMessage": "NEW", "description": "Navigate to the methodology page. This is the new tag text" diff --git a/client/src/pages/tests/__snapshots__/methodology.test.tsx.snap b/client/src/pages/tests/__snapshots__/methodology.test.tsx.snap index 2a9cea4f..42399ac5 100644 --- a/client/src/pages/tests/__snapshots__/methodology.test.tsx.snap +++ b/client/src/pages/tests/__snapshots__/methodology.test.tsx.snap @@ -383,7 +383,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis Files available for download
- Download the data sources used in the CEJST (.csv and .xlsx, 52MB unzipped) or the shapefile, along with a codebook (.zip, 742MB unzipped). + Download the data sources used in the CEJST (.csv and .xlsx, 52MB unzipped), the shapefile, along with a codebook (.zip, 742MB unzipped) or the technical support document (.pdf, 913kB).
+ +
+ Last updated: 04/19/22 +