From bc511756a9295b7dc68120a5d517bc65702e26e1 Mon Sep 17 00:00:00 2001 From: Vim <86254807+vim-usds@users.noreply.github.com> Date: Tue, 14 Feb 2023 11:06:24 -0800 Subject: [PATCH] add instructions to download page (#2165) - closes #2163 --- client/.env.development | 2 +- client/.env.production | 2 +- client/src/data/copy/downloads.tsx | 16 +++++++++++++++- client/src/intl/en.json | 4 ++++ client/src/pages/downloads.tsx | 3 +++ .../tests/__snapshots__/downloads.test.tsx.snap | 12 ++++++++++++ 6 files changed, 36 insertions(+), 3 deletions(-) diff --git a/client/.env.development b/client/.env.development index ee88299b..6cd14e07 100644 --- a/client/.env.development +++ b/client/.env.development @@ -23,7 +23,7 @@ GATSBY_FILE_DL_PATH_1_0_COMMUNITIES_LIST_XLS=downloadable/1.0-communities.xlsx GATSBY_FILE_DL_PATH_1_0_COMMUNITIES_LIST_CSV=downloadable/1.0-communities.csv GATSBY_FILE_DL_PATH_1_0_COMMUNITIES_LIST_PDF=downloadable/1.0-communities-list.pdf GATSBY_FILE_DL_PATH_1_0_SHAPE_FILE_ZIP=downloadable/1.0-shapefile-codebook.zip -GATSBY_FILE_DL_PATH_1_0_INSTRUCT_PDF=downloadable/cejst-instructions-for-federal-agencies.pdf +GATSBY_FILE_DL_PATH_1_0_INSTRUCT_PDF=downloadable/CEQ-CEJST-Instructions.pdf GATSBY_FILE_DL_PATH_1_0_COMP_CHART_PDF=downloadable/total-comparison-chart.pdf GATSBY_FILE_DL_PATH_1_0_TSD_PDF=downloadable/1.0-cejst-technical-support-document.pdf GATSBY_FILE_DL_PATH_1_0_TOOL_COMP_PDF=downloadable/1.0-climate-and-environmental-burden-tool-comparison.pdf diff --git a/client/.env.production b/client/.env.production index 8afbe015..f89ababa 100644 --- a/client/.env.production +++ b/client/.env.production @@ -20,7 +20,7 @@ GATSBY_FILE_DL_PATH_1_0_COMMUNITIES_LIST_XLS=downloadable/1.0-communities.xlsx GATSBY_FILE_DL_PATH_1_0_COMMUNITIES_LIST_CSV=downloadable/1.0-communities.csv GATSBY_FILE_DL_PATH_1_0_COMMUNITIES_LIST_PDF=downloadable/1.0-communities-list.pdf GATSBY_FILE_DL_PATH_1_0_SHAPE_FILE_ZIP=downloadable/1.0-shapefile-codebook.zip -GATSBY_FILE_DL_PATH_1_0_INSTRUCT_PDF=downloadable/cejst-instructions-for-federal-agencies.pdf +GATSBY_FILE_DL_PATH_1_0_INSTRUCT_PDF=downloadable/CEQ-CEJST-Instructions.pdf GATSBY_FILE_DL_PATH_1_0_COMP_CHART_PDF=downloadable/total-comparison-chart.pdf GATSBY_FILE_DL_PATH_1_0_TSD_PDF=downloadable/1.0-cejst-technical-support-document.pdf GATSBY_FILE_DL_PATH_1_0_TOOL_COMP_PDF=downloadable/1.0-climate-and-environmental-burden-tool-comparison.pdf diff --git a/client/src/data/copy/downloads.tsx b/client/src/data/copy/downloads.tsx index 4b53ce2f..cf9987d5 100644 --- a/client/src/data/copy/downloads.tsx +++ b/client/src/data/copy/downloads.tsx @@ -70,7 +70,7 @@ export const DOWNLOAD_FILES = { LAST_UPDATED: COMMON_COPY.METH_1_0_RELEASE_DATE, }, INSTRUCTIONS: { - SIZE: .8, // KB // Todo: Update when actual file is uploaded + SIZE: 228.4, // KB // Todo: Update when actual file is uploaded URL: getDownloadFileUrl(process.env.GATSBY_FILE_DL_PATH_1_0_INSTRUCT_PDF, false), LAST_UPDATED: COMMON_COPY.METH_1_0_RELEASE_DATE, }, @@ -598,5 +598,19 @@ export const DOWNLOAD_LINKS = { />, }} />, + LINK6: Instructions to Federal agencies on using the CEJST (.pdf {instructions})`} + description={'Navigate to the download page. This is sixth download file link'} + values={{ + link6: COMMON_COPY.linkFn(DOWNLOAD_FILES.NARWAL.INSTRUCTIONS.URL, false, true), + instructions: , + }} + />, // }; }; diff --git a/client/src/intl/en.json b/client/src/intl/en.json index 9d921cbf..803294dc 100644 --- a/client/src/intl/en.json +++ b/client/src/intl/en.json @@ -307,6 +307,10 @@ "defaultMessage": "How to use the list of communities (.pdf {howToCommFileSize})", "description": "Navigate to the download page. This is fifth download file link" }, + "download.page.download.file.6": { + "defaultMessage": "Instructions to Federal agencies on using the CEJST (.pdf {instructions})", + "description": "Navigate to the download page. This is sixth download file link" + }, "download.page.files.section.title": { "defaultMessage": "Version {version} file formats", "description": "Navigate to the download page. This is first download file link" diff --git a/client/src/pages/downloads.tsx b/client/src/pages/downloads.tsx index df90fa53..87bac5f7 100644 --- a/client/src/pages/downloads.tsx +++ b/client/src/pages/downloads.tsx @@ -54,6 +54,9 @@ const DownloadsPage = ({location}: IDownloadsPageProps) => {

{DOWNLOADS_COPY.DOWNLOAD_LINKS.LINK4}

+

+ {DOWNLOADS_COPY.DOWNLOAD_LINKS.LINK6} +

{DOWNLOADS_COPY.DOWNLOAD_LINKS.LINK5}

diff --git a/client/src/pages/tests/__snapshots__/downloads.test.tsx.snap b/client/src/pages/tests/__snapshots__/downloads.test.tsx.snap index 8f6f5b25..58d8bf09 100644 --- a/client/src/pages/tests/__snapshots__/downloads.test.tsx.snap +++ b/client/src/pages/tests/__snapshots__/downloads.test.tsx.snap @@ -723,6 +723,18 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis (.pdf 4.4MB)

+

+ + Instructions to Federal agencies on using the CEJST + + (.pdf 228.4kB) +