From 4f50fe5631c2fb9e22195718ff78af5b1cff4d39 Mon Sep 17 00:00:00 2001 From: Carlos Felix <63804190+carlosfelix2@users.noreply.github.com> Date: Fri, 20 Dec 2024 17:36:59 -0500 Subject: [PATCH] Readded TSD link in Downloads page --- client/.env.development | 4 +-- client/.env.production | 4 +-- client/src/data/copy/downloads.tsx | 34 +++++++++---------- client/src/intl/en.json | 4 +++ .../__snapshots__/downloads.test.tsx.snap | 12 +++++++ 5 files changed, 37 insertions(+), 21 deletions(-) diff --git a/client/.env.development b/client/.env.development index 99732c41..d7cddf1b 100644 --- a/client/.env.development +++ b/client/.env.development @@ -37,11 +37,11 @@ GATSBY_FILE_DL_PATH_2_0_SHAPE_FILE_ZIP=downloadable/2.0-shapefile-codebook.zip GATSBY_FILE_DL_PATH_2_0_INSTRUCT_PDF=downloadable/CEQ-CEJST-Instructions.pdf GATSBY_FILE_DL_PATH_2_0_INSTRUCT_ES_PDF=downloadable/CEQ-CEJST-Instructions-es.pdf GATSBY_FILE_DL_PATH_2_0_COMP_CHART_PDF=downloadable/total-comparison-chart.pdf -GATSBY_FILE_DL_PATH_2_0_TSD_PDF=downloadable/2.0-cejst-technical-support-document.pdf +GATSBY_FILE_DL_PATH_2_0_TSD_PDF=downloadable/cejst-technical-support-document.pdf GATSBY_FILE_DL_PATH_2_0_TOOL_COMP_PDF=downloadable/2.0-climate-and-environmental-burden-tool-comparison.pdf GATSBY_FILE_DL_PATH_2_0_M_23_09_SIGNED_PDF=downloadable/M-23-09_Signed_CEQ_CPO_es.pdf -GATSBY_FILE_DL_PATH_TSD_ES_PDF=downloadable/cejst-technical-support-document-es.pdf +GATSBY_FILE_DL_PATH_TSD_ES_PDF=downloadable/cejst-technical-support-document.pdf GATSBY_FILE_DL_PATH_HOW_TO_COMMUNITIES_PDF=downloadable/draft-communities-list.pdf GATSBY_MAP_TILES_PATH=tiles diff --git a/client/.env.production b/client/.env.production index 3e69b4ce..d55f207e 100644 --- a/client/.env.production +++ b/client/.env.production @@ -32,11 +32,11 @@ GATSBY_FILE_DL_PATH_2_0_SHAPE_FILE_ZIP=downloadable/2.0-shapefile-codebook.zip GATSBY_FILE_DL_PATH_2_0_INSTRUCT_PDF=downloadable/CEQ-CEJST-Instructions.pdf GATSBY_FILE_DL_PATH_2_0_INSTRUCT_ES_PDF=downloadable/CEQ-CEJST-Instructions-es.pdf GATSBY_FILE_DL_PATH_2_0_COMP_CHART_PDF=downloadable/total-comparison-chart.pdf -GATSBY_FILE_DL_PATH_2_0_TSD_PDF=downloadable/2.0-cejst-technical-support-document.pdf +GATSBY_FILE_DL_PATH_2_0_TSD_PDF=downloadable/cejst-technical-support-document.pdf GATSBY_FILE_DL_PATH_2_0_TOOL_COMP_PDF=downloadable/2.0-climate-and-environmental-burden-tool-comparison.pdf GATSBY_FILE_DL_PATH_2_0_M_23_09_SIGNED_PDF=downloadable/M-23-09_Signed_CEQ_CPO_es.pdf -GATSBY_FILE_DL_PATH_TSD_ES_PDF=downloadable/cejst-technical-support-document-es.pdf +GATSBY_FILE_DL_PATH_TSD_ES_PDF=downloadable/cejst-technical-support-document.pdf GATSBY_FILE_DL_PATH_HOW_TO_COMMUNITIES_PDF=downloadable/draft-communities-list.pdf GATSBY_MAP_TILES_PATH=tiles diff --git a/client/src/data/copy/downloads.tsx b/client/src/data/copy/downloads.tsx index 0f29de6e..2d3fbeca 100644 --- a/client/src/data/copy/downloads.tsx +++ b/client/src/data/copy/downloads.tsx @@ -60,7 +60,7 @@ export const DOWNLOAD_FILES = { LAST_UPDATED: COMMON_COPY.METH_2_0_RELEASE_DATE, }, TSD: { - SIZE: 4.4, // MB + SIZE: 79, // KB URL: getDownloadFileUrl(process.env.GATSBY_FILE_DL_PATH_2_0_TSD_PDF), LAST_UPDATED: COMMON_COPY.METH_2_0_RELEASE_DATE, }, @@ -210,22 +210,22 @@ export const DOWNLOAD_LINKS = { />, }} />, - // Technical support document (.pdf {tsdFileSize})`} - // description={'Navigate to the download page. This is fourth download file link'} - // values={{ - // link4: COMMON_COPY.linkFn(DOWNLOAD_FILES.NARWAL.TSD.URL, false, true), - // link4es: COMMON_COPY.linkFn(DOWNLOAD_FILES.NARWAL.TSD_ES.URL, false, true), - // tsdFileSize: , - // }} - // />, + Technical support document (.pdf {tsdFileSize})`} + description={'Navigate to the download page. This is fourth download file link'} + values={{ + link4: COMMON_COPY.linkFn(DOWNLOAD_FILES.NARWAL.TSD.URL, false, true), + link4es: COMMON_COPY.linkFn(DOWNLOAD_FILES.NARWAL.TSD_ES.URL, false, true), + tsdFileSize: , + }} + />, Shapefile (Codebook included with shapefile {shapeFileSize} unzipped)", "description": "Navigate to the download page. This is third download file link" }, + "download.page.download.file.4": { + "defaultMessage": "Technical support document (.pdf {tsdFileSize})", + "description": "Navigate to the download page. This is fourth download file link" + }, "download.page.download.file.5": { "defaultMessage": "Instructions to Federal agencies on using the CEJST (.pdf {instructions})", "description": "Navigate to the download page. This is sixth download file link" diff --git a/client/src/pages/tests/__snapshots__/downloads.test.tsx.snap b/client/src/pages/tests/__snapshots__/downloads.test.tsx.snap index a967a4c9..491c4a2d 100644 --- a/client/src/pages/tests/__snapshots__/downloads.test.tsx.snap +++ b/client/src/pages/tests/__snapshots__/downloads.test.tsx.snap @@ -570,6 +570,18 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis /> (Codebook included with shapefile 356.8MB unzipped)

+

+ + Technical support document + + (.pdf 79kB) +