From aa35758e42cf21470843be842a891f9b77cbfa0e Mon Sep 17 00:00:00 2001 From: TomNUSDS Date: Wed, 4 May 2022 09:08:44 -0700 Subject: [PATCH] Put codebook into section (#1590) Also, updated intl and tests snapshots --- client/compiled-lang/en.json | 16 +++++++++++++++- .../__snapshots__/downloadPacket.test.tsx.snap | 6 +++++- client/src/data/copy/methodology.tsx | 2 +- client/src/intl/en.json | 2 +- .../__snapshots__/methodology.test.tsx.snap | 6 +++++- 5 files changed, 27 insertions(+), 5 deletions(-) diff --git a/client/compiled-lang/en.json b/client/compiled-lang/en.json index 6827d07b..1a6af3eb 100644 --- a/client/compiled-lang/en.json +++ b/client/compiled-lang/en.json @@ -2664,7 +2664,21 @@ }, { "type": 0, - "value": " that describes how to use the list, and a codebook, " + "value": " that describes how to use the list, and a " + }, + { + "children": [ + { + "type": 0, + "value": "codebook" + } + ], + "type": 8, + "value": "callout" + }, + { + "type": 0, + "value": ", " }, { "type": 1, diff --git a/client/src/components/DownloadPacket/__snapshots__/downloadPacket.test.tsx.snap b/client/src/components/DownloadPacket/__snapshots__/downloadPacket.test.tsx.snap index 3265147d..4882cc77 100644 --- a/client/src/components/DownloadPacket/__snapshots__/downloadPacket.test.tsx.snap +++ b/client/src/components/DownloadPacket/__snapshots__/downloadPacket.test.tsx.snap @@ -20,7 +20,11 @@ exports[`download packet component defined checks if component renders 1`] = ` .pdf - that describes how to use the list, and a codebook, 53MB unzipped), the shapefile, along with a + that describes how to use the list, and a + + codebook + + , 53MB unzipped), the shapefile, along with a codebook diff --git a/client/src/data/copy/methodology.tsx b/client/src/data/copy/methodology.tsx index f6259f2f..da127133 100644 --- a/client/src/data/copy/methodology.tsx +++ b/client/src/data/copy/methodology.tsx @@ -113,7 +113,7 @@ export const DOWNLOAD_PACKAGE = { />, DESCRIPTION1: .pdf that describes how to use the list, and a codebook, {downloadFileSize} unzipped), the shapefile, along with a codebook (.zip, {shapefileSize} unzipped) or the technical support document (.pdf, {tsdFileSize} unzipped).`} + defaultMessage= {`Download the data sources used in the CEJST (.csv, .xlxs, .pdf that describes how to use the list, and a codebook, {downloadFileSize} unzipped), the shapefile, along with a codebook (.zip, {shapefileSize} unzipped) or the technical support document (.pdf, {tsdFileSize} unzipped).`} description= {'Navigate to the methodology page. This is the download packet info text'} values= {{ callout: newCalloutFontColorFn, diff --git a/client/src/intl/en.json b/client/src/intl/en.json index 03ca1338..9262e069 100644 --- a/client/src/intl/en.json +++ b/client/src/intl/en.json @@ -1228,7 +1228,7 @@ "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, .xlxs, .pdf that describes how to use the list, and a codebook, {downloadFileSize} unzipped), the shapefile, along with a codebook (.zip, {shapefileSize} unzipped) or the technical support document (.pdf, {tsdFileSize} unzipped).", + "defaultMessage": "Download the data sources used in the CEJST (.csv, .xlxs, .pdf that describes how to use the list, and a codebook, {downloadFileSize} unzipped), the shapefile, along with a codebook (.zip, {shapefileSize} unzipped) or the technical support document (.pdf, {tsdFileSize} unzipped).", "description": "Navigate to the methodology page. This is the download packet info text" }, "methodology.page.downloadPacket.info.tsd.last.updated": { diff --git a/client/src/pages/tests/__snapshots__/methodology.test.tsx.snap b/client/src/pages/tests/__snapshots__/methodology.test.tsx.snap index 9415c3cf..b3e98669 100644 --- a/client/src/pages/tests/__snapshots__/methodology.test.tsx.snap +++ b/client/src/pages/tests/__snapshots__/methodology.test.tsx.snap @@ -486,7 +486,11 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis .pdf - that describes how to use the list, and a codebook, 53MB unzipped), the shapefile, along with a + that describes how to use the list, and a + + codebook + + , 53MB unzipped), the shapefile, along with a codebook