add instructions to download page (#2165)

- closes #2163
This commit is contained in:
Vim 2023-02-14 11:06:24 -08:00 committed by GitHub
commit bc511756a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 36 additions and 3 deletions

View file

@ -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_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_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_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_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_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 GATSBY_FILE_DL_PATH_1_0_TOOL_COMP_PDF=downloadable/1.0-climate-and-environmental-burden-tool-comparison.pdf

View file

@ -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_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_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_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_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_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 GATSBY_FILE_DL_PATH_1_0_TOOL_COMP_PDF=downloadable/1.0-climate-and-environmental-burden-tool-comparison.pdf

View file

@ -70,7 +70,7 @@ export const DOWNLOAD_FILES = {
LAST_UPDATED: COMMON_COPY.METH_1_0_RELEASE_DATE, LAST_UPDATED: COMMON_COPY.METH_1_0_RELEASE_DATE,
}, },
INSTRUCTIONS: { 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), URL: getDownloadFileUrl(process.env.GATSBY_FILE_DL_PATH_1_0_INSTRUCT_PDF, false),
LAST_UPDATED: COMMON_COPY.METH_1_0_RELEASE_DATE, LAST_UPDATED: COMMON_COPY.METH_1_0_RELEASE_DATE,
}, },
@ -598,5 +598,19 @@ export const DOWNLOAD_LINKS = {
/>, />,
}} }}
/>, />,
LINK6: <FormattedMessage
id={'download.page.download.file.6'}
defaultMessage={`<link6>Instructions to Federal agencies on using the CEJST</link6> (.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: <FormattedNumber
value={DOWNLOAD_FILES.NARWAL.INSTRUCTIONS.SIZE}
style="unit"
unit="kilobyte"
unitDisplay="narrow"
/>,
}}
/>,
// }; // };
}; };

View file

@ -307,6 +307,10 @@
"defaultMessage": "<link5>How to use the list of communities</link5> (.pdf {howToCommFileSize})", "defaultMessage": "<link5>How to use the list of communities</link5> (.pdf {howToCommFileSize})",
"description": "Navigate to the download page. This is fifth download file link" "description": "Navigate to the download page. This is fifth download file link"
}, },
"download.page.download.file.6": {
"defaultMessage": "<link6>Instructions to Federal agencies on using the CEJST</link6> (.pdf {instructions})",
"description": "Navigate to the download page. This is sixth download file link"
},
"download.page.files.section.title": { "download.page.files.section.title": {
"defaultMessage": "Version {version} file formats", "defaultMessage": "Version {version} file formats",
"description": "Navigate to the download page. This is first download file link" "description": "Navigate to the download page. This is first download file link"

View file

@ -54,6 +54,9 @@ const DownloadsPage = ({location}: IDownloadsPageProps) => {
<p> <p>
{DOWNLOADS_COPY.DOWNLOAD_LINKS.LINK4} {DOWNLOADS_COPY.DOWNLOAD_LINKS.LINK4}
</p> </p>
<p>
{DOWNLOADS_COPY.DOWNLOAD_LINKS.LINK6}
</p>
<p> <p>
{DOWNLOADS_COPY.DOWNLOAD_LINKS.LINK5} {DOWNLOADS_COPY.DOWNLOAD_LINKS.LINK5}
</p> </p>

View file

@ -723,6 +723,18 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
</a> </a>
(.pdf 4.4MB) (.pdf 4.4MB)
</p> </p>
<p>
<a
class="usa-link usa-link--external"
data-cy=""
href="//"
rel="noreferrer"
target="_blank"
>
Instructions to Federal agencies on using the CEJST
</a>
(.pdf 228.4kB)
</p>
<p> <p>
<a <a
class="usa-link usa-link--external" class="usa-link usa-link--external"