diff --git a/client/src/components/Categories/__snapshots__/Categories.test.tsx.snap b/client/src/components/Categories/__snapshots__/Categories.test.tsx.snap index 119e91d2..f4fc7e4a 100644 --- a/client/src/components/Categories/__snapshots__/Categories.test.tsx.snap +++ b/client/src/components/Categories/__snapshots__/Categories.test.tsx.snap @@ -40,8 +40,8 @@ exports[`rendering of the Categories checks if component renders 1`] = ` > statistical areas - are determined by the U.S. Census Bureau once every ten years. The tool utilizes the census tract boundaries from 2010. This was chosen because many of the data sources in the tool currently use the 2010 - census boundaries. + are determined by the U.S. Census Bureau once every ten years. The tool utilizes the census tract boundaries from 2010. This was chosen because many of the data sources in the tool currently use the 2010 + census boundaries.

diff --git a/client/src/components/DatasetCard/DatasetCard.tsx b/client/src/components/DatasetCard/DatasetCard.tsx index b73c4b59..14679f0b 100644 --- a/client/src/components/DatasetCard/DatasetCard.tsx +++ b/client/src/components/DatasetCard/DatasetCard.tsx @@ -1,10 +1,10 @@ /* eslint-disable valid-jsdoc */ -import React from 'react'; import {Tag} from '@trussworks/react-uswds'; import {useIntl} from 'gatsby-plugin-intl'; +import React from 'react'; -import * as styles from './datasetCard.module.scss'; import * as METHODOLOGY_COPY from '../../data/copy/methodology'; +import * as styles from './datasetCard.module.scss'; interface IDatasetCardProps { datasetCardProps: METHODOLOGY_COPY.IIndicators @@ -71,6 +71,10 @@ const DatasetCard = ({datasetCardProps}: IDatasetCardProps) => { {intl.formatMessage(METHODOLOGY_COPY.DATASET_CARD_LABELS.SOURCE)} {dataSource.source} + {dataSource.isNew && (<> +   + {intl.formatMessage(METHODOLOGY_COPY.DATASET_CARD_LABELS.NEW)} + )} {/* Dataset Available for */} diff --git a/client/src/components/DatasetCard/tests/__snapshots__/datasetCard.test.tsx.snap b/client/src/components/DatasetCard/tests/__snapshots__/datasetCard.test.tsx.snap index fb738d35..99a5ada6 100644 --- a/client/src/components/DatasetCard/tests/__snapshots__/datasetCard.test.tsx.snap +++ b/client/src/components/DatasetCard/tests/__snapshots__/datasetCard.test.tsx.snap @@ -5,15 +5,9 @@ exports[`rendering of indicator dataset card checks if component renders 1`] = `
-
-
- - NEW - -
+

Census tract information and demographics

@@ -30,7 +24,7 @@ exports[`rendering of indicator dataset card checks if component renders 1`] = ` Note: - The demographics are included as information only and are not considered as a part of the tool's methodology. + The demographics are included as information only and are not considered as a part of the tool’s methodology.

diff --git a/client/src/components/DatasetContainer/tests/__snapshots__/datasetContainer.test.tsx.snap b/client/src/components/DatasetContainer/tests/__snapshots__/datasetContainer.test.tsx.snap index 2974077a..6ffa6792 100644 --- a/client/src/components/DatasetContainer/tests/__snapshots__/datasetContainer.test.tsx.snap +++ b/client/src/components/DatasetContainer/tests/__snapshots__/datasetContainer.test.tsx.snap @@ -33,7 +33,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis >

- The tool's datasets are public and consistent nationwide. They come from different sources and are high quality. The Council on Environmental Quality (CEQ) chose them based on relevance, availability, and quality. They identify climate, environmental, and other burdens on communities. + The tool’s datasets are public and consistent nationwide. They come from different sources and are high quality. The Council on Environmental Quality (CEQ) chose them based on relevance, availability, and quality. They identify climate, environmental, and other burdens on communities.

@@ -81,15 +81,9 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis

-
-
- - NEW - -
+

Census tract information and demographics

@@ -106,7 +100,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis Note: - The demographics are included as information only and are not considered as a part of the tool's methodology. + The demographics are included as information only and are not considered as a part of the tool’s methodology.

@@ -158,7 +152,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
- Percent of a census tract's population in households where household income is at or below + Percent of a census tract’s population in households where household income is at or below 200% of the Federal poverty level, not including students enrolled in higher education.
@@ -210,7 +204,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
- Expected agricultural value at risk from losses due to fourteen types of natural hazards. These hazards have some link to climate change. They are: avalanche, coastal flooding, cold wave, drought, hail, heat wave, hurricane, ice storm, landslide, riverine flooding, strong wind, tornado, wildfire, and winter weather. The rate is calculated by dividing the agricultural value at risk by the total agricultural value. + Expected agricultural value at risk from losses due to fourteen types of natural hazards. These hazards have some link to climate change. They are: avalanche, coastal flooding, cold wave, drought, hail, heat wave, hurricane, ice storm, landslide, riverine flooding, strong wind, tornado, wildfire, and winter weather. The rate is calculated by dividing the agricultural value at risk by the total agricultural value.