Skip to content

Commit

Permalink
Updated TSD on downloads page (#2097)
Browse files Browse the repository at this point in the history
  • Loading branch information
vim-usds authored Nov 22, 2022
1 parent 96cf909 commit 7846635
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 15 deletions.
2 changes: 1 addition & 1 deletion client/.env.development
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ GATSBY_FILE_DL_PATH_1_0_COMMUNITIES_LIST_PDF=downloadable/1.0-communities-list.p
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_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_TSD_PDF=downloadable/cejst-technical-support-document.pdf
GATSBY_FILE_DL_PATH_TSD_ES_PDF=downloadable/cejst-technical-support-document-es.pdf
GATSBY_FILE_DL_PATH_HOW_TO_COMMUNITIES_PDF=downloadable/draft-communities-list.pdf

Expand Down
2 changes: 1 addition & 1 deletion client/.env.production
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ GATSBY_FILE_DL_PATH_1_0_COMMUNITIES_LIST_PDF=downloadable/1.0-communities-list.p
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_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_TSD_PDF=downloadable/cejst-technical-support-document.pdf
GATSBY_FILE_DL_PATH_TSD_ES_PDF=downloadable/cejst-technical-support-document-es.pdf
GATSBY_FILE_DL_PATH_HOW_TO_COMMUNITIES_PDF=downloadable/draft-communities-list.pdf

Expand Down
22 changes: 11 additions & 11 deletions client/src/data/copy/downloads.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ export const DOWNLOAD_FILES = {
LAST_UPDATED: COMMON_COPY.METH_1_0_RELEASE_DATE,
},
TSD: {
SIZE: 2.4, // MB
URL: getDownloadFileUrl(process.env.GATSBY_FILE_DL_PATH_TSD_PDF, false),
SIZE: 4.4, // MB
URL: getDownloadFileUrl(process.env.GATSBY_FILE_DL_PATH_1_0_TSD_PDF, false),
LAST_UPDATED: COMMON_COPY.METH_1_0_RELEASE_DATE,
},
TSD_ES: {
Expand Down Expand Up @@ -571,17 +571,17 @@ export const DOWNLOAD_LINKS = {
/>,
LINK4: <FormattedMessage
id={'download.page.download.file.4'}
defaultMessage={`Technical support document (version 1.0 coming soon)`}
defaultMessage={`<link4>Technical support document</link4> (.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: <FormattedNumber
// value={DOWNLOAD_FILES.NARWAL.TSD.SIZE}
// style="unit"
// unit="megabyte"
// unitDisplay="narrow"
// />,
link4: COMMON_COPY.linkFn(DOWNLOAD_FILES.NARWAL.TSD.URL, false, true),
link4es: COMMON_COPY.linkFn(DOWNLOAD_FILES.NARWAL.TSD_ES.URL, false, true),
tsdFileSize: <FormattedNumber
value={DOWNLOAD_FILES.NARWAL.TSD.SIZE}
style="unit"
unit="megabyte"
unitDisplay="narrow"
/>,
}}
/>,
LINK5: <FormattedMessage
Expand Down
2 changes: 1 addition & 1 deletion client/src/intl/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@
"description": "Navigate to the download page. This is third download file link"
},
"download.page.download.file.4": {
"defaultMessage": "Technical support document (version 1.0 coming soon)",
"defaultMessage": "<link4>Technical support document</link4> (.pdf {tsdFileSize})",
"description": "Navigate to the download page. This is fourth download file link"
},
"download.page.download.file.5": {
Expand Down
11 changes: 10 additions & 1 deletion client/src/pages/tests/__snapshots__/downloads.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,16 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
(Codebook included with shapefile 356.8MB unzipped)
</p>
<p>
Technical support document (version 1.0 coming soon)
<a
class="usa-link usa-link--external"
data-cy=""
href="//"
rel="noreferrer"
target="_blank"
>
Technical support document
</a>
(.pdf 4.4MB)
</p>
<p>
<a
Expand Down

0 comments on commit 7846635

Please sign in to comment.